/* Uses the site tokens (src/styles/theme.css): the depth gradient + duct lines on the band, Archivo 500 headings with
     the rose accent, paper card, gradient pill button. Text colours are picked for 4.5:1+ on their backgrounds. */
  .qf-split { position: relative; isolation: isolate; background: var(--g-red); color: #fff; padding: clamp(40px, 6vw, 88px) 0; overflow: hidden; }
  .qf-split::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08; background: repeating-linear-gradient(100deg, #fff 0 2px, transparent 2px 26px); -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); mask-image: linear-gradient(90deg, #000, transparent 70%); }
  .qf-grid { width: min(1280px, 100% - 40px); margin: 0 auto; display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(0, 560px); gap: 28px 48px; align-items: start; }
  @media (max-width: 960px) { .qf-grid { grid-template-columns: minmax(0, 1fr); } .qf-rail { display: none !important; }
    /* phones and tablets: headline, then the form; the checkmarks and review would push the first question below the fold */
    .qf-pitch { gap: 14px; } .qf-pitch .qf-checks, .qf-pitch .qf-review { display: none; } .qf-pitch .qf-h1 { font-size: clamp(1.9rem, 1.2rem + 3.2vw, 2.6rem); } }
  @media (max-width: 640px) { .qf-grid { width: calc(100% - 32px); } }
  .qf-rail { display: flex; flex-direction: column; align-items: center; padding-top: 14px; }
  .qf-rail i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); transition: background .3s; }
  .qf-rail i.on { background: #fff; border-color: #fff; }
  .qf-rail b { width: 2px; height: 30px; background: rgba(255,255,255,.45); }
  .qf-pitch { display: grid; gap: 26px; padding-top: 4px; }
  .qf-h1 { font-weight: 500; font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.4rem); line-height: 1.02; letter-spacing: -.03em; margin: 0; color: #fff; text-wrap: balance; }
  .qf-h1 em { font-style: normal; color: var(--rose); }
  .qf-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 1.08rem; }
  .qf-checks[hidden] { display: none; }
  .qf-checks li { display: flex; gap: 10px; align-items: center; }
  .qf-checks svg { flex: none; color: var(--rose); }
  .qf-review { border-top: 1px solid rgba(255,255,255,.25); padding-top: 20px; max-width: 520px; display: grid; gap: 10px; margin: 0; }
  .qf-review-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 500; font-size: .88rem; }
  .qf-review-top a, .qf-review-link { color: #fff; text-underline-offset: 4px; }
  .qf-review-link { font-size: .9rem; font-weight: 500; }
  .qf-stars { color: var(--rose); letter-spacing: 2px; }
  .qf-review blockquote { margin: 0; color: #fff; font-size: 1.04rem; line-height: 1.55; min-height: 4.6em; }
  .qf-review figcaption { font-size: .9rem; margin-top: 6px; color: var(--rose); }
  @media (prefers-reduced-motion: no-preference) { .qf-review-item:not([hidden]) { animation: qf-in .5s ease both; } }

  .qf-card { --q-tile: var(--red-deep); background: var(--paper); color: var(--ink); border-radius: 28px; padding: clamp(20px, 4vw, 32px); display: grid; gap: 18px; min-width: 0; min-height: 420px; align-content: start; box-shadow: 0 30px 50px -28px rgba(63,8,7,.75); }
  /* keep the card and focused fields clear of the floating header when the form scrolls them into view */
  /* html already has scroll-padding-top for the header; a large margin here stacked on top of it (QA 2026-12-02) */
  .qf-card { scroll-margin-top: 12px; }
  .qf-card:focus { outline: none; }
  .qf-card :is(button, input, textarea, .qf-err) { scroll-margin-top: 110px; scroll-margin-bottom: 24px; }
  .qf-card form { display: grid; gap: 26px; }
  .qf-q { display: grid; gap: 10px; min-width: 0; }
  .qf-label { margin: 0; font-weight: 500; font-size: 1.4rem; line-height: 1.15; letter-spacing: -.015em; color: var(--ink); }
  .qf-q.qf-small .qf-label { font-size: 1.12rem; }
  .qf-opt { font-size: .85rem; font-weight: 400; color: var(--mute); letter-spacing: 0; }
  .qf-help, .qf-after, .qf-lead { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
  .qf-err { color: var(--red); font-size: .9rem; font-weight: 500; margin: 0; }
  .qf-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
  .qf-tile { appearance: none; position: relative; border: 0; background: linear-gradient(180deg, #7a1411, var(--q-tile)); color: #fff; border-radius: 20px; padding: 12px 40px 14px 12px; cursor: pointer; text-align: left; display: grid; gap: 8px; align-content: start; font: 500 .98rem/1.25 var(--sans); box-shadow: inset 0 1px 0 rgba(255,255,255,.14); transition: transform .25s var(--ease), box-shadow .2s, background .2s; }
  .qf-tile svg { display: block; width: calc(100% + 28px); margin-right: -28px; height: auto; aspect-ratio: 4 / 3; border-radius: 12px; }
  .qf-tile:hover { transform: translateY(-2px); }
  .qf-tile:focus-visible, .qf-chip:focus-visible, .qf-pill:focus-visible { outline: 3px solid var(--red-2); outline-offset: 3px; }
  .qf-tile::after { content: ""; position: absolute; bottom: 14px; right: 12px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); background: transparent center / 12px no-repeat; transition: all .15s; }
  .qf-tile[aria-pressed="true"] { background: var(--g-btn); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 2px var(--paper), 0 0 0 4px var(--red-2); }
  .qf-tile[aria-pressed="true"]::after { border-color: #fff; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' fill='none' stroke='%23990100' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  .qf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .qf-chip, .qf-pill { appearance: none; border: 1.5px solid var(--line-2); background: #fff; border-radius: 999px; padding: 10px 16px; font: 500 .95rem var(--sans); color: var(--ink); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; text-align: left; transition: border-color .2s, background .2s; }
  .qf-chip:hover, .qf-pill:hover { border-color: var(--red-2); }
  .qf-pill { border-radius: 14px; }
  .qf-chip[aria-pressed="true"], .qf-pill[aria-pressed="true"] { background: var(--g-btn); border-color: var(--red); color: #fff; }
  .qf-chip[aria-pressed="true"]::before, .qf-pill[aria-pressed="true"]::before { content: "\2713"; font-weight: 600; }
  .qf-input { width: 100%; min-width: 0; border: 1.5px solid var(--line-2); background: #fff; border-radius: 12px; padding: 13px 15px; font: 400 1rem var(--sans); color: var(--ink); }
  .qf-input::placeholder { color: #8a7d74; }
  .qf-input:focus { outline: 3px solid var(--rose); border-color: var(--red-2); }
  .qf-input[aria-invalid="true"] { border-color: var(--red); }
  textarea.qf-input { min-height: 96px; resize: vertical; }
  select.qf-select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 6l4 4 4-4' fill='none' stroke='%237a1512' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
  .qf-file { display: grid; gap: 8px; }
  .qf-file input { font: 400 .95rem var(--sans); color: var(--ink-2); max-width: 100%; }
  .qf-file input::file-selector-button { appearance: none; min-height: 44px; margin-right: 12px; border: 1.5px solid var(--line-2); background: #fff; border-radius: 999px; padding: 10px 18px; font: 500 .95rem var(--sans); color: var(--ink); cursor: pointer; }
  .qf-file input::file-selector-button:hover { border-color: var(--red-2); }
  .qf-file ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .9rem; color: var(--ink-2); }
  .qf-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 4px; }
  .qf-back { background: none; border: 0; color: var(--ink-2); font: 500 .95rem var(--sans); cursor: pointer; padding: 10px 0; }
  .qf-back:hover { color: var(--red); }
  .qf-next { margin-left: auto; min-width: 140px; }
  .qf-next[disabled] { opacity: .6; cursor: progress; }
  .qf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .qf-progress { font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin: 0; }
  .qf-done { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 10px 0; }
  .qf-done svg { width: min(280px, 100%); height: auto; background: var(--q-tile); border-radius: 14px; }
  .qf-done h2 { font-weight: 500; font-size: 2rem; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
  .qf-done p { margin: 0; color: var(--ink-2); }
  .qf-fail { background: var(--red-soft); border: 1px solid var(--rose); border-radius: 14px; padding: 14px 16px; display: grid; gap: 6px; color: var(--ink); }
  .qf-fail a { color: var(--red); font-weight: 600; }
  @media (prefers-reduced-motion: no-preference) { .qf-step { animation: qf-in .35s ease both; } }
  @keyframes qf-in { from { opacity: .3; transform: translateY(6px); } }