:root {
  color-scheme: light;
  --navy: #0b1b33;
  --navy-2: #102846;
  --blue: #2e7cf6;
  --blue-dark: #195fc7;
  --charcoal: #1a2332;
  --muted: #5c6879;
  --line: #dce2ec;
  --soft: #f4f6fa;
  --white: #ffffff;
  --success: #087b5b;
  --danger: #a52a2a;
  --shadow: 0 24px 70px rgba(11, 27, 51, 0.14);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--navy); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--charcoal);
  background:
    radial-gradient(circle at 80% 9%, rgba(46, 124, 246, 0.25), transparent 25rem),
    linear-gradient(180deg, var(--navy) 0, var(--navy) 32rem, var(--soft) 32rem, var(--soft) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--blue-dark); }
.page-shell { min-height: 100vh; overflow: hidden; }
.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 190px; height: auto; }
.secure-note { margin: 0; color: #d8e6fb; font-size: 0.84rem; }
.secure-note span { color: #6ff0bf; font-size: 0.68rem; margin-right: 7px; }
main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.intro { max-width: 800px; padding: 72px 0 56px; color: var(--white); }
.eyebrow {
  margin: 0 0 13px;
  color: #8fbaff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2, legend {
  font-family: Montserrat, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.035em;
}
h1 { max-width: 760px; margin: 0; font-size: clamp(2.25rem, 5vw, 4.45rem); line-height: 1.03; }
.intro-copy { max-width: 650px; margin: 24px 0 0; color: #cbd8e9; font-size: 1.08rem; }
.intake-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 96px; }
.progress-panel {
  position: sticky;
  top: 24px;
  border: 1px solid #dfe5ee;
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(11, 27, 51, 0.08);
}
.progress-topline { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.progress-track { height: 5px; margin: 13px 0 25px; overflow: hidden; border-radius: 99px; background: #e2e7ef; }
.progress-track span { display: block; width: 14%; height: 100%; border-radius: inherit; background: var(--blue); transition: width 240ms ease; }
.step-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.step-list li { display: flex; align-items: center; gap: 11px; min-height: 40px; color: #6a7482; font-size: 0.83rem; font-weight: 650; }
.step-list li span { display: grid; width: 27px; height: 27px; place-items: center; flex: 0 0 auto; border: 1px solid #d6dde8; border-radius: 50%; font-size: 0.68rem; }
.step-list li.active { color: var(--navy); }
.step-list li.active span { border-color: var(--blue); color: var(--white); background: var(--blue); box-shadow: 0 0 0 4px rgba(46, 124, 246, 0.12); }
.step-list li.done span { border-color: #9bdac4; color: var(--success); background: #e8f8f2; }
.resume-card { display: flex; gap: 10px; margin-top: 24px; padding: 15px; border-radius: 12px; color: #344154; background: #eef4ff; font-size: 0.74rem; }
.resume-card p { margin: 0; }
.spark { color: var(--blue); font-size: 1rem; }
.form-card { min-width: 0; border: 1px solid #e0e5ed; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
#intake-form { padding: clamp(26px, 6vw, 64px); }
.form-step { display: none; min-width: 0; margin: 0; padding: 0; border: 0; }
.form-step.active { display: block; animation: reveal 180ms ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
legend { width: 100%; margin: 0; padding: 0; color: var(--navy); font-size: clamp(1.72rem, 4vw, 2.55rem); font-weight: 780; line-height: 1.14; }
.section-number { display: block; margin-bottom: 10px; color: var(--blue-dark); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.14em; }
.step-intro { max-width: 650px; margin: 14px 0 36px; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field-grid.spaced, .field.spaced { margin-top: 32px; }
.field { min-width: 0; }
.field.full, .full { grid-column: 1 / -1; }
label, .field-label { display: block; margin-bottom: 8px; color: var(--navy); font-size: 0.84rem; font-weight: 760; }
label span[aria-hidden="true"], .field-label span[aria-hidden="true"], .consent strong { color: var(--blue-dark); }
input:not([type="checkbox"]):not([type="radio"]), textarea, select {
  width: 100%;
  border: 1px solid #cbd3df;
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--charcoal);
  background: var(--white);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(46, 124, 246, 0.12); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }
.field-help { margin: 8px 0 0; color: var(--muted); font-size: 0.76rem; }
.services-list { display: grid; gap: 14px; }
.service-row { position: relative; display: grid; grid-template-columns: 1.15fr 0.7fr 1.5fr auto; gap: 12px; align-items: end; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.service-row label { margin: 0; }
.service-row label span { display: block; margin-bottom: 6px; font-size: 0.73rem; }
.remove-service { width: 42px; height: 42px; border: 0; border-radius: 9px; color: #7b2932; background: #fff0f1; font-size: 1.15rem; }
.text-button { margin-top: 14px; padding: 7px 0; border: 0; color: var(--blue-dark); background: transparent; font-weight: 750; }
.upload-zone { position: relative; display: grid; place-items: center; min-height: 220px; padding: 32px; border: 1.5px dashed #9bacbf; border-radius: 14px; text-align: center; background: #f8fafe; transition: border-color 150ms ease, background 150ms ease; }
.upload-zone.dragging { border-color: var(--blue); background: #eef5ff; }
.upload-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-zone strong { color: var(--navy); }
.upload-zone span:last-child { color: var(--muted); font-size: 0.78rem; }
.upload-icon { display: grid; width: 42px; height: 42px; margin-bottom: 8px; place-items: center; border-radius: 50%; color: var(--blue-dark); background: #dfebff; font-size: 1.35rem; }
.file-list { display: grid; gap: 9px; margin: 18px 0 0; padding: 0; list-style: none; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font-size: 0.8rem; }
.file-list button { border: 0; color: #8e2632; background: transparent; font-weight: 750; }
.example-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.example-card { position: relative; margin: 0; cursor: pointer; }
.example-card input { position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; accent-color: var(--blue); }
.example-card > span { display: flex; min-height: 150px; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
.example-card input:checked + span { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 124, 246, 0.12); transform: translateY(-2px); }
.example-card strong { color: var(--navy); font-size: 0.95rem; }
.example-card small { margin-top: 5px; color: var(--muted); font-weight: 500; }
.example-card a { position: relative; z-index: 2; margin-top: auto; font-size: 0.73rem; }
.selection-count { margin: 14px 0 0; color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.choice-row { display: flex; flex-wrap: wrap; gap: 9px; }
.choice-row label { margin: 0; }
.choice-row input { position: absolute; opacity: 0; }
.choice-row span { display: block; padding: 10px 15px; border: 1px solid #cbd3df; border-radius: 9px; color: #3d4959; background: var(--white); }
.choice-row input:checked + span { border-color: var(--blue); color: var(--navy); background: #eef5ff; box-shadow: 0 0 0 2px rgba(46, 124, 246, 0.12); }
.divider-top { margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--line); }
.consent { display: flex; align-items: flex-start; gap: 11px; margin: 0; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafe; cursor: pointer; }
.consent input { width: 19px; height: 19px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--blue); }
.consent span { font-weight: 580; }
.review-box { display: flex; gap: 14px; margin-top: 32px; padding: 20px; border: 1px solid #cfe0fc; border-radius: 12px; background: #f1f6ff; }
.review-box strong { color: var(--navy); }
.review-box p { margin: 4px 0 0; color: var(--muted); font-size: 0.82rem; }
.form-actions { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; margin-top: 48px; padding-top: 25px; border-top: 1px solid var(--line); }
.button { min-height: 47px; padding: 0 20px; border-radius: 9px; font-weight: 780; }
.button.primary { border: 1px solid var(--blue-dark); color: var(--white); background: var(--blue-dark); box-shadow: 0 9px 20px rgba(46, 124, 246, 0.22); }
.button.primary:hover { border-color: var(--blue-dark); background: var(--blue-dark); }
.button.secondary { border: 1px solid #cbd3df; color: var(--navy); background: var(--white); }
.button:disabled { cursor: wait; opacity: 0.65; }
.save-state { margin: 0; color: var(--muted); font-size: 0.73rem; text-align: center; }
.notice { margin: 20px 20px 0; padding: 13px 16px; border: 1px solid #efc3c7; border-radius: 9px; color: #7d1f2b; background: #fff4f5; font-size: 0.84rem; }
.notice.good { border-color: #b8dfd1; color: #086148; background: #effaf6; }
.success-state { padding: clamp(44px, 9vw, 100px); text-align: center; }
.success-state .eyebrow { color: var(--blue-dark); }
.success-state h2 { max-width: 650px; margin: 8px auto 18px; color: var(--navy); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; }
.success-state p:last-child { max-width: 600px; margin: 0 auto; color: var(--muted); }
.success-mark { display: grid; width: 58px; height: 58px; margin: 0 auto 26px; place-items: center; border-radius: 50%; color: var(--white); background: var(--success); font-size: 1.7rem; }
footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 38px; border-top: 1px solid #dbe1ea; color: #687486; font-size: 0.76rem; }
footer p { margin: 0; }

@media (max-width: 860px) {
  body { background: linear-gradient(180deg, var(--navy) 0, var(--navy) 30rem, var(--soft) 30rem); }
  .intake-layout { grid-template-columns: 1fr; }
  .progress-panel { position: static; padding: 18px; }
  .step-list, .resume-card { display: none; }
  .progress-track { margin-bottom: 0; }
  .service-row { grid-template-columns: 1fr 1fr; }
  .service-row label:nth-child(3) { grid-column: 1 / -1; }
  .remove-service { position: absolute; top: 9px; right: 9px; }
  .example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  body { background: linear-gradient(180deg, var(--navy) 0, var(--navy) 28rem, var(--soft) 28rem); }
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 74px; }
  .brand img { width: 153px; }
  .secure-note { font-size: 0; }
  .secure-note span { font-size: 0.74rem; margin: 0; }
  .intro { padding: 50px 0 40px; }
  h1 { font-size: clamp(2.1rem, 11vw, 3rem); }
  .intro-copy { font-size: 0.96rem; }
  .intake-layout { gap: 14px; padding-bottom: 58px; }
  .progress-panel, .form-card { border-radius: 14px; }
  #intake-form { padding: 28px 20px; }
  .field-grid, .service-row, .example-grid { grid-template-columns: 1fr; }
  .service-row label:nth-child(3) { grid-column: auto; }
  .example-card > span { min-height: 126px; }
  .form-actions { grid-template-columns: 1fr 1fr; }
  .save-state { grid-column: 1 / -1; grid-row: 1; }
  .button { width: 100%; padding: 0 12px; font-size: 0.86rem; }
  .notice { margin: 14px 14px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

