:root {
  --navy: #081e3a;
  --navy-2: #214777;
  --blue: #214777;
  --mint: #55d6ba;
  --line: #d8e4ef;
  --soft: #f5f8fb;
  --muted: #5f6f84;
  --ink: #172335;
  --danger: #c94136;
  --shadow: 0 14px 42px rgba(8, 30, 58, .08);
  --sky: #e8f4ff;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: #dfe7ee; font-family: var(--font-sans); }
.btn { min-height: 42px; padding: 10px 16px; border: 0; border-radius: 10px; font: inherit; font-weight: 900; cursor: pointer; }
.btn-accent { color: var(--navy); background: var(--mint); }
.btn-ghost { color: var(--blue); border: 1px solid var(--blue); background: white; }
.text-button { padding: 0; border: 0; color: var(--blue); background: none; font: inherit; font-weight: 900; cursor: pointer; }
.intake-document { width: min(1040px, calc(100% - 34px)); margin: 14px auto 54px; }
.intake-form { display: grid; gap: 18px; }
.intake-cover,.intake-section { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.intake-section.active { animation: intakeFade .18s ease-out; }
@keyframes intakeFade { from { opacity: .25; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.intake-cover { overflow: hidden; position: relative; min-height: 270px; padding: 0; }
.intake-cover::after { content: ""; position: absolute; inset: auto -80px -130px auto; width: 300px; height: 300px; border-radius: 50%; background: rgba(33,71,119,.08); }
.intake-cover-band { position: relative; z-index: 1; display: flex; align-items: center; min-height: 118px; padding: 22px 28px; background: linear-gradient(135deg,var(--navy),var(--navy-2)); }
.intake-cover-band img { width: 315px; max-width: 82%; height: auto; object-fit: contain; }
.intake-cover-body { position: relative; z-index: 1; padding: 28px 30px 30px; }
.intake-cover.compact { width: 100%; max-width: none; justify-self: stretch; min-height: 0; display: grid; grid-template-columns: minmax(220px,330px) 1fr; align-items: stretch; gap: 0; }
.intake-cover.compact::after,.intake-cover.compact .intake-cover-note,.intake-cover.compact p { display: none; }
.intake-cover.compact h1 { margin: 0; font-size: clamp(24px,3vw,34px); letter-spacing: 0; }
.intake-cover.compact .intake-cover-band { min-height: 92px; padding: 18px 22px; }
.intake-cover.compact .intake-cover-band img { width: 240px; max-width: 100%; }
.intake-cover.compact .intake-cover-body { display: flex; align-items: center; padding: 18px 22px; }
.intake-cover h1 { margin: 26px 0 7px; color: var(--navy); font-family: Georgia,serif; font-size: clamp(34px,5vw,54px); line-height: .98; letter-spacing: 0; }
.intake-cover p { max-width: 640px; margin: 0; color: var(--muted); font-size: 15px; }
.intake-cover-note { max-width: 680px; margin-top: 22px; padding: 13px 15px; border-radius: 13px; color: #42536a; background: var(--soft); font-size: 13px; }
.intake-progress { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); }
.intake-progress-step { display: grid; grid-template-columns: 28px 1fr; grid-template-areas: "status number" "status label"; align-items: center; gap: 0 8px; min-height: 58px; padding: 9px 10px; border: 1px solid #d6e1ec; border-radius: 13px; color: #50637a; background: #f8fbfe; text-align: left; cursor: pointer; transition: .18s ease; }
.intake-progress-step:hover { border-color: var(--blue); transform: translateY(-1px); }
.intake-progress-step .progress-status { grid-area: status; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; color: var(--navy); background: #e9f1f8; font-size: 12px; font-weight: 900; }
.intake-progress-step strong { grid-area: number; color: inherit; font-size: 10px; letter-spacing: .9px; }
.intake-progress-step small { grid-area: label; color: inherit; font-size: 11px; font-weight: 900; }
.intake-progress-step.active { color: white; border-color: var(--blue); background: linear-gradient(135deg,var(--blue),var(--navy)); box-shadow: 0 12px 26px rgba(33,71,119,.16); }
.intake-progress-step.active .progress-status { color: var(--blue); background: white; }
.intake-progress-step.complete:not(.active) { color: #176a43; border-color: #b7dec8; background: #eefaf3; }
.intake-progress-step.complete:not(.active) .progress-status { color: white; background: #1f9d61; }
.intake-progress-step.incomplete:not(.active) { color: #8a342e; border-color: #f0c1bd; background: #fff6f5; }
.intake-progress-step.incomplete:not(.active) .progress-status { color: white; background: #c94136; }
.intake-section-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.intake-section-head > span { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 39px; height: 39px; border-radius: 12px; color: white; background: var(--navy); font-weight: 900; }
.intake-section-head h2 { margin: 0; color: var(--navy); font-family: Georgia,serif; font-size: 27px; line-height: 1.08; letter-spacing: 0; }
.intake-section-head p { margin: 5px 0 0; color: var(--muted); }
#employerIntakeForm input,#employerIntakeForm textarea,#employerIntakeForm select,#employerIntakeForm button { font-family: inherit; }
.intake-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.intake-field { display: grid; gap: 6px; align-self: start; }
.intake-field.wide,.agent-field-group.wide,.intake-choice-group,.conditional-panel.wide,.intake-check.wide,.confirmation-card.wide,.confirmation-disclaimer.wide,.document-upload.wide { grid-column: 1 / -1; }
.intake-field span,.intake-choice-group legend { color: #34455a; font-size: 12px; font-weight: 900; }
.intake-field em,.intake-choice-group legend em,.upload-card strong em { color: var(--danger); font-style: normal; }
.intake-field input,.intake-field textarea,.inline-other { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #cbd8e5; border-radius: 10px; color: var(--ink); background: white; outline: none; font: inherit; }
.intake-field textarea { min-height: 92px; resize: vertical; }
.intake-field input:focus,.intake-field textarea:focus,.inline-other:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(33,71,119,.12); }
.intake-field small,.intake-choice-group p,.intake-check small { display: block; margin: 0; color: var(--muted); font-size: 11px; }
.agent-field-group { padding: 14px; border: 2px solid var(--navy-2); border-radius: 14px; background: #eef6ff; }
.intake-choice-group { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfe; }
.intake-choice-group > div { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 10px; }
.intake-choice-group label { display: inline-flex; align-items: center; gap: 7px; color: #33445a; font-size: 13px; font-weight: 700; }
.plan-options > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.plan-options label { min-height: 38px; padding: 8px 9px; border: 1px solid #d8e4ef; border-radius: 9px; background: white; }
.hidden-required { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.inline-other { width: 230px; min-height: 34px; margin-left: 4px; padding: 7px 9px; }
.conditional-panel { padding: 14px; border: 1px dashed #b8c9da; border-radius: 14px; background: #f7fbff; }
.panel-instruction { margin: 0 0 12px; color: #40546a; font-size: 12px; font-weight: 800; }
.affiliated-card { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.affiliated-card + .affiliated-card { margin-top: 12px; }
.affiliated-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--navy); }
.intake-add-location { margin-top: 14px; color: white; background: var(--blue); box-shadow: 0 10px 22px rgba(33,71,119,.14); }
.intake-section-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.intake-section-nav .btn { min-width: 150px; justify-content: center; }
.upload-card { display: grid; grid-template-columns: 1fr 260px; gap: 18px; align-items: center; margin-bottom: 16px; padding: 16px; border: 1px solid #cfddea; border-radius: 16px; background: linear-gradient(135deg,#f8fbff,#eef5fb); }
.upload-card strong { color: var(--navy); font-size: 16px; }
.upload-card p { margin: 5px 0; color: #53657a; font-size: 13px; }
.upload-card ul { margin: 6px 0 7px; padding-left: 18px; color: #53657a; font-size: 13px; }
.upload-card small { color: var(--muted); font-size: 11px; }
.document-checklist { display: grid; gap: 10px; }
.document-upload { display: grid; gap: 8px; padding: 16px; border: 1px solid #cfddea; border-radius: 16px; background: linear-gradient(135deg,#f8fbff,#eef5fb); }
.document-upload span { color: var(--navy); font-size: 16px; font-weight: 900; }
.document-upload small { color: var(--muted); font-size: 12px; }
.document-upload input,.upload-card input { width: 100%; padding: 10px; border: 1px solid #cbd8e5; border-radius: 10px; background: white; }
.intake-check { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfe; }
.intake-check input { grid-row: span 2; margin-top: 3px; }
.intake-check span { color: var(--navy); font-weight: 900; }
.intake-check small { grid-column: 2; }
.confirmation-card { padding: 18px; border: 1px solid #cfddea; border-radius: 16px; background: linear-gradient(135deg,#f8fbff,#eef5fb); }
.confirmation-card h3 { margin: 0 0 6px; color: var(--navy); font-size: 18px; }
.confirmation-card p { margin: 0; color: #53657a; font-size: 13px; }
.confirmation-disclaimer { padding: 16px 18px; border: 1px solid #d7e3ee; border-radius: 14px; background: #fbfcfe; }
.confirmation-disclaimer h3 { margin: 0 0 8px; color: var(--navy); font-size: 15px; }
.confirmation-disclaimer ul { margin: 0; padding-left: 20px; color: #3d4f65; font-size: 13px; line-height: 1.45; }
.intake-review-summary { margin-top: 8px; padding: 16px; border: 1px solid #cfddea; border-radius: 16px; background: #fff; grid-column: 1 / -1; }
.intake-summary-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.intake-summary-head span { display: block; color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; }
.intake-summary-head strong { display: block; margin-top: 2px; color: var(--navy); font-size: 18px; font-family: Georgia,serif; line-height: 1.05; }
.intake-summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.intake-summary-card { padding: 12px; border: 1px solid #d8e4ef; border-radius: 13px; background: #f8fbff; }
.intake-summary-card h4 { margin: 0 0 10px; color: var(--navy); font-size: 14px; line-height: 1.2; }
.intake-summary-card dl { display: grid; grid-template-columns: minmax(110px,.65fr) minmax(0,1fr); gap: 0; margin: 0; border-top: 1px solid #e1eaf2; }
.intake-summary-card dl div { display: contents; }
.intake-summary-card dt,.intake-summary-card dd { margin: 0; padding: 5px 0; border-bottom: 1px solid #e1eaf2; font-size: 10.5px; line-height: 1.25; word-break: break-word; }
.intake-summary-card dt { color: #607189; font-weight: 900; text-transform: uppercase; letter-spacing: .35px; }
.intake-summary-card dd { color: #1e2d3d; font-weight: 700; }
.intake-form.was-reviewed input:invalid,.intake-form.was-reviewed textarea:invalid { border-color: var(--danger); background: #fff8f7; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 22px; transform: translate(-50%,20px); opacity: 0; max-width: min(520px,calc(100% - 28px)); padding: 12px 16px; border-radius: 12px; color: white; background: var(--navy); box-shadow: var(--shadow); transition: .22s; }
.toast.show { transform: translate(-50%,0); opacity: 1; }
@media (max-width: 800px) {
  .intake-document { width: calc(100% - 22px); margin-top: 14px; }
  .intake-cover,.intake-section { border-radius: 16px; }
  .intake-cover.compact { grid-template-columns: 1fr; }
  .intake-cover-band,.intake-cover.compact .intake-cover-band { min-height: 86px; padding: 16px; }
  .intake-cover-body,.intake-cover.compact .intake-cover-body { display: block; padding: 18px; }
  .intake-progress { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .intake-section { padding: 18px; }
  .intake-grid,.upload-card,.plan-options > div,.intake-summary-grid { grid-template-columns: 1fr; }
  .intake-section-head h2 { font-size: 23px; }
  .inline-other { width: 100%; }
}
@media print {
  body { background: white; }
  .no-print,.toast { display: none !important; }
  .intake-document { width: auto; margin: 0; }
  .intake-cover,.intake-section { box-shadow: none; break-inside: avoid; page-break-inside: avoid; }
  .intake-section[hidden] { display: block !important; }
}
