/* P&P De Schoonmaak APK — elevated modal UI + cleaning animation.
   Loaded AFTER styles.css + components.css so it refines, not duplicates.
   Brand tokens (navy #0B2545, navy-soft #142E58, gold #C9A24B, gold-deep
   #B88E3A, cream #F4F1EA, cream-warm #FBF8F1) match landing.css :root.
   No inline styles, no Inter/Roboto/system fonts, no purple gradients. */

:root {
  --navy: #0B2545; --navy-soft: #142E58; --gold: #C9A24B; --gold-deep: #B88E3A;
  --cream: #F4F1EA; --cream-warm: #FBF8F1; --ink-60: #4A5F7A; --ink-40: #6B7E99;
  --line: #E2E7EF; --ease: cubic-bezier(.4,0,.2,1);
}

/* ── Shell elevation ─────────────────────────────────────────── */
.shell {
  border-radius: 20px;
  box-shadow: 0 24px 64px -18px rgba(11,37,69,.34), 0 3px 10px rgba(11,37,69,.07);
}

/* ── Progress bar — thicker track, gold knob, gold % count ───── */
.progress-wrap { padding: 1.4rem 1.6rem .25rem; }
.progress-label {
  font-size: .72rem; letter-spacing: .09em; color: var(--ink-40);
  display: flex; align-items: center; gap: .5rem;
}
.progress-label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,75,.18);
}
.progress-track { height: 7px; background: #EDF0F5; }
.progress-fill {
  position: relative;
  background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 120%);
}
.progress-fill::after {
  content: ''; position: absolute; right: -1px; top: 50%;
  width: 11px; height: 11px; border-radius: 50%;
  transform: translateY(-50%);
  background: var(--gold); border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(11,37,69,.28);
  opacity: 0; transition: opacity .3s var(--ease);
}
.progress-fill[style*="width: 0%"]::after { opacity: 0; }
.progress-wrap:not([style*="none"]) .progress-fill::after { opacity: 1; }

