.assessment-page {
  --form-space: clamp(20px, 4vw, 36px);
  background: var(--paper);
  color: var(--body);
}

.assessment-page [hidden] {
  display: none !important;
}

.assessment-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0 28px 112px;
  background: var(--ink-deep);
  color: var(--white);
}

.assessment-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 78% 12%, rgba(105, 195, 185, .14), transparent 38%),
    linear-gradient(90deg, rgba(132, 206, 202, .045) 1px, transparent 1px);
  background-size: auto, 25% 100%;
  content: "";
  pointer-events: none;
}

.assessment-header {
  display: flex;
  width: min(100%, 1320px);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: auto;
  padding: 28px 0;
}

.assessment-brand {
  display: inline-flex;
  align-items: center;
}

.assessment-brand img {
  display: block;
  width: 138px;
  height: auto;
  filter: brightness(0) invert(1);
}

.assessment-back,
.assessment-footer > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, .82);
  font: 600 13px/1.3 var(--display);
  transition: color .2s ease;
}

.assessment-back:hover,
.assessment-footer > a:hover {
  color: var(--mint-soft);
}

.assessment-back:focus-visible,
.assessment-footer a:focus-visible,
.assessment-brand:focus-visible {
  outline: 2px solid var(--mint-soft);
  outline-offset: 4px;
}

.assessment-hero-copy {
  width: min(100%, 920px);
  margin: 66px auto 0;
}

.assessment-hero-copy .kicker {
  margin-bottom: 22px;
}

.assessment-hero-copy h1 {
  max-width: 850px;
  margin: 0 0 24px;
  color: var(--white);
  font-size: clamp(42px, 6vw, 74px);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: 1.03;
}

.assessment-hero-copy h1 em {
  color: var(--mint);
}

.assessment-hero-copy > p:last-child {
  max-width: 720px;
  margin: 0;
  color: #c8dce0;
  font-size: 17px;
  line-height: 1.65;
}

.assessment-main {
  position: relative;
  width: min(calc(100% - 40px), 920px);
  margin: -42px auto 0;
  padding-bottom: 96px;
}

.assessment-notice {
  margin: 0 0 22px;
  padding: 16px 20px;
  border-left: 3px solid var(--blue);
  background: var(--white);
  color: var(--ink);
}

.assessment-notice[data-state="ready"] {
  border-left-color: var(--mint);
  background: #f1f8f6;
}

.assessment-notice[data-state="sending"],
.assessment-notice[data-state="checking"] {
  border-left-color: var(--blue);
}

.assessment-notice[data-state="error"],
.assessment-notice[data-state="unavailable"] {
  border-left-color: var(--blue);
  background: #eef4f5;
}

.assessment-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 30px 34px;
  border: 1px solid rgba(2, 50, 70, .12);
  background: var(--white);
  box-shadow: 0 14px 45px rgba(2, 50, 70, .045);
}

.assessment-intro .kicker {
  margin-bottom: 10px;
}

.assessment-intro h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 39px);
}

.assessment-intro > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.required-mark {
  color: var(--blue);
  font: 700 14px/1 var(--display);
}

.assessment-progress {
  margin-bottom: 16px;
  padding: 23px 28px 17px;
  border: 1px solid rgba(2, 50, 70, .12);
  background: #fbfcfb;
}

.assessment-progress ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.assessment-progress li {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font: 500 12px/1.35 var(--display);
}

.assessment-progress li:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: 10px;
  left: 42px;
  height: 1px;
  background: var(--line);
  content: "";
}

.assessment-progress li span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fbfcfb;
  color: var(--muted);
  font-size: 10px;
}

.assessment-progress li b {
  position: relative;
  z-index: 1;
  padding-right: 9px;
  background: #fbfcfb;
  font-weight: 600;
}

.assessment-progress li.is-active,
.assessment-progress li.is-complete {
  color: var(--ink);
}

.assessment-progress li.is-active span,
.assessment-progress li.is-complete span {
  border-color: var(--mint);
  background: var(--mint);
  color: var(--ink);
}

