/* STYLE SHEET FOR CLAIMS AUTOMATIONS */
/* REILLY KOBBE 5-13-2026             */ 

/* COLOR PALETTE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

:root {
  --bg: #FAF9F7;             /* CREAM */ 
  --card: #FFFFFF;           /* WHITE */ 
  --border: #E2E0DB;         /* LIGHT GREY */
  --border-focus: #A692F7;   /* LIGHT ELPHA ( PURPLEISH ) */ 
  --text: #1C1C1A;           /* BLACK */
  --text2: #5A5A56;          /* DARK GREY */ 
  --text3: #8A8A84;          /* GREY */ 
  --accent: #5029EF;         /* ELPHA BLUE */ 
  --accent-light: #ECE7FD;   /* LIGHTER VERSION OF ELPHA BLUE*/
  --accent-dark: #270B98;    /* DARKER VERSION OF ELPHA BLUE */
  --toggle-off: #C8C6C0;     /* LIGHT GREY */
  --danger-light: #FDF0F0;   /* LIGHT RED */ 
  --danger: #B93E3E;         /* RED */
}

/* LOGIN PAGE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background:
    radial-gradient(circle at top, var(--accent-light) 0%, transparent 32%),
    var(--bg);
}

.login-wrap {
  width: 100%;
  max-width: 560px;
}

.login-card {
  padding: 42px;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(28, 28, 26, 0.08);
}

.login-card .header-tag {
  margin-bottom: 14px;
}

.login-card h1 {
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.login-sub {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 30px;
  max-width: 420px;
}

.login-btn {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(80, 41, 239, 0.22);
}

.login-btn:hover {
  transform: translateY(-1px);
}

.login-status {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text2);
}

.login-status.error {
  color: var(--danger);
}

/* Forms Landing Page */
.form-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.form-option-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.15s ease;
}

.form-option-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(28, 28, 26, 0.08);
}

.form-option-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.form-option-card h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.form-option-card p {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .form-menu-grid {
    grid-template-columns: 1fr;
  }
}


/* CLAIMS ACKNOWLEDGMENT PAGE */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  padding: 24px 16px;
  min-height: 100vh;
}

.wrap { max-width: 960px; margin: 0 auto; }

.header-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}
h1 { font-size: 22px; font-weight: 700; color: var(--text); font-family: inherit; }
.header-sub { font-size: 13px; color: var(--text3); margin-top: 6px; }

.grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; align-items: start; margin-top: 32px;
}

.form-col { display: flex; flex-direction: column; gap: 20px; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px;
}
.card-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 14px;
}

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-full { grid-column: 1 / -1; }

label.fl {
  display: block; font-size: 11px; font-weight: 600;
  color: var(--text2); margin-bottom: 4px; letter-spacing: 0.03em;
}

input.fi,
select.fi {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  height: 36px;
  box-sizing: border-box;
}

input.fi:focus,
select.fi:focus {
  border-color: var(--border-focus);
}

