/* Q74 application form + booking (website/apply-test.html, assets/js/apply-form.js). Sits inside the .pfx-widget box
   from style.css and uses its tokens; nothing here changes other pages. */

.af { padding: clamp(1.25rem, 4vw, 2.5rem); scroll-margin-top: 96px; }   /* clear of the fixed header when a step scrolls it into view */
.af [hidden] { display: none !important; }
.af-form, .af-view { display: grid; gap: 1rem; }
.af-note { color: var(--muted); }

.af-progress { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.af-progress span { display: block; height: 100%; width: 0; background: var(--cta-grad); transition: width 0.4s var(--ease-out); }
.af-count { margin: 0; font-family: var(--font-mono); font-size: 0.8rem; color: var(--faint); letter-spacing: 0.04em; }

.af-step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 0.7rem; }
.af-step legend { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.25;
  color: var(--text); margin-bottom: 0.6rem; padding: 0; }
.af-hint { margin: -0.2rem 0 0.2rem; font-size: 0.9rem; color: var(--faint); }
.af-grid { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }

/* One answer per card: the real input stays in the label, so keyboard and screen readers work as normal. */
.af-opt { position: relative; display: flex; align-items: center; gap: 0.85rem; padding: 0.95rem 1.1rem; border-radius: 12px;
  border: 1px solid var(--line-strong); background: rgba(139, 124, 247, 0.05); color: var(--text-dim); cursor: pointer;
  transition: border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out); }
.af-opt:hover { border-color: var(--iris); background: rgba(139, 124, 247, 0.1); }
.af-opt input { flex: none; width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--gold); }
.af-opt:has(input:checked) { border-color: var(--gold); background: rgba(232, 175, 30, 0.08); color: var(--text); }
.af-opt:has(input:focus-visible) { outline: 2px solid var(--iris-bright); outline-offset: 2px; }

.af-field { display: grid; gap: 0.4rem; font-size: 0.92rem; color: var(--muted); }
.af-field input, .af-field textarea, .af-field select { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--ink-3);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 0.85rem 1rem; }
.af-field textarea { resize: vertical; min-height: 7rem; }
.af-field input:focus, .af-field textarea:focus, .af-field select:focus { outline: 2px solid var(--iris-bright); outline-offset: 1px; border-color: var(--iris); }
.af-opt-tag { font-style: normal; font-size: 0.8rem; color: var(--faint); margin-left: 0.3rem; }
.af-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.af-tick { display: flex; gap: 0.7rem; align-items: flex-start; margin-top: 0.6rem; font-size: 0.95rem; color: var(--text-dim); cursor: pointer; }
.af-tick input { flex: none; width: 1.1rem; height: 1.1rem; margin: 0.15rem 0 0; accent-color: var(--gold); }
.af-ts { min-height: 65px; margin-top: 0.4rem; }

.af-optin { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.12); }
.af-optin-h { margin: 0 0 0.3rem; font-size: 1.1rem; }
.af-optin-p { margin: 0 0 0.9rem; color: var(--muted); }
.af-optin-msg { margin: 0.5rem 0 0; min-height: 1.2em; color: var(--coral); font-size: 0.95rem; }
.af-msg { margin: 0; min-height: 1.2em; color: var(--coral); font-size: 0.95rem; }
.af-msg.ok { color: var(--muted); }
.af-nav, .af-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.af-nav { justify-content: space-between; }
.af-nav .btn--primary { margin-left: auto; }
.af button[disabled] { opacity: 0.55; cursor: progress; transform: none; }

.af-view h2 { margin: 0; }
.af-view p { margin: 0; color: var(--text-dim); }
.af-when { font-family: var(--font-display); font-size: clamp(1.15rem, 2.4vw, 1.4rem); color: var(--text) !important; }
.af-view a:not(.btn) { color: var(--gold); }
.af-tz { max-width: 22rem; }

/* Choice (Q104): Book a call and Pay now side by side, equal weight; the Q&A under Pay now is collapsed so the button stays in view. */
.af-choice { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); align-items: start; }
.af-choice-card { display: grid; gap: 0.9rem; padding: 1.1rem 1.2rem; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(139, 124, 247, 0.05); }
.af-choice-card .btn { justify-self: start; }
.af-value { margin: 0; padding-left: 1.15rem; display: grid; gap: 0.4rem; font-size: 0.95rem; color: var(--text); }
.af-value:empty, .af-tools-head:empty, .af-tools-when:empty, #af-pay-line:empty { display: none; }
.af-value li::marker { color: var(--gold); }
.af-tools-head { margin: 0.2rem 0 0; font-weight: 600; }
.af-tools { font-size: 0.88rem; }
.af-small { display: grid; gap: 0.6rem; }
.af-small p { margin: 0; font-weight: 600; }
.af-small-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: space-between; }
.af-free-alt { margin-top: 1rem; font-size: 0.95rem; }
.af-tools-when { font-size: 0.85rem; color: var(--muted) !important; }
.af-terms { font-size: 0.82rem; color: var(--faint) !important; }
.af-qa { display: grid; gap: 0; margin-top: 0.2rem; border-top: 1px solid var(--line); }
.af-qa-item { border-bottom: 1px solid var(--line); }
.af-qa-item summary { cursor: pointer; padding: 0.7rem 0; font-size: 0.95rem; font-weight: 600; color: var(--text); }
.af-qa-item summary:focus-visible { outline: 2px solid var(--iris-bright); outline-offset: 2px; }
.af-qa-item p { padding: 0 0 0.8rem; font-size: 0.92rem; }