.assessment-progress > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.assessment-form {
  border: 1px solid rgba(2, 50, 70, .12);
  background: var(--white);
  box-shadow: 0 14px 45px rgba(2, 50, 70, .04);
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.assessment-step {
  padding: clamp(26px, 5vw, 52px);
}

.step-heading {
  margin-bottom: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.step-eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font: 700 10px/1.2 var(--display);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.step-heading h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(29px, 4vw, 40px);
}

.step-heading > p:last-child {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
}

.form-field {
  min-width: 0;
  margin: 0 0 29px;
  padding: 0;
  border: 0;
}

.field-span-2 {
  grid-column: 1 / -1;
}

.field-age {
  max-width: 260px;
}

.form-field > label,
.form-field legend {
  display: block;
  width: 100%;
  margin-bottom: 11px;
  color: var(--ink);
  font: 600 14px/1.45 var(--display);
}

.form-field legend {
  padding: 0;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid rgba(2, 50, 70, .2);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: 400 15px/1.45 var(--sans);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.6;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
  opacity: .72;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(105, 195, 185, .3);
}

.form-field input:disabled,
.form-field textarea:disabled {
  background: #f0f3f2;
  color: var(--muted);
}

.input-with-suffix {
  position: relative;
}

.input-with-suffix input {
  padding-right: 62px;
}

.input-with-suffix > span {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
}

.field-hint {
  display: block;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.choice-field {
  margin-bottom: 32px;
}

.choice-field legend {
  margin-bottom: 13px;
}

.choice-row,
.choice-grid {
  display: grid;
  gap: 9px;
}

.choice-row {
  grid-template-columns: repeat(auto-fit, minmax(135px, max-content));
}

.choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-option,
.same-person-option {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid rgba(2, 50, 70, .16);
  border-radius: 8px;
  background: var(--white);
  color: var(--body);
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.choice-option:has(input:checked),
.same-person-option:has(input:checked) {
  border-color: var(--blue);
  background: #eef7f5;
  color: var(--ink);
}

.choice-option:has(input:focus-visible),
.same-person-option:has(input:focus-visible) {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.choice-option:has(input:disabled),
.same-person-option:has(input:disabled) {
  cursor: not-allowed;
  opacity: .6;
}

.choice-option input,
.same-person-option input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--blue);
}

.same-person-option {
  grid-column: 1 / -1;
  margin: 0 0 24px;
  border-color: var(--line);
  background: #fbfcfb;
}

.conditional-panel {
  margin: 8px 0 30px;
  padding: 24px;
  border: 1px solid rgba(2, 50, 70, .12);
  border-radius: 10px;
  background: #f8faf9;
}

.conditional-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.conditional-heading h3,
.conditional-panel > h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font: 600 21px/1.2 var(--display);
  letter-spacing: -.04em;
}

.conditional-heading p:last-child {
  max-width: 630px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.conditional-mark {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  font-size: 15px;
}

.conditional-panel .field-grid {
  gap: 0 18px;
}

.privacy-note {
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.step-actions--end {
  justify-content: flex-end;
}

.assessment-page .step-actions .button {
  min-height: 48px;
  gap: 22px;
  padding: 10px 12px 10px 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font: 600 14px/1.3 var(--display);
  cursor: pointer;
}

.assessment-page .step-actions .button > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  font-size: 17px;
}

.assessment-page .step-actions .button-quiet {
  gap: 9px;
  border-color: transparent;
  padding-inline: 4px;
  background: transparent;
  color: var(--ink);
}

.assessment-page .step-actions .button-quiet > span {
  background: transparent;
  color: var(--blue);
}

.assessment-page .step-actions .button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.assessment-page .step-actions .button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.assessment-page .step-actions .button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.field-error {
  display: block;
  margin: 9px 0 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.form-field [aria-invalid="true"] {
  border-color: var(--blue);
}

.assessment-footnote {
  max-width: 730px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.assessment-success {
  padding: clamp(30px, 6vw, 64px);
  border: 1px solid rgba(2, 50, 70, .12);
  background: var(--white);
  box-shadow: 0 14px 45px rgba(2, 50, 70, .04);
}

.assessment-success h2 {
  max-width: 700px;
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(32px, 4.5vw, 48px);
}

.assessment-success > p:not(.kicker) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.assessment-success-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: var(--ink);
  font: 600 14px var(--display);
}

.assessment-success-back:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

.assessment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px max(24px, calc((100% - 1180px) / 2));
  background: var(--ink-deep);
  color: var(--white);
}

.assessment-footer .assessment-brand img {
  width: 116px;
}

.assessment-footer > div > p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: 11px;
}

.assessment-footer > a {
  font-size: 12px;
}

@media (max-width: 700px) {
  .assessment-hero {
    padding: 0 20px 78px;
  }

  .assessment-header {
    padding-block: 22px;
  }

  .assessment-brand img {
    width: 116px;
  }

  .assessment-back {
    font-size: 11px;
  }

  .assessment-hero-copy {
    margin-top: 40px;
  }

  .assessment-hero-copy h1 {
    font-size: clamp(39px, 9.5vw, 58px);
  }

  .assessment-hero-copy > p:last-child {
    font-size: 15px;
  }

  .assessment-main {
    width: min(calc(100% - 28px), 920px);
    margin-top: -28px;
    padding-bottom: 68px;
  }

  .assessment-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 23px 21px;
  }

  .assessment-intro > p {
    margin: 0;
  }

  .assessment-progress {
    padding: 17px 14px 13px;
  }

  .assessment-progress ol {
    gap: 5px;
  }

  .assessment-progress li {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    font-size: 10px;
  }

  .assessment-progress li:not(:last-child)::after {
    top: 17px;
    right: 4px;
    left: 38px;
  }

  .assessment-progress li b {
    padding-right: 2px;
    background: #fbfcfb;
  }

  .assessment-step {
    padding: 27px 20px;
  }

  .step-heading {
    margin-bottom: 26px;
    padding-bottom: 22px;
  }

  .field-grid,
  .choice-grid,
  .choice-grid--two {
    grid-template-columns: 1fr;
  }

  .field-age {
    max-width: none;
  }

  .choice-row {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .conditional-panel {
    padding: 20px 16px;
  }

  .assessment-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px 22px;
  }
}

@media (max-width: 420px) {
  .assessment-header {
    gap: 10px;
  }

  .assessment-brand img {
    width: 104px;
  }

  .assessment-back {
    font-size: 10px;
  }

  .assessment-progress li b {
    max-width: 92px;
    line-height: 1.25;
  }

  .assessment-page .step-actions .button {
    gap: 11px;
    padding-left: 15px;
    font-size: 13px;
  }
}

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