select.fi {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 32px;

  background-image:
    linear-gradient(45deg, transparent 50%, var(--text2) 50%),
    linear-gradient(135deg, var(--text2) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 15px,
    calc(100% - 11px) 15px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

textarea.fi,
.textarea-fi {
  width: 100%;
  min-height: 90px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  outline: none;
  resize: vertical;
  line-height: 1.5;
}

textarea.fi:focus,
.textarea-fi:focus {
  border-color: var(--border-focus);
}

/* Policy type buttons */
.type-btns { display: flex; gap: 8px; margin-bottom: 16px; }
.type-btn {
  flex: 1; padding: 8px 0; font-size: 13px; font-weight: 600;
  font-family: inherit; border: 1.5px solid var(--border);
  border-radius: 8px; background: var(--card); color: var(--text2);
  cursor: pointer; transition: all 0.15s; text-transform: capitalize;
}
.type-btn.active {
  border-color: var(--accent); background: var(--accent-light);
  color: var(--accent-dark);
}

/* Toggle */
.toggle-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.toggle-track {
  width: 38px; height: 22px; border-radius: 11px;
  background: var(--toggle-off); position: relative;
  transition: background 0.2s; flex-shrink: 0; margin-top: 1px;
}
.toggle-track.on { background: var(--accent); }
.toggle-knob {
  width: 16px; height: 16px; border-radius: 8px; background: #fff;
  position: absolute; top: 3px; left: 3px; transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.toggle-track.on .toggle-knob { left: 19px; }
.toggle-label { font-size: 13px; font-weight: 600; color: var(--text); }
.toggle-desc { font-size: 11px; color: var(--text3); margin-top: 2px; }

.adjuster-fields { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }

/* Carriers */
.carrier-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.pct-badge {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
}
.pct-ok { background: var(--accent-light); color: var(--accent); }
.pct-bad { background: var(--danger-light); color: var(--danger); }

.carrier-row { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 10px; }
.carrier-row .name-field { flex: 1; }
.carrier-row .pct-field { width: 64px; }
.carrier-row .pct-field input { text-align: center; }

.lead-btn {
  padding: 8px 10px; font-size: 11px; font-weight: 600;
  font-family: inherit; border: 1px solid var(--border);
  border-radius: 6px; background: var(--card); color: var(--text3);
  cursor: pointer; white-space: nowrap;
}
.lead-btn.active {
  border-color: var(--accent); background: var(--accent-light);
  color: var(--accent-dark);
}
.remove-btn {
  padding: 8px 10px; font-size: 13px; border: 1px solid var(--border);
  border-radius: 6px; background: var(--card); color: var(--text3);
  cursor: pointer;
}
.add-btn {
  width: 100%; padding: 8px 0; margin-top: 4px; font-size: 12px;
  font-weight: 600; font-family: inherit; border: 1px dashed var(--border);
  border-radius: 8px; background: transparent; color: var(--text3);
  cursor: pointer;
}

/* Preview panel */
.preview-wrap { position: static; } 
.preview-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.preview-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.preview-btns { display: flex; gap: 6px; }
.copy-btn {
  padding: 5px 10px; font-size: 11px; font-weight: 600;
  font-family: inherit; border: 1px solid var(--border);
  border-radius: 6px; background: var(--card); color: var(--text2);
  cursor: pointer;
}
.copy-btn.primary {
  border-color: var(--accent); background: var(--accent); color: #fff;
}
.copy-btn.copied { color: var(--accent); }

.subject-bar { padding: 12px 20px; border-bottom: 1px solid var(--border); }
.subject-label { font-size: 10px; color: var(--text3); margin-bottom: 2px; }
.subject-text { font-size: 13px; font-weight: 600; color: var(--text); }

.preview-body { padding: 20px; max-height: 60vh; overflow-y: auto; }
.preview-body pre {
  white-space: pre-wrap; word-wrap: break-word;
  font-family: inherit; font-size: 13px; line-height: 1.7;
  color: var(--text); margin: 0;
}

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .preview-wrap { position: static; }
}

/* Email table styling in preview */
.email-html { font-family: 'Georgia', 'Times New Roman', serif; font-size: 13px; color: #1C1C1A; line-height: 1.6; }
.email-html p { margin: 0 0 10px; }
.email-html table { border-collapse: collapse; width: 100%; margin: 14px 0; }
.email-html th { text-align: left; padding: 8px 12px; background: #F0EEEA; color: #5A5A56; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 2px solid #D8D6D0; }
.email-html td { padding: 7px 12px; border-bottom: 1px solid #E8E6E1; vertical-align: top; }
.email-html td:first-child { font-weight: 600; color: #4A4A46; white-space: nowrap; width: 180px; }
.email-html td:last-child { color: #1C1C1A; }
.email-html a { color: #1D6B54; }

.note-box {
  background: var(--blue-light); border-radius: 8px; padding: 10px 14px;
  font-size: 12px; color: var(--blue); margin-top: 12px; line-height: 1.6;
}

/* Attachment styling */
.file-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  padding: 4px 6px;
}

.file-upload-row input[type="file"] {
  display: none;
}

.file-upload-btn {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.file-upload-text {
  color: var(--text2);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}