/* ── Smooth step transitions (overrides styles.css fade) ─────── */
@media (prefers-reduced-motion: no-preference) {
  .screen { animation: qsStep .42s var(--ease) forwards; }
}
@keyframes qsStep {
  from { opacity: 0; transform: translateY(16px) scale(.992); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Type scale lift ─────────────────────────────────────────── */
#screen-question h2, #screen-gate h2 { font-size: clamp(1.2rem, 3.4vw, 1.55rem); letter-spacing: -.01em; }
.brand-line { font-size: .72rem; letter-spacing: .14em; }

/* ════════════════════════════════════════════════════════════════
   OPTION PILLS — premium tappable radio cards (single column, ≥46px).
   Custom radio dot → gold-filled check on select, gold rail on the left,
   tinted fill, hover lift. Brand tokens only (navy/gold/cream).
   ════════════════════════════════════════════════════════════════ */
.options-list { gap: .6rem; }
.option-item {
  position: relative;
  min-height: 52px;
  padding: .95rem 1.15rem .95rem 1.1rem;
  gap: .85rem;
  border-width: 1.5px; border-color: var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(11,37,69,.05);
  transition: border-color .2s var(--ease), background .2s var(--ease),
              transform .14s var(--ease), box-shadow .2s var(--ease);
}
.option-item:hover {
  border-color: var(--gold); background: var(--cream-warm);
  transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(11,37,69,.24);
}
.option-item:active { transform: translateY(0); }
.option-item.selected {
  border-color: var(--navy); background: #EEF2FA;
  box-shadow: 0 8px 22px -10px rgba(11,37,69,.28);
}
/* Gold accent rail down the selected pill's left edge */
.option-item.selected::before {
  content: ''; position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 4px; border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
}

/* Custom radio dot — crisp ring → navy disc + gold check tick when selected */
.option-dot {
  width: 23px; height: 23px; border-width: 2px; border-color: #AFBCCB;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(11,37,69,.06);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.option-item:hover .option-dot { border-color: var(--gold-deep); }
.option-item.selected .option-dot {
  border-color: var(--navy);
  background: var(--navy);
}
.option-item.selected .option-dot::after {
  content: ''; width: 7px; height: 11px; margin-top: -2px;
  border: solid var(--gold); border-width: 0 2.5px 2.5px 0;
  border-radius: 1px;
  background: none;
  transform: rotate(43deg);
}
.option-label { line-height: 1.4; font-weight: 500; }
.option-item.selected .option-label { font-weight: 600; }

/* ════════════════════════════════════════════════════════════════
   CHIP PILLS (Q7 multi-select) — rounded, tappable, gold-check select.
   ════════════════════════════════════════════════════════════════ */
.chips-grid { gap: .55rem; }
.chip {
  min-height: 44px;
  padding: .55rem 1rem;
  border-width: 1.5px; border-color: var(--line);
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(11,37,69,.04);
  transition: border-color .18s var(--ease), background .18s var(--ease),
              transform .12s var(--ease), box-shadow .18s var(--ease);
}
.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -8px rgba(11,37,69,.2);
}
.chip.selected {
  border-color: var(--navy); background: #EEF2FA;
  box-shadow: 0 4px 12px -6px rgba(11,37,69,.22);
}
.chip.selected::before {
  content: '✓';
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; margin-right: .1rem;
  font-size: .7rem; font-weight: 800; line-height: 1;
  color: #fff; background: var(--gold-deep); border-radius: 50%;
}

/* ── STEP CHIP — "Vraag X van 7" rendered as a proper pill ──── */
.progress-label {
  align-self: flex-start; width: fit-content;
  padding: .34rem .8rem .34rem .7rem;
  background: var(--cream-warm);
  border: 1px solid rgba(201,162,75,.4); border-radius: 999px;
  font-weight: 600; letter-spacing: .1em;
  color: var(--navy-soft); margin-bottom: .55rem;
}

/* ── BROKER BADGE — gold "Schoonmaak-broker · …" eyebrow refined ── */
.eyebrow {
  padding: .42rem .9rem;
  background: rgba(201,162,75,.08);
  border-color: rgba(201,162,75,.45);
  box-shadow: 0 1px 0 rgba(201,162,75,.12) inset;
}

/* ── Primary button — gloss + lift ───────────────────────────── */
.btn-primary {
  letter-spacing: .005em;
  box-shadow: 0 8px 22px -10px rgba(11,37,69,.55);
  transition: background .2s, transform .12s var(--ease), box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(11,37,69,.6); }
.btn-primary.gold { box-shadow: 0 8px 22px -10px rgba(201,162,75,.6); }

/* ── Score screen — ring + big number ────────────────────────── */
.score-number {
  font-size: clamp(3.2rem, 11vw, 4.2rem);
  background: linear-gradient(135deg, var(--navy) 0%, var(--gold-deep) 130%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.score-badge { letter-spacing: .07em; box-shadow: 0 2px 8px rgba(11,37,69,.06); }
#screen-teaser, #screen-result { text-align: center; }
#screen-teaser h2, #screen-result h2,
#screen-teaser .subtitle, #result-desc { text-align: left; }
.exposure-item { transition: transform .15s var(--ease); }
.exposure-item:hover { transform: translateX(2px); }

/* ════════════════════════════════════════════════════════════════
   CLEANING ANIMATION — dirty glass pane wipes clean on gate submit.
   States: idle (grimy) → .is-cleaning (squeegee sweep, grime dissolves,
   sparkle). ~1.3s. prefers-reduced-motion → static clean pane, no motion.
   ════════════════════════════════════════════════════════════════ */
.clean-pane {
  position: relative; width: 100%; height: 92px;
  margin: 0 0 1.4rem; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(11,37,69,.1);
}
.cp-glass {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.55) 0%, rgba(225,234,244,.35) 55%, rgba(201,162,75,.1) 100%),
    linear-gradient(180deg, #DDE7F0 0%, #C7D4E2 100%);
}
/* Grime blobs — soft dirty smudges */
.cp-grime {
  position: absolute; border-radius: 50%; filter: blur(7px);
  background: radial-gradient(circle, rgba(120,110,90,.55), rgba(120,110,90,0) 70%);
  transition: opacity .5s var(--ease);
}
.cp-grime-1 { width: 70px; height: 50px; top: 8px; left: 14%; }
.cp-grime-2 { width: 90px; height: 60px; bottom: -10px; left: 45%; background: radial-gradient(circle, rgba(95,105,90,.5), rgba(95,105,90,0) 70%); }
.cp-grime-3 { width: 54px; height: 44px; top: 16px; right: 12%; }
/* Streaks — diagonal smear lines */
.cp-streak {
  position: absolute; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(140,130,110,0), rgba(140,130,110,.5), rgba(140,130,110,0));
  transition: opacity .4s var(--ease);
}
.cp-streak-1 { width: 60%; top: 34%; left: 8%; transform: rotate(-7deg); }
.cp-streak-2 { width: 45%; top: 64%; left: 30%; transform: rotate(5deg); }
/* Clean shine band that follows the squeegee */
.cp-shine {
  position: absolute; top: -20%; bottom: -20%; width: 38%; left: -42%;
  background: linear-gradient(105deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.85) 50%, rgba(255,255,255,0) 100%);
  opacity: 0;
}
/* Sparkles that pop after the wipe */
.cp-spark {
  position: absolute; width: 12px; height: 12px; opacity: 0;
  background:
    radial-gradient(circle, #fff 0 1.5px, transparent 2px),
    linear-gradient(0deg, transparent 45%, var(--gold) 45% 55%, transparent 55%),
    linear-gradient(90deg, transparent 45%, var(--gold) 45% 55%, transparent 55%);
}
.cp-spark-1 { top: 22%; left: 26%; }
.cp-spark-2 { top: 56%; left: 58%; width: 9px; height: 9px; }
.cp-spark-3 { top: 30%; left: 76%; width: 14px; height: 14px; }
/* The squeegee tool, parked off-screen left */
.cp-squeegee {
  position: absolute; top: -10%; bottom: -10%; left: -60px; width: 26px;
  display: flex; flex-direction: column; align-items: center;
}
.cp-squeegee-blade {
  width: 12px; flex: 1; border-radius: 4px;
  background: linear-gradient(90deg, var(--navy), var(--navy-soft));
  box-shadow: 4px 0 10px -2px rgba(11,37,69,.4);
}
.cp-squeegee-handle {
  position: absolute; top: 50%; left: 8px; transform: translateY(-50%);
  width: 34px; height: 10px; border-radius: 5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
}

/* ── Cleaning sequence ───────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .clean-pane.is-cleaning .cp-squeegee { animation: cpWipe 1.25s var(--ease) forwards; }
  .clean-pane.is-cleaning .cp-shine    { animation: cpShine 1.25s var(--ease) forwards; }
  .clean-pane.is-cleaning .cp-grime,
  .clean-pane.is-cleaning .cp-streak   { animation: cpDissolve 1s var(--ease) .25s forwards; }
  .clean-pane.is-cleaning .cp-glass    { animation: cpBrighten 1s var(--ease) .3s forwards; }
  .clean-pane.is-cleaning .cp-spark    { animation: cpSpark .5s var(--ease) forwards; }
  .clean-pane.is-cleaning .cp-spark-1  { animation-delay: .85s; }
  .clean-pane.is-cleaning .cp-spark-2  { animation-delay: 1s; }
  .clean-pane.is-cleaning .cp-spark-3  { animation-delay: 1.1s; }
}
@keyframes cpWipe {
  0%   { left: -60px; }
  100% { left: calc(100% + 20px); }
}
@keyframes cpShine {
  0%   { left: -42%; opacity: 0; }
  15%  { opacity: 1; }
  100% { left: 110%; opacity: 0; }
}
@keyframes cpDissolve { to { opacity: 0; } }
@keyframes cpBrighten {
  to { background:
    linear-gradient(135deg, rgba(255,255,255,.85) 0%, rgba(240,247,255,.7) 60%, rgba(255,255,255,.5) 100%),
    linear-gradient(180deg, #EEF5FB 0%, #DCE9F4 100%); }
}
@keyframes cpSpark {
  0%   { opacity: 0; transform: scale(.3) rotate(0deg); }
  50%  { opacity: 1; transform: scale(1.15) rotate(45deg); }
  100% { opacity: .9; transform: scale(1) rotate(90deg); }
}

/* Reduced motion: skip the sweep, just show a clean sparkling pane. */
@media (prefers-reduced-motion: reduce) {
  .clean-pane .cp-grime, .clean-pane .cp-streak, .clean-pane .cp-squeegee { display: none; }
  .clean-pane .cp-glass {
    background:
      linear-gradient(135deg, rgba(255,255,255,.85) 0%, rgba(240,247,255,.7) 60%, rgba(255,255,255,.5) 100%),
      linear-gradient(180deg, #EEF5FB 0%, #DCE9F4 100%);
  }
  .clean-pane.is-cleaning .cp-spark { opacity: .9; }
}

/* Embed (modal) — slightly tighter so the pane never dominates a phone modal. */
body.qs-embed .clean-pane { height: 76px; }

/* ── Cloudflare Turnstile widget ──────────────────────────────────
   Sits between the consent row and the submit button. Flexible size +
   full-width container so the iframe never overflows a narrow phone. */
.turnstile-wrap {
  margin: 14px 0 6px;
  min-height: 65px;          /* reserve space so layout doesn't jump on render */
  display: flex;
  justify-content: center;
}
.turnstile-wrap:empty { min-height: 0; margin: 0; }  /* no reserve when disabled */
.turnstile-wrap iframe { max-width: 100%; }
@media (max-width: 480px) {
  .turnstile-wrap { margin: 12px 0 4px; }
}
