/* Women's Hormone Questionnaire (/womens-hormone-questionnaire/). Shared tokens, .btn, .field and .consent come from styles.css. */

.qz-body { background: var(--cream); min-height: 100vh; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header + progress ---------- */
.qz-header { position: sticky; top: 0; z-index: 10; background: #fff; }
.qz-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 88px; max-width: 1576px; margin: 0 auto; padding: 0 100px; }
.qz-header__call { font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.qz-header__call:hover { color: var(--wine); }
.qz-header__count { display: none; font-weight: 600; font-size: 15px; color: var(--ink); }
.qz-progress { height: 4px; background: #d6dedb; }
.qz-progress span { display: block; height: 100%; width: 0; background: var(--wine); transition: width .5s cubic-bezier(.22, 1, .36, 1); }
[data-screen="intro"] .qz-progress { display: none; }
[data-screen="intro"] .qz-header { border-bottom: 1px solid #efebe4; }
/* Site header + footer only on the intro and results screens; the questions stay distraction-free (no way to wander off mid-quiz) */
.qz-body:not([data-screen="intro"]):not([data-screen="results"]) :is(.site-header, .site-footer, .mobile-cta) { display: none !important; }
.qz-body.has-mobile-cta:not([data-screen="intro"]):not([data-screen="results"]) { padding-bottom: 0; }
.qz-body:is([data-screen="intro"], [data-screen="results"]) .qz-header { display: none; }

/* ---------- Shared type ---------- */
.qz { padding: 0 24px 80px; }
.qz-in { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s cubic-bezier(.22, 1, .36, 1); }
.qz-in.is-in { opacity: 1; transform: none; }
.qz-eyebrow { color: var(--gold); font-weight: 600; font-size: 14px; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 16px; }
.qz-title { font-family: var(--serif); font-weight: 600; font-size: 44px; line-height: 1.18; letter-spacing: -.3px; color: var(--ink); outline: none; }
.qz-title--xl { font-size: 52px; line-height: 1.12; }
.qz-sub { margin-top: 14px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.qz-lead { margin-top: 18px; font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.qz-stars { color: var(--gold); letter-spacing: 1px; }
.qz-fine { margin-top: 14px; font-size: 14px; color: #6b7280; }
.qz-disclaimer { font-size: 12.5px; line-height: 1.6; color: #7c838a; }
.qz-disclaimer--center { max-width: 760px; margin: 48px auto 0; text-align: center; }

/* ---------- Question step ---------- */
.qz-step { max-width: 720px; margin: 0 auto; padding-top: 92px; }
.qz-opts { display: grid; gap: 12px; margin-top: 40px; }
.qz-opts--grid { grid-template-columns: 1fr 1fr; }
.qz-opt { position: relative; display: flex; align-items: center; gap: 14px; min-height: 67px; padding: 12px 22px; background: #fff; border: 1px solid #d6dedb; border-radius: 12px; font: 500 19px/1.3 var(--sans); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.qz-opt:hover { border-color: #b9a2a9; box-shadow: 0 6px 18px -12px rgba(28, 42, 53, .4); }
.qz-opt:focus-visible, .qz-opt:focus-within { outline: 2px solid var(--wine); outline-offset: 2px; }
.qz-opt.is-on { background: #f7eef0; border-color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); }
.qz-opt--radio::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #9aa3a8; background: #fff; transition: border-color .2s, box-shadow .2s; }
.qz-opt--radio.is-on::before { border-color: var(--wine); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--wine); }
.qz-opts--check .qz-opt { min-height: 56px; font-size: 16px; font-weight: 400; padding: 10px 18px; }
.qz-opt--check input { position: absolute; opacity: 0; pointer-events: none; }
.qz-opt--check span { display: flex; align-items: center; gap: 12px; }
.qz-opt--check span::before { content: ""; flex: none; width: 19px; height: 19px; border-radius: 4px; border: 1.5px solid #9aa3a8; background: #fff center / 12px no-repeat; transition: background-color .2s, border-color .2s; }
.qz-opt--check.is-on span::before { background-color: var(--wine); border-color: var(--wine); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5.2 4.4 8.5 11 1.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.qz-select { display: block; margin-top: 40px; }
.qz-select select { width: 100%; height: 56px; padding: 0 44px 0 18px; font: 500 17px var(--sans); color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 4.5'%3E%3Cpath d='M.5.5 4 4 7.5.5' fill='none' stroke='%231c2a35'/%3E%3C/svg%3E") no-repeat right 18px center / 11px; border: 1.5px solid var(--wine); border-radius: 10px; appearance: none; cursor: pointer; }
.qz-select select:focus { outline: 2px solid var(--wine); outline-offset: 2px; }

.qz-sev { display: grid; gap: 10px; margin-top: 40px; }
.qz-sev__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 8px 8px 8px 22px; background: #fff; border: 1px solid #d6dedb; border-radius: 10px; min-width: 0; }
.qz-sev__row legend { float: left; padding: 0; font-size: 16px; color: var(--ink); }
.qz-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 4px; background: #efebe4; border-radius: 8px; flex: none; width: 250px; }
.qz-seg label { position: relative; cursor: pointer; }
.qz-seg input { position: absolute; opacity: 0; }
.qz-seg span { display: block; padding: 8px 6px; border-radius: 6px; text-align: center; font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: background-color .2s, color .2s; }
.qz-seg label:hover span { color: var(--wine); }
.qz-seg input:checked + span { background: var(--wine); color: #fff; font-weight: 600; }
.qz-seg input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 1px; }

.qz-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 34px; }
.qz-back { background: none; border: 0; padding: 8px 0; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.qz-back:hover { color: var(--wine); }
.qz-continue { min-width: 156px; }
.qz-continue:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.qz-hint { font-size: 14px; color: #7c838a; }
.qz-hint--m { display: none; }
.qz-private { margin-top: 56px; font-size: 13px; color: #7c838a; }
.qz-private a { color: inherit; }
.qz-private a:hover { color: var(--wine); }

/* ---------- Forms (contact gate, waitlist) ---------- */
.qz-form { display: grid; gap: 18px; margin-top: 34px; }
.qz-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qz-form .field input { height: 52px; border-color: #d6dedb; }
.qz-form .qz-nav { margin-top: 12px; }
.qz-thanks { margin-top: 34px; padding: 22px 24px; background: #e6ecea; border-radius: 12px; font-size: 17px; }

/* ---------- Split screens (intro, halfway) ---------- */
.qz:has(.qz-split) { padding: 0; }
.qz-split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 92px); }
.qz-split__copy { align-self: center; max-width: 720px; padding: 64px 64px 64px max(16px, calc((100vw - var(--max)) / 2)); } /* same left edge as the site container */
.qz-split__media { position: relative; overflow: hidden; background: #e9e4dc; }
.qz-split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qz-split__media--portrait { background: #f4f4f4; }
.qz-split__media--portrait img { object-position: center top; }
.qz-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.qz-chips li { padding: 7px 16px; background: var(--sage); border-radius: 6px; font-size: 15px; font-weight: 500; color: var(--ink); }
.qz-start { margin-top: 38px; min-width: 300px; }
.qz-trust { margin-top: 34px; padding-top: 22px; border-top: 1px solid #d9d4cb; font-size: 15px; font-weight: 500; }
.qz-trust .qz-disclaimer { margin-top: 18px; font-weight: 400; }
.qz-quote { margin: 34px 0 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--gold); }
.qz-quote p { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 21px; line-height: 1.5; color: var(--ink); }
.qz-quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.qz-review { margin: 30px 0 36px; font-size: 14px; color: var(--ink-2); }
.qz-review p { margin-top: 6px; max-width: 560px; }

/* ---------- Results (hormone profile) ---------- */
.qz-results { max-width: 1376px; margin: 0 auto; padding-top: 78px; }
.qz-results__head { max-width: 900px; margin: 0 auto; text-align: center; }
.qz-results__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); grid-template-areas: "main side" "after side"; gap: 20px 32px; align-items: start; margin-top: 52px; }
.qz-results__main { grid-area: main; display: grid; gap: 16px; }
.qz-results__after { grid-area: after; display: grid; gap: 16px; }
.qz-card { background: #fff; border: 1px solid #e6e1d8; border-radius: 16px; padding: 34px; }
.qz-card--side { grid-area: side; position: sticky; top: 112px; box-shadow: 0 20px 50px -30px rgba(28, 42, 53, .3); }
.qz-card--book { border: 2px solid var(--wine); }
.qz-card__title { font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.2; color: var(--ink); }
.qz-card__text { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.qz-card__call { margin-top: 18px; font-size: 15px; color: var(--ink-2); text-align: center; }
.qz-card__call a { color: var(--wine); font-weight: 600; }
.qz-cal { position: relative; margin: 18px -16px 0; min-height: 560px; }
.qz-cal::before { content: "Loading available times\2026"; position: absolute; inset: 0; display: grid; place-items: center; color: #6b7280; }
.qz-cal iframe { position: relative; display: block; width: 100%; min-height: 640px; border: 0; }

.qz-hcard { background: #fff; border: 1px solid #e6e1d8; border-radius: 14px; padding: 28px 32px 30px; }
.qz-hcard--strong { border-color: var(--wine); box-shadow: inset 4px 0 0 var(--wine); }
.qz-hcard__head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.qz-hcard__head h2, .qz-hcard__none { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.15; color: var(--ink); }
.qz-hcard__count { margin-left: auto; font-size: 14px; color: #7c838a; }
.qz-match { padding: 3px 9px; border-radius: 4px; background: #f7eef0; color: var(--wine); font-size: 13px; font-weight: 600; }
.qz-match--possible { background: #efebe4; color: var(--ink-2); }
.qz-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.qz-tags li { padding: 5px 11px; border-radius: 5px; background: var(--sage); font-size: 14px; color: var(--ink); }
.qz-hcard h3 { margin-top: 18px; color: var(--gold); font-size: 12.5px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.qz-hcard p { margin-top: 6px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.qz-hcard__none + p { margin-top: 12px; }
.qz-rule { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 18px 24px; background: #efebe4; border-radius: 12px; font-size: 15px; color: var(--ink-2); }
.qz-rule strong { color: var(--ink); font-weight: 600; }
.qz-solution { padding: 30px 32px; background: var(--green); border-radius: 14px; color: #fff; }
.qz-solution__eyebrow { color: #d5e2de; font-size: 12.5px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.qz-solution h2 { margin-top: 10px; font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.25; }
.qz-solution p:last-child { margin-top: 12px; font-size: 16px; line-height: 1.6; color: #e3ece9; }
.qz-save { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; background: #e6ecea; border-radius: 12px; font-size: 15px; }
.qz-save__btn { flex: none; background: none; border: 0; padding: 4px 0; color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.qz-doc { display: flex; align-items: center; gap: 20px; margin: 0; padding: 22px 26px; background: var(--green); border-radius: 14px; color: #fff; }
.qz-doc img { flex: none; width: 80px; height: 80px; border-radius: 50%; object-fit: cover; object-position: center 15%; border: 3px solid #fff; }
.qz-doc blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.45; }
.qz-doc span { display: block; margin-top: 8px; font-size: 13.5px; color: #d5e2de; }

.qz-noscript { max-width: 720px; margin: 80px auto; padding: 0 24px; font-size: 18px; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .qz-header__inner { padding: 0 32px; }
  .qz-split__copy { padding: 56px 40px; }
  .qz-title--xl { font-size: 44px; }
  .qz-results__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side" "after"; }
  .qz-card--side { position: static; }
}

/* ---------- Phones (Figma "V2 Mobile" frames, 390 wide) ---------- */
@media (max-width: 640px) {
  .qz-header__inner { min-height: 64px; padding: 0 20px; }
  .qz-header .logo img { width: 40px; }
  .qz-header .logo__name { font-size: 19px; }
  .qz-header .logo__tag { font-size: 8.5px; letter-spacing: 1.6px; }
  .qz-header__call { display: none; }
  .qz-header__count { display: block; }
  [data-screen="intro"] .qz-header__call { display: none; }

  .qz { padding: 0 20px 48px; }
  .qz-step { padding-top: 34px; }
  .qz-eyebrow { font-size: 13px; margin-bottom: 12px; }
  .qz-title { font-size: 30px; line-height: 1.2; }
  .qz-title--xl { font-size: 34px; }
  .qz-sub { margin-top: 10px; font-size: 16px; }
  .qz-lead { font-size: 17px; }
  .qz-opts { margin-top: 26px; gap: 10px; }
  .qz-opts--grid { grid-template-columns: minmax(0, 1fr); }
  .qz-opt { min-height: 56px; font-size: 18px; padding: 10px 18px; }
  .qz-opts--check .qz-opt { min-height: 52px; }
  .qz-hint--d { display: none; }
  .qz-hide-m { display: none; }
  .qz-hint--m { display: inline; }

  /* Continue sits full width above the Back row */
  .qz-nav { flex-wrap: wrap; margin-top: 26px; }
  .qz-nav:has(.qz-continue) { flex-direction: column-reverse; align-items: stretch; gap: 14px; }
  .qz-continue { width: 100%; min-height: 56px; }
  .qz-nav:has(.qz-continue) .qz-back { align-self: flex-start; }
  .qz-private { margin-top: 28px; }

  .qz-sev { margin-top: 26px; }
  .qz-sev__row { display: block; padding: 14px; }
  .qz-sev__row legend { float: left; width: 100%; margin-bottom: 10px; font-size: 17px; }
  .qz-seg { width: 100%; }
  .qz-seg span { padding: 11px 6px; font-size: 15px; }

  .qz-form__row { grid-template-columns: minmax(0, 1fr); }

  .qz-split { display: flex; flex-direction: column-reverse; min-height: 0; }
  .qz-split__copy { padding: 26px 20px 40px; }
  .qz-split__media { height: 300px; }
  .qz-split--halfway .qz-split__media { height: 260px; }
  .qz-split__copy { text-align: center; }
  .qz-chips { margin-top: 20px; gap: 8px; justify-content: center; }
  .qz-chips li { font-size: 14px; padding: 6px 12px; }
  .qz-start { width: 100%; min-width: 0; margin-top: 26px; }
  .qz-fine { text-align: center; }
  .qz-quote p { font-size: 18px; }
  .qz-split--halfway .btn { width: 100%; }

  .qz-results { padding-top: 34px; }
  .qz-results__head { text-align: center; }
  .qz-results__grid { margin-top: 28px; gap: 20px; }
  .qz-card { padding: 22px 20px; }
  .qz-card__title { font-size: 26px; }
  .qz-basis { display: none; }
  .qz-hcard { padding: 22px 20px 24px; }
  .qz-hcard__head h2, .qz-hcard__none { font-size: 25px; }
  .qz-hcard__count { display: none; }
  .qz-tags { gap: 6px; margin-top: 14px; }
  .qz-tags li { font-size: 13px; padding: 4px 9px; }
  .qz-hcard p { font-size: 15px; }
  .qz-rule { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 18px; }
  .qz-solution { padding: 24px 20px; }
  .qz-solution h2 { font-size: 23px; }
  .qz-card__call span { display: none; }
  .qz-card__call a { display: flex; justify-content: center; align-items: center; min-height: 52px; margin-top: 4px; border: 1.5px solid var(--green); border-radius: 8px; color: var(--green); }
  .qz-header__count { font-size: 14px; }
  .qz-save { flex-direction: column; align-items: flex-start; gap: 4px; }
  .qz-doc { padding: 18px; gap: 14px; align-items: flex-start; }
  .qz-doc img { width: 56px; height: 56px; }
  .qz-doc blockquote { font-size: 17px; }
  .qz-cal { margin: 14px -12px 0; }
  .qz-disclaimer--center { text-align: left; margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .qz-in, .qz-progress span { transition: none; }
}

/* ---------- Print: just the Symptom Snapshot ---------- */
@media print {
  .qz-body { background: #fff; }
  .qz-header { position: static; }
  .qz-body .qz-header { display: block !important; }
  .site-header, .site-footer, .mobile-cta { display: none !important; }
  .qz-progress, .qz-header__call, .qz-header__count, .qz-card--side, .qz-results__after { display: none !important; }
  .qz-results { padding-top: 16px; }
  .qz-results__grid { display: block; margin-top: 20px; }
  .qz-card { border-color: #ccc; }
  .qz-title--xl { font-size: 30px; }
}
