.qualification-page { min-height: 100vh; background: var(--paper); }

.survey-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 58px);
  border-bottom: 1px solid rgba(255,255,255,.16);
  background: var(--ink);
  color: var(--paper);
}

.survey-exit {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
}

.survey-exit:hover { color: var(--sand); }

.survey-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 42%) minmax(0, 1fr); padding-top: 82px; }

.survey-image { position: fixed; inset: 82px auto 0 0; width: 42%; overflow: hidden; color: var(--paper); }
.survey-image picture, .survey-image img { width: 100%; height: 100%; }
.survey-image img { object-fit: cover; object-position: 52% center; }
.survey-image-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25,23,20,.12), rgba(25,23,20,.78)); }
.survey-image-copy { position: absolute; z-index: 1; right: clamp(28px, 4vw, 64px); bottom: clamp(32px, 6vw, 76px); left: clamp(28px, 4vw, 64px); }
.survey-image-copy .eyebrow { color: var(--sand); }
.survey-image-copy > p:last-child { max-width: 540px; margin: 0; font-family: var(--serif); font-size: clamp(28px, 3vw, 46px); line-height: 1.12; }

.survey-panel { grid-column: 2; min-height: calc(100vh - 82px); display: flex; flex-direction: column; padding: clamp(28px, 4vw, 56px) clamp(24px, 6vw, 92px) 54px; }
.survey-progress { width: min(100%, 780px); margin: 0 auto 34px; color: #6e685f; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.progress-track { height: 2px; margin-top: 12px; overflow: hidden; background: rgba(27,26,24,.12); }
.progress-track span { display: block; width: 0; height: 100%; background: var(--clay); transition: width .35s ease; }

#qualification-form { width: min(100%, 780px); flex: 1; display: flex; margin: auto; }
.survey-step { display: none; width: 100%; align-self: center; margin: 0; padding: 0; border: 0; animation: step-in .32s ease both; }
.survey-step.is-active { display: block; }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.survey-step h1, .survey-step h2, .survey-step legend { max-width: 760px; margin: 0 0 20px; color: var(--ink); font-family: var(--serif); font-size: clamp(38px, 4.4vw, 62px); font-weight: 400; letter-spacing: -.03em; line-height: 1.04; }
.survey-step legend { padding: 0; }
.survey-step h2, .survey-step legend { font-size: clamp(32px, 3.6vw, 50px); }
.step-lede, .step-intro { max-width: 700px; color: #625d55; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; }
.step-intro { margin-bottom: 28px; font-size: 16px; }
.time-note { display: inline-flex; align-items: center; gap: 9px; margin: 14px 0 4px; color: #6d675f; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.time-note::before { width: 22px; height: 1px; background: var(--clay); content: ""; }

.option-list { display: grid; gap: 10px; margin-top: 28px; }
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-card { position: relative; display: block; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card span { min-height: 60px; display: flex; align-items: center; padding: 16px 18px 16px 50px; border: 1px solid rgba(27,26,24,.17); background: var(--paper); line-height: 1.4; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.choice-card span::before { position: absolute; left: 19px; width: 15px; height: 15px; border: 1px solid #918a81; border-radius: 50%; content: ""; }
.choice-card input:checked + span { border-color: var(--clay); background: #f3ebe2; }
.choice-card input:checked + span::before { border: 5px solid var(--clay); background: var(--paper); box-sizing: border-box; }
.choice-card input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }
.choice-card:hover span { border-color: var(--clay); transform: translateY(-1px); }
.compact-options .choice-card span { min-height: 56px; font-size: 15px; }
.detailed-options .choice-card span { min-height: 76px; }

.rank-status { min-height: 28px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--clay); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.rank-status button { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: none; color: #6d675f; cursor: pointer; font: inherit; letter-spacing: .06em; text-transform: uppercase; }
.ranking-list { display: grid; gap: 10px; }
.ranking-card { width: 100%; display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 18px; border: 1px solid rgba(27,26,24,.17); background: var(--paper); color: var(--ink); cursor: pointer; text-align: left; transition: border-color .18s ease, transform .18s ease, opacity .18s ease; }
.ranking-card:hover { border-color: var(--clay); transform: translateY(-1px); }
.ranking-card:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.ranking-card.is-ranked { border-color: var(--clay); background: #f3ebe2; }
.rank-number { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #a59d93; border-radius: 50%; color: #766f66; font-size: 12px; font-weight: 700; }
.ranking-card.is-ranked .rank-number { border-color: var(--clay); background: var(--clay); color: var(--paper); }
.ranking-card strong { display: block; margin-bottom: 5px; font-family: var(--serif); font-size: 23px; font-weight: 400; }
.ranking-card small { display: block; color: #686159; font-size: 13px; line-height: 1.45; }

.investment-card { margin: 28px 0 18px; padding: clamp(22px, 4vw, 34px); background: var(--ink); color: var(--paper); transition: background .2s ease; }
.investment-card.is-below-typical { background: #7b3028; }
.investment-label { margin-bottom: 4px; color: var(--sand); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.investment-card output { display: block; margin-bottom: 28px; font-family: var(--serif); font-size: clamp(33px, 4vw, 52px); line-height: 1.1; }
.investment-warning { max-width: 620px; margin: -10px 0 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.28); color: var(--paper); font-size: 14px; line-height: 1.55; }
.investment-warning[hidden] { display: none; }
.investment-card input[type="range"] { width: 100%; height: 3px; margin: 14px 0; accent-color: var(--clay); cursor: pointer; }
.investment-card.is-below-typical input[type="range"] { accent-color: #f3c0ae; }
.range-labels { display: flex; justify-content: space-between; color: rgba(255,253,249,.65); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.budget-alternatives { margin-top: 0; }
.budget-alternatives .choice-card span { min-height: 54px; font-size: 14px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.contact-grid label > span { display: block; margin-bottom: 7px; color: #625d55; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contact-grid input { width: 100%; min-height: 54px; padding: 12px 14px; border: 1px solid rgba(27,26,24,.24); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; }
.contact-grid input:focus { border-color: var(--clay); outline: 1px solid var(--clay); }
.consent-note { margin: 16px 0 0; color: #777067; font-size: 11px; line-height: 1.5; }
.survey-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.field-error { min-height: 20px; margin: 12px 0 0; color: #8b3f2f; font-size: 13px; }

.survey-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; }
.survey-actions.single-action { justify-content: flex-start; }
.survey-button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border: 1px solid var(--ink); border-radius: 0; cursor: pointer; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; transition: background .18s ease, color .18s ease, transform .18s ease; }
.survey-button.primary { background: var(--ink); color: var(--paper); }
.survey-button.primary:hover { border-color: var(--clay); background: var(--clay); transform: translateY(-1px); }
.survey-button.text { padding-right: 0; padding-left: 0; border-color: transparent; background: transparent; color: #6d675f; }
.survey-button.text:hover { color: var(--ink); }

.result-step .step-lede { max-width: 650px; }
.result-call-prompt { margin: 30px 0 0; color: #625d55; font-size: 16px; line-height: 1.5; }
.result-call-actions { margin-top: 12px; }
.result-detail { max-width: 620px; margin: 30px 0 10px; padding: 24px; border-left: 2px solid var(--clay); background: var(--cream); }
.result-detail span { display: block; color: var(--clay); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.result-detail strong { display: block; margin: 5px 0 8px; font-family: var(--serif); font-size: 25px; font-weight: 400; }
.result-detail p { margin: 0; color: #625d55; font-size: 15px; }
.result-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }
.result-links a { color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-decoration-color: var(--clay); text-underline-offset: 5px; text-transform: uppercase; }

@media (max-width: 980px) {
  .survey-layout { grid-template-columns: minmax(250px, 34%) minmax(0, 1fr); }
  .survey-image { width: 34%; }
  .survey-panel { padding-right: clamp(24px, 5vw, 58px); padding-left: clamp(24px, 5vw, 58px); }
  .survey-image-copy > p:last-child { font-size: 30px; }
}

@media (max-width: 760px) {
  .survey-header { height: 70px; }
  .survey-header .brand img { height: 36px; }
  .survey-exit { max-width: 150px; text-align: right; }
  .survey-layout { display: block; padding-top: 70px; }
  .survey-image { position: relative; inset: auto; width: 100%; height: 180px; }
  .survey-image-copy { right: 22px; bottom: 20px; left: 22px; }
  .survey-image-copy .eyebrow { margin-bottom: 8px; }
  .survey-image-copy > p:last-child { max-width: 420px; font-size: 23px; }
  .survey-panel { min-height: calc(100vh - 250px); padding: 26px 20px 42px; }
  .survey-progress { margin-bottom: 28px; }
  .option-grid, .contact-grid { grid-template-columns: 1fr; }
  .survey-step h1 { font-size: 42px; }
  .survey-step h2, .survey-step legend { font-size: 34px; }
}

@media (max-width: 430px) {
  .survey-image { height: 145px; }
  .survey-image-copy > p:last-child { display: none; }
  .survey-panel { min-height: calc(100vh - 215px); }
  .choice-card span { padding-left: 45px; }
  .survey-actions { align-items: stretch; }
  .survey-button.primary { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .survey-step { animation: none; }
  .progress-track span, .choice-card span, .ranking-card, .survey-button { transition: none; }
}