/* Slots: a day heading, then the free times as buttons. */
.af-days { display: grid; gap: 1.2rem; }
.af-day h3 { margin: 0 0 0.6rem; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.af-slots { display: grid; gap: 0.55rem; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); }
.af-slot { font: inherit; font-weight: 600; padding: 0.7rem 0.4rem; border-radius: 10px; border: 1px solid var(--line-strong);
  background: rgba(139, 124, 247, 0.06); color: var(--text); cursor: pointer; }
.af-slot:hover, .af-slot:focus-visible { border-color: var(--gold); outline: none; }
.af-slot[aria-pressed="true"] { border-color: var(--gold); background: rgba(232, 175, 30, 0.12); }
.af-confirm { display: grid; gap: 0.8rem; padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid rgba(232, 175, 30, 0.45); background: rgba(232, 175, 30, 0.06); }
.af-manage { font-size: 0.95rem; }
.af-link { font: inherit; color: var(--gold); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

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

/* WhatsApp number: country picker (2026-10-20). Flag font = Twemoji Country Flags (country-flag-emoji-polyfill 0.1.10, MIT code, CC-BY 4.0 art):
   Windows has no flag emoji, so the flags come from this file on every device. Only the flag code points use it. */
@font-face { font-family: "Twemoji Country Flags"; font-display: swap; src: url("../fonts/TwemojiCountryFlags.woff2") format("woff2");
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E007F; }
.af-flag { font-family: "Twemoji Country Flags", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.af-phone { position: relative; display: flex; gap: 0.5rem; }
.af-phone > input { flex: 1; min-width: 0; }
.af-cc { flex: none; display: inline-flex; align-items: center; gap: 0.45rem; font: inherit; font-size: 1rem; color: var(--text); background: var(--ink-3);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 0.85rem 0.9rem; cursor: pointer; white-space: nowrap; }
.af-cc:focus-visible { outline: 2px solid var(--iris-bright); outline-offset: 1px; border-color: var(--iris); }
.af-cc::after { content: ""; border: 4px solid transparent; border-top-color: var(--muted); margin-top: 4px; }
.af-cc-pop { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; display: grid; gap: 0.4rem; padding: 0.5rem; border-radius: 10px;
  background: var(--ink-3); border: 1px solid var(--line-strong); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); }
.af-cc-pop ul { list-style: none; margin: 0; padding: 0; max-height: 15rem; overflow-y: auto; overscroll-behavior: contain; }
.af-cc-pop li { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.6rem; border-radius: 8px; color: var(--text); cursor: pointer; }
.af-cc-pop li.on, .af-cc-pop li:hover { background: rgba(139, 124, 247, 0.16); }
.af-cc-pop li > span:nth-child(2) { flex: 1; min-width: 0; }
.af-cc-pop .af-dial { color: var(--muted); font-size: 0.9rem; }
.af-cc-pop li.af-none { cursor: default; color: var(--muted); }

/* Apply page video (assets/js/vsl.js): a 16:9 box, the poster fills it until the stream starts; the sound button sits over it. */
.apply-vsl { margin: 0 auto clamp(2rem, 5vw, 3.2rem); }
.apply-vsl__line { margin: 0 auto 1.4rem; max-width: 40rem; font-size: clamp(1.05rem, 2.6vw, 1.3rem); line-height: 1.4; color: var(--text); }
.apply-vsl__step2 { margin: 1.6rem 0 0; }
.vsl { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; background: #000; box-shadow: 0 20px 60px var(--glow); }
.vsl video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vsl-sound { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 0.95rem 1.9rem; white-space: nowrap; border: 0; border-radius: 999px;
  background: var(--cta-grad); color: #1a1205; font: 700 clamp(1rem, 3.4vw, 1.25rem) var(--font-body); cursor: pointer; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); }
.vsl-sound:hover, .vsl-sound:focus-visible { filter: brightness(1.08); outline: 2px solid #fff; outline-offset: 3px; }
.vsl-sound[hidden] { display: none; }
