.intake-page { background: var(--warm-paper); }
.intake-topbar { border-bottom: 1px solid rgba(201,216,206,.24); background: var(--deep-pine); color: var(--white); }
.intake-nav { width: min(600px, calc(100% - 40px)); min-height: 68px; display: flex; align-items: center; justify-content: space-between; margin-inline: auto; }
.intake-nav > span { color: var(--sage-tint); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.intake-shell { width: min(600px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 72px; }
.progress-wrap { margin-bottom: 16px; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--stone); font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.progress-track { height: 3px; overflow: hidden; border-radius: 99px; background: var(--hairline); }
.progress-track i { width: 20%; height: 100%; display: block; border-radius: inherit; background: var(--clinic-green); transition: width .35s ease; }
.intake-step, .result-screen { padding: 28px 20px; border: 1px solid var(--hairline); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-soft); }
.intake-step[hidden], .result-screen[hidden] { display: none; }
.step-heading { margin-bottom: 32px; }
.step-context { margin: 0 0 8px; color: var(--deep-pine); font-family: var(--font-display); font-size: 23px; font-weight: 500; }
.step-heading h1, .step-heading h2, .result-screen h2 { margin: 0; font-family: var(--font-display); font-size: clamp(34px, 10vw, 48px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.step-heading > p:last-child, .result-screen > p { margin: 16px 0 0; color: var(--stone); font-size: 13px; }
.back-button { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; margin: -10px 0 22px; padding: 0; border: 0; background: transparent; color: var(--clinic-green); font-size: 12px; font-weight: 600; cursor: pointer; }
.field-grid { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; color: var(--deep-pine); font-size: 12px; font-weight: 600; }
.field span { display: flex; justify-content: space-between; gap: 8px; }
.field em, .choice-fieldset legend em { color: #a84238; font-size: 10px; font-style: normal; font-weight: 700; }
.field small { color: var(--stone); font-size: 10px; font-weight: 400; line-height: 1.4; }
.draft-note { margin: 14px 0 18px; color: var(--stone); font-size: 10px; line-height: 1.4; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 13px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); outline: 0; transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--clinic-green); box-shadow: 0 0 0 3px rgba(47,110,92,.12); }
.field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid { border-color: #a84238; }
.consent-block.is-invalid, .choice-fieldset.is-invalid, .medical-fieldset.is-invalid { padding: 10px; border: 1px solid #a84238; border-radius: var(--radius-sm); background: #fffaf9; }
.unit-input { position: relative; }
.unit-input input { padding-right: 48px; }
.unit-input b { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--stone); font-size: 11px; font-weight: 600; }
.consent-block, .choice-fieldset, .medical-fieldset { min-width: 0; margin: 28px 0 0; padding: 0; border: 0; }
.consent-block legend, .choice-fieldset legend, .medical-fieldset legend { margin-bottom: 12px; color: var(--deep-pine); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.marketing-consent { margin-top: 18px; padding: 16px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: var(--warm-paper); }
.marketing-consent > p { margin: 0 0 10px; color: var(--deep-pine); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.marketing-consent > p em { margin-left: 6px; color: var(--stone); font-size: 10px; font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; }
.marketing-choice { min-height: auto; margin: 0; background: var(--white); }
.fieldset-note { margin: -3px 0 14px; color: var(--stone); font-size: 11px; line-height: 1.5; }
.check-choice { min-height: 60px; display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; padding: 14px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; }
.check-choice:has(input:checked) { border-color: var(--clinic-green); background: #f1f6f3; }
.check-choice input { width: 18px; height: 18px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--clinic-green); }
.check-choice span { display: grid; gap: 3px; }
.check-choice strong { color: var(--ink); font-size: 12px; line-height: 1.4; }
.check-choice small { color: var(--stone); font-size: 10px; line-height: 1.4; }
.urgent-choice { border-color: #e6cbc5; background: #fffaf9; }
.none-choice { margin-top: 16px; background: var(--warm-paper); }
.choice-grid { display: grid; gap: 8px; }
.select-choice { position: relative; min-height: 54px; display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font-size: 12px; font-weight: 600; cursor: pointer; }
.select-choice:has(input:checked) { border-color: var(--clinic-green); background: #f1f6f3; color: var(--deep-pine); }
.select-choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-fieldset + .choice-fieldset { margin-bottom: 24px; }
.bmi-preview { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 16px; margin: 8px 0 24px; padding: 18px; border-radius: var(--radius-sm); background: var(--sage-tint); color: var(--deep-pine); }
.bmi-preview span { font-size: 11px; font-weight: 600; }
.bmi-preview strong { grid-row: 1 / 3; grid-column: 2; font-family: var(--font-display); font-size: 38px; font-weight: 500; line-height: 1; }
.bmi-preview p { margin: 0; color: var(--stone); font-size: 9px; }
.bmi-preview #bmi-category { color: var(--deep-pine); font-weight: 700; }
.bmi-preview #bmi-range, .bmi-preview #bmi-eligibility { grid-column: 1 / -1; line-height: 1.45; }
.bmi-warning { margin: -10px 0 24px; border: 1px solid #e5d1a4; background: #fff9ea; }
.step-actions { display: flex; justify-content: flex-end; margin-top: 24px; }
.step-actions .button { width: 100%; }
.step-error { min-height: 20px; margin: 14px 0 0; color: #a84238; font-size: 11px; font-weight: 600; }
.review-list { margin: 0 0 20px; border-top: 1px solid var(--hairline); }
.review-item { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.review-item span { color: var(--stone); font-size: 11px; }
.review-item strong { max-width: 260px; text-align: right; font-size: 12px; }
.notice-card { padding: 18px; border-radius: var(--radius-sm); background: var(--warm-paper); }
.notice-card strong { font-size: 12px; }
.notice-card p { margin: 6px 0 0; color: var(--stone); font-size: 10px; }
.result-screen { text-align: left; }
.result-intro { max-width: 440px; margin: 0 auto; text-align: center; }
.result-intro > p { margin: 16px 0 0; }
.result-mark { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; background: var(--sage-tint); color: var(--deep-pine); font-size: 24px; }
.result-summary { display: grid; gap: 7px; margin: 28px 0 18px; padding: 20px; border: 1px solid #dbe5df; border-radius: var(--radius-sm); background: #f1f6f3; text-align: center; }
.result-summary::before { content: attr(data-label); color: var(--stone); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.result-summary strong { display: block; color: var(--deep-pine); font-family: var(--font-display); font-size: clamp(28px, 7vw, 36px); font-weight: 500; letter-spacing: .02em; }
.result-summary span { color: var(--stone); font-size: 11px; line-height: 1.5; }
.result-details, .result-next { margin-top: 18px; padding: 18px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: var(--white); }
.result-details h3, .result-next h3 { margin: 0; color: var(--deep-pine); font-size: 12px; }
.result-next ol { display: grid; gap: 10px; margin: 14px 0 0; padding-left: 20px; color: var(--stone); font-size: 11px; line-height: 1.55; }
.result-actions { display: grid; gap: 8px; margin-top: 24px; }
.result-action { width: 100%; }
.restart-button { min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--clinic-green); font-size: 11px; font-weight: 600; cursor: pointer; }
.result-screen.is-urgent .result-mark { background: #f3ddd8; color: #8c3028; }
.result-screen.is-urgent .result-summary { border-color: #e6cbc5; background: #fffaf9; }
.intake-footnote { max-width: 500px; margin: 20px auto 0; color: var(--stone); text-align: center; font-size: 9px; }
.submit-button[disabled] { opacity: .6; cursor: wait; }

@media (min-width: 640px) {
  .intake-shell { padding-top: 40px; }
  .intake-step, .result-screen { padding: 44px 48px; }
  .two-columns { grid-template-columns: 1fr 1fr; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .step-actions .button { width: auto; min-width: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  .progress-track i { transition: none; }
}
