/* quote.css — Angstvrij Klachtvrij · behandelvoorstel-funnel + hero mini chips + sticky mobile bar (Agent D)
   Everything is prefixed .q-. Reads A's tokens from site.css :root (var(--…)) with the contract colours as fallbacks:
   deep teal #0F5E6E · teal #2F7F8C · mist #7FB6BD · sage #93B578 · cream #F7F3EA · ink #0C3640 · gold #C9A24B (thread only).
   Default palette = LIGHT (white card on cream, ink text, deep-teal primary — white on #0F5E6E is 7.3:1 AA).
   Put .dark / data-tone="dark" on the section, the hero card or any ancestor for the dark variant (card on deep teal).
   Mobile first; fits 360 px; ≥ 52 px touch targets; visible focus rings; prefers-reduced-motion respected. */

.q-mount, .q-mini, .q-mbar {
  --q-teal-deep: var(--teal-deep, var(--deep-teal, #0F5E6E)); --q-teal: var(--teal, #2F7F8C); --q-mist: var(--mist, #7FB6BD);
  --q-sage: var(--sage, #93B578); --q-cream: var(--cream, #F7F3EA); --q-ink: var(--ink, #0C3640); --q-gold: var(--gold, #C9A24B);
  --q-white: #ffffff; --q-muted: var(--muted, #5B767C);
  --q-display: var(--f-display, var(--font-display, "Nunito", "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif));
  --q-ui: var(--f-body, var(--font-body, "Nunito", "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif));
  --q-ease: var(--ease, cubic-bezier(.2,.7,.2,1));
  /* light (default) */
  --q-bg: var(--q-white); --q-bg-2: var(--q-cream); --q-fg: var(--q-ink); --q-fg-2: #2B4F57; --q-fg-3: var(--q-muted);
  --q-line: rgba(12,54,64,.10); --q-line-2: rgba(12,54,64,.16); --q-line-3: rgba(12,54,64,.30);
  --q-accent: var(--q-teal-deep); --q-accent-ink: var(--q-teal-deep); --q-accent-soft: rgba(47,127,140,.10); --q-accent-ring: rgba(47,127,140,.26);
  --q-chip-bg: var(--q-white); --q-chip-on: rgba(127,182,189,.18); --q-chip-line: rgba(47,127,140,.28); --q-radio-line: rgba(12,54,64,.55);   /* ring ≥ 3:1 on white */
  --q-primary-bg: var(--q-teal-deep); --q-primary-ink: var(--q-white);
  --q-dark-bg: var(--q-ink); --q-dark-ink: var(--q-white);
  --q-ind-bg: var(--q-teal-deep); --q-ind-ink: var(--q-cream); --q-ind-ink-2: rgba(247,243,234,.78); --q-ind-line: rgba(247,243,234,.18);
  --q-err: #9A3B2E; --q-err-soft: rgba(154,59,46,.08);
  --q-ok: #4F7A3A;
  --q-shadow: 0 30px 70px -40px rgba(12,54,64,.45);
  --q-radius: 16px; --q-radius-lg: 28px; --q-tap: 52px;
  font-family: var(--q-ui); color: var(--q-fg); box-sizing: border-box; color-scheme: light;
}
/* dark variant (e.g. hero mini over the deep-teal final frame) */
.dark .q-mount, [data-tone="dark"] .q-mount, .q-mount.dark, .dark .q-mini, [data-tone="dark"] .q-mini, .q-mini.dark {
  --q-bg: rgba(12,54,64,.55); --q-bg-2: rgba(255,255,255,.06); --q-fg: var(--q-cream); --q-fg-2: rgba(247,243,234,.86); --q-fg-3: rgba(247,243,234,.66);
  --q-line: rgba(247,243,234,.12); --q-line-2: rgba(247,243,234,.20); --q-line-3: rgba(247,243,234,.36);
  --q-accent: var(--q-mist); --q-accent-ink: var(--q-mist); --q-accent-soft: rgba(127,182,189,.16); --q-accent-ring: rgba(127,182,189,.35);
  --q-chip-bg: rgba(255,255,255,.08); --q-chip-on: rgba(127,182,189,.26); --q-chip-line: rgba(247,243,234,.26); --q-radio-line: rgba(247,243,234,.6);
  --q-primary-bg: var(--q-cream); --q-primary-ink: var(--q-teal-deep);
  --q-dark-bg: var(--q-cream); --q-dark-ink: var(--q-ink);
  --q-ind-bg: var(--q-cream); --q-ind-ink: var(--q-ink); --q-ind-ink-2: #2B4F57; --q-ind-line: rgba(12,54,64,.14);
  --q-err: #F2B8AC; --q-err-soft: rgba(242,184,172,.12);
  --q-shadow: 0 34px 90px -34px rgba(0,0,0,.6); color-scheme: dark;
}
.q-mount *, .q-mini *, .q-mbar * { box-sizing: inherit; }
.q-mount [hidden], .q-mini [hidden], .q-mbar [hidden] { display: none !important; }
.q-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* CFG.whatsapp = false → html.q-nowa: every WhatsApp entry on the site disappears (wa.me links, [data-wa]) */
html.q-nowa [href^="https://wa.me"], html.q-nowa [href^="https://api.whatsapp.com"], html.q-nowa [href^="whatsapp:"], html.q-nowa [data-wa] { display: none !important; }

/* ---------- icons (currentColor masks; no files, no requests) */
.q-ico { display: inline-block; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--q-i) center / contain no-repeat; mask: var(--q-i) center / contain no-repeat; }
.q-ico-dot { --q-i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='5' fill='black'/></svg>"); }
.q-ico-phone { --q-i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/></svg>"); }
.q-ico-mail { --q-i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M3 7l9 6 9-6'/></svg>"); }
.q-ico-wa { --q-i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12 2.2a9.8 9.8 0 0 0-8.4 14.8L2.2 21.8l4.9-1.3A9.8 9.8 0 1 0 12 2.2zm0 1.8a8 8 0 1 1-4.1 14.9l-.3-.2-2.9.8.8-2.8-.2-.3A8 8 0 0 1 12 4zm-3.2 4.2c-.2 0-.5 0-.7.3-.3.3-1 1-1 2.4s1 2.8 1.2 3c.1.2 2 3.2 5 4.4 2.5 1 3 .8 3.5.7.5 0 1.7-.7 1.9-1.4.2-.7.2-1.2.2-1.4-.1-.1-.3-.2-.6-.3l-2-1c-.3-.1-.5-.1-.7.2l-.9 1.1c-.2.2-.3.2-.6.1-.3-.2-1.2-.5-2.3-1.5-.9-.8-1.5-1.8-1.6-2.1-.2-.3 0-.5.1-.6l.5-.6.3-.5c.1-.2 0-.4 0-.5l-.9-2.1c-.2-.5-.4-.5-.6-.5h-.6z'/></svg>"); }
.q-ico-arrow-r { --q-i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>"); }
.q-ico-arrow-l { --q-i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M19 12H5M11 6l-6 6 6 6'/></svg>"); }
.q-ico-copy { --q-i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='9' y='9' width='11' height='11' rx='2'/><path d='M5 15V5a2 2 0 0 1 2-2h10'/></svg>"); }
.q-ico-spark { --q-i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M11 3l1.9 5.1L18 10l-5.1 1.9L11 17l-1.9-5.1L4 10l5.1-1.9z'/><path d='M18.5 15.5l.8 2.2 2.2.8-2.2.8-.8 2.2-.8-2.2-2.2-.8 2.2-.8z'/></svg>"); }
.q-ico-info { --q-i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='12' r='9'/><path d='M12 11v6M12 7.5v.5'/></svg>"); }
/* complaint icons (soft line pictograms, shared by step-1 cards and the mini chips) */
.q-mount, .q-mini {
  --q-i-angst: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 20.5s-7.5-4.6-7.5-10.3A4.2 4.2 0 0 1 12 7.6a4.2 4.2 0 0 1 7.5 2.6c0 5.7-7.5 10.3-7.5 10.3z'/><path d='M7.5 12.5h2.2l1.4-2.2 1.9 4.2 1.3-2h2.2'/></svg>");
  --q-i-stress: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M7 16.5a4 4 0 0 1-.4-8A5.5 5.5 0 0 1 17.2 8a3.6 3.6 0 0 1 .3 7.2'/><path d='M12.5 11.5l-2.2 4h3l-1.6 3.5'/></svg>");
  --q-i-pds: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3.5c4.7 0 8.5 3.6 8.5 8s-3.8 8-8.5 8-7-2.8-7-5.8 2.6-5 5.5-5 4.3 1.6 4.3 3.6-1.5 3.1-3.1 3.1'/></svg>");
  --q-i-tinnitus: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M6.5 9.5a5 5 0 0 1 10 0c0 3-2.6 4-2.6 6.5a2.6 2.6 0 0 1-5.2 0'/><path d='M9.6 9.5a1.9 1.9 0 0 1 3.8 0c0 1.5-1.4 1.9-1.4 3.3'/><path d='M19.5 6.5a6 6 0 0 1 0 6'/></svg>");
  --q-i-slaap: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M14.5 3.5a8 8 0 1 0 6 13.3A9 9 0 0 1 14.5 3.5z'/><path d='M5.5 4.5v3M4 6h3'/></svg>");
  --q-i-zelfvertrouwen: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='5' r='2'/><path d='M12 8.5v7.5M12 16l-3 5M12 16l3 5M12 10.5L6.5 7M12 10.5L17.5 7'/></svg>");
  --q-i-roken: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3.5 14.5h12v4h-12zM17.5 14.5h2.5v4h-2.5'/><path d='M9.5 11.5c0-2 2-2 2-4M12.5 11.5c0-2 2-2 2-4'/><path d='M4 4l16 16'/></svg>");
  --q-i-ptss: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3l7 3v6c0 4.5-3 7.6-7 9-4-1.4-7-4.5-7-9V6z'/><path d='M12 15.5s-3-2-3-4.1a1.6 1.6 0 0 1 3-.8 1.6 1.6 0 0 1 3 .8c0 2.1-3 4.1-3 4.1z'/></svg>");
  --q-i-buteyko: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 8h10a2.5 2.5 0 1 0-2.5-2.5M3 12h15a2.5 2.5 0 1 1-2.5 2.5M3 16h8a2.5 2.5 0 1 1-2.5 2.5'/></svg>");
  --q-i-anders: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 5h16v11H9.5L4 20z'/><circle cx='8.5' cy='10.5' r='.8' fill='black'/><circle cx='12' cy='10.5' r='.8' fill='black'/><circle cx='15.5' cy='10.5' r='.8' fill='black'/></svg>");
}
.q-ico-p-angst { --q-i: var(--q-i-angst); } .q-ico-p-stress { --q-i: var(--q-i-stress); } .q-ico-p-pds { --q-i: var(--q-i-pds); } .q-ico-p-tinnitus { --q-i: var(--q-i-tinnitus); }
.q-ico-p-slaap { --q-i: var(--q-i-slaap); } .q-ico-p-zelfvertrouwen { --q-i: var(--q-i-zelfvertrouwen); } .q-ico-p-roken { --q-i: var(--q-i-roken); } .q-ico-p-ptss { --q-i: var(--q-i-ptss); }
.q-ico-p-buteyko { --q-i: var(--q-i-buteyko); } .q-ico-p-anders { --q-i: var(--q-i-anders); }

/* ---------- section shell (D owns everything inside #voorstel) */
.q-mount { display: block; }
.q-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); display: grid; gap: clamp(1.4rem, 3vw, 2.4rem); }
.q-mount:not(.sec) .q-wrap { padding-block: clamp(3rem, 7vw, 6rem); }   /* A's .sec already pads the section vertically */
@media (min-width: 980px) { .q-wrap { grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); align-items: start; } .q-head { position: sticky; top: calc(var(--hdr-h, 72px) + 1.5rem); } }
.q-head { display: flex; flex-direction: column; gap: .9rem; }
.q-eyebrow { margin: 0; display: inline-flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--q-accent-ink); }
.q-eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--q-gold); }
.q-title { margin: 0; font-family: var(--q-display); font-weight: 700; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); line-height: 1.08; letter-spacing: -.015em; color: var(--q-fg); text-wrap: balance; }
.q-title em { font-style: normal; color: var(--q-accent-ink); }
.q-lead { margin: 0; font-size: 1.08rem; line-height: 1.6; color: var(--q-fg-2); max-width: 46ch; }
.q-head-links { margin: .2rem 0 0; font-size: 1rem; color: var(--q-fg-2); display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; }
.q-head-links .q-link { font-size: 1rem; }

/* ---------- indication card (the "quote" hook) */
.q-ind-slot { display: block; }
.q-ind { position: relative; display: flex; flex-direction: column; gap: .55rem; padding: 1.25rem 1.3rem 1.2rem; border-radius: 22px; background: var(--q-ind-bg); color: var(--q-ind-ink); box-shadow: 0 24px 60px -36px rgba(12,54,64,.7); overflow: hidden; transition: background .4s; }
.q-ind::before { content: ""; position: absolute; left: 1.3rem; right: 1.3rem; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--q-gold) 20%, var(--q-gold) 80%, transparent); opacity: .9; }
.q-ind::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,75,.18), transparent 70%); pointer-events: none; }
.q-ind > * { margin: 0; position: relative; }
.q-ind-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--q-gold); }
.q-ind-eyebrow .q-ico { width: 16px; height: 16px; }
.q-ind-empty { font-size: 1rem; line-height: 1.55; color: var(--q-ind-ink-2); }
.q-ind-big { font-family: var(--q-display); font-weight: 700; font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.1; letter-spacing: -.015em; }
.q-ind-n { color: var(--q-ind-ink); }
.q-ind-unit { font-size: .55em; font-weight: 600; color: var(--q-ind-ink-2); letter-spacing: 0; }
.q-ind-price { display: flex; flex-direction: column; gap: .15rem; padding-bottom: .6rem; border-bottom: 1px solid var(--q-ind-line); }
.q-ind-eur { font-family: var(--q-display); font-weight: 700; font-size: 1.35rem; color: var(--q-gold); letter-spacing: -.01em; }
.q-ind-per { font-size: .86rem; color: var(--q-ind-ink-2); }
.q-ind-note, .q-ind-first { font-size: .95rem; line-height: 1.5; color: var(--q-ind-ink); }
.q-ind-first { color: var(--q-ind-ink-2); }
.q-ind-disc { display: flex; align-items: flex-start; gap: .45rem; font-size: .86rem; line-height: 1.45; color: var(--q-ind-ink); font-weight: 600; }
.q-ind-disc .q-ico { width: 16px; height: 16px; margin-top: .15rem; color: var(--q-gold); }
.q-ind-verg { font-size: .84rem; line-height: 1.45; color: var(--q-ind-ink-2); }
.q-ind.has-path .q-ind-big, .q-ind.has-path .q-ind-eur { animation: q-pop .5s var(--q-ease); }
@keyframes q-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* compact variant (inside the step panel on < 980 px, repeated on steps 2–4): range + € + the legal label stay in view,
   the explanation collapses into <details> so the real buttons stay above the fold (≈ 180 px instead of ≈ 340 px on a 360 px phone) */
.q-ind-compact { padding: .85rem 1rem .75rem; border-radius: 16px; gap: .3rem; }
.q-ind-compact .q-ind-eyebrow { font-size: .7rem; }
.q-ind-compact .q-ind-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .7rem; }
.q-ind-compact .q-ind-big { font-size: 1.3rem; }
.q-ind-compact .q-ind-eur { font-size: 1.1rem; }
.q-ind-compact .q-ind-disc { font-size: .8rem; line-height: 1.4; }
.q-ind-compact .q-ind-disc .q-ico { margin-top: .1rem; }
.q-ind-more { margin-top: .1rem; font-size: .86rem; line-height: 1.45; color: var(--q-ind-ink-2); }
.q-ind-more summary { cursor: pointer; padding: .9rem 0 .75rem; line-height: 1.3; font-weight: 700; color: var(--q-ind-ink); -webkit-tap-highlight-color: transparent; }   /* 44 px tap target */
.q-ind-more summary:focus-visible { outline: 3px solid var(--q-gold); outline-offset: 2px; border-radius: 6px; }
.q-ind-more > p { margin: 0 0 .5rem; }
.q-ind-more .q-ind-note { color: var(--q-ind-ink); font-size: .88rem; }
.q-ind-more .q-ind-per { display: block; }

/* ---------- card */
.q-card { position: relative; background: var(--q-bg); border: 1px solid var(--q-line); border-radius: var(--q-radius-lg); box-shadow: var(--q-shadow); padding: clamp(1.1rem, 3vw, 2.2rem); overflow: hidden; }
.q-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--q-teal-deep), var(--q-mist) 55%, var(--q-gold)); opacity: .9; }
.q-form { position: relative; display: flex; flex-direction: column; gap: 1.2rem; }
.q-progress { height: 6px; border-radius: 3px; background: var(--q-line); overflow: hidden; }
.q-progress-bar { height: 100%; width: calc(var(--p, .25) * 100%); background: linear-gradient(90deg, var(--q-teal), var(--q-teal-deep)); border-radius: 3px; transition: width .6s var(--q-ease); }
.q-dots { display: none; gap: .6rem 1.2rem; margin: 0; padding: 0; list-style: none; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--q-fg-3); }
.q-dots li { display: flex; align-items: center; gap: .5rem; }
.q-dot-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--q-line-2); color: var(--q-fg-2); font-family: var(--q-display); font-weight: 700; font-size: .74rem; }
.q-dots li.is-done .q-dot-n { background: var(--q-sage); color: var(--q-white); }
.q-dots li.is-now { color: var(--q-fg); font-weight: 700; }
.q-dots li.is-now .q-dot-n { background: var(--q-accent); color: var(--q-white); box-shadow: 0 0 0 3px var(--q-accent-ring); }
@media (min-width: 700px) { .q-dots { display: flex; flex-wrap: wrap; } .q-stepline { display: none !important; } }
.q-stepline { display: flex; justify-content: space-between; gap: 1rem; margin: 0; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--q-fg-3); }
.q-stepname { color: var(--q-fg); font-weight: 700; }
.q-step { display: flex; flex-direction: column; gap: 1.2rem; }
.q-step.is-in[data-dir="fwd"] { animation: q-in-fwd .55s var(--q-ease); }
.q-step.is-in[data-dir="back"] { animation: q-in-back .55s var(--q-ease); }
@keyframes q-in-fwd { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes q-in-back { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .q-step.is-in, .q-ind.has-path .q-ind-big, .q-ind.has-path .q-ind-eur { animation: none; } .q-progress-bar, .q-chip, .q-btn, .q-mini-card, .q-mbar { transition: none; } }
.q-step-head { display: flex; flex-direction: column; gap: .35rem; }
.q-step-title { margin: 0; font-family: var(--q-display); font-weight: 700; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); line-height: 1.15; letter-spacing: -.012em; color: var(--q-fg); outline: none; }
.q-step-hint { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--q-fg-3); }

/* ---------- chips */
.q-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.q-legend { padding: 0; margin: 0 0 .65rem; font-size: 1.02rem; font-weight: 700; color: var(--q-fg); display: flex; flex-direction: column; gap: .15rem; }
.q-legend .q-hint { font-weight: 400; }
/* Columns follow the CARD's width (container query), not the viewport, and every minimum is derived from the longest single
   word a chip has to hold (bold 16 px: "self-confidence" 116 px, "WhatsApp" 82, "preference" 81, "Afternoon" 75, "maanden" 69)
   + the chip's own overhead (padding + icon + gap ≈ 65 px). Below the minimum a group is one column: a label never leaves its chip.
   Browsers without container queries get one column (and the desktop fallback further down). */
.q-chips { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
.q-chips-yn { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.q-chip-wrap { position: relative; min-width: 0; display: grid; }       /* the label stretches to the row → equal heights in a row */
.q-chip { position: relative; display: flex; align-items: center; gap: .75rem; min-height: var(--q-tap); min-width: 0; padding: .75rem .9rem; border: 1.5px solid var(--q-chip-line); border-radius: var(--q-radius); background: var(--q-chip-bg); color: var(--q-fg); cursor: pointer; font-weight: 600; font-size: 1rem; line-height: 1.3; transition: border-color .3s, background .3s, transform .35s var(--q-ease), box-shadow .35s; user-select: none; -webkit-tap-highlight-color: transparent; overflow-wrap: anywhere; hyphens: manual; }
.q-chip-tall { align-items: flex-start; padding-block: .85rem; }
/* the "radio": an empty ring when unchecked (clearly tappable, not disabled), filled accent with a white dot when checked */
.q-chip .q-ico { width: 24px; height: 24px; padding: 0; background: var(--q-chip-bg); box-shadow: inset 0 0 0 2px var(--q-radio-line); border-radius: 50%; -webkit-mask: none; mask: none; position: relative; flex: none; transition: background .25s, box-shadow .25s; margin-top: .05rem; }
.q-chip .q-ico::after { content: ""; position: absolute; inset: 5px; background: var(--q-white); -webkit-mask: var(--q-i) center / contain no-repeat; mask: var(--q-i) center / contain no-repeat; opacity: 0; transition: opacity .25s; }
.q-chip .q-ico-dot::after { inset: 7px; }
.q-chip-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.q-chip-t { font-weight: 700; }
.q-chip-h { font-size: .84rem; font-weight: 400; color: var(--q-fg-3); line-height: 1.35; }
.q-chip:hover { border-color: var(--q-teal); transform: translateY(-1px); }
input:checked + .q-chip { border-color: var(--q-accent); background: var(--q-chip-on); box-shadow: inset 0 0 0 1px var(--q-accent); }
input:checked + .q-chip .q-ico { background: var(--q-accent); box-shadow: inset 0 0 0 2px var(--q-accent); }
input:checked + .q-chip .q-ico::after { opacity: 1; }
input:focus-visible + .q-chip { outline: 3px solid var(--q-accent); outline-offset: 3px; }
.q-group.is-invalid .q-chip { border-color: var(--q-err); }
/* complaint cards (step 1): icon tile + label + soft hint */
.q-chips-path { gap: .65rem; }
.q-chip-path { border-radius: 18px; padding: .85rem .95rem .85rem .85rem; align-items: center; }
.q-chip-path .q-ico { width: 44px; height: 44px; border-radius: 13px; background: var(--q-accent-soft); box-shadow: none; margin-top: 0; }
.q-chip-path .q-ico::after { inset: 9px; opacity: 1; background: var(--q-accent-ink); }
.q-chips-path input:checked + .q-chip .q-ico { background: var(--q-accent); box-shadow: none; }
.q-chips-path input:checked + .q-chip .q-ico::after { background: var(--q-white); }
.q-chip-anders { border-style: dashed; }
input:checked + .q-chip-anders { border-style: solid; }
/* via chips: a phone / WhatsApp / mail pictogram in the ring; checked = filled accent + white pictogram (same contrast as the dot) */
.q-group[data-name="via"] .q-chip .q-ico { width: 28px; height: 28px; margin-top: 0; }
.q-group[data-name="via"] .q-chip .q-ico::after { inset: 6px; opacity: 1; background: var(--q-accent-ink); }
.q-group[data-name="via"] input:checked + .q-chip .q-ico::after { background: var(--q-white); }
/* column counts per card width (see the note above; 1rem = 16 px at the default size, so large font settings get fewer columns) */
.q-card { container-type: inline-size; }
@container (min-width: 19rem)   { .q-chips-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }                 /* 304 px: "Afternoon" fits twice */
@container (min-width: 21.75rem) { .q-chips-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }                /* 348 px: "Voor mijn kind" on one line */
@container (min-width: 26rem)   { .q-chips-path { grid-template-columns: repeat(2, minmax(0, 1fr)); } }              /* 416 px: "self-confidence" + 44 px tile */
@container (min-width: 29rem)   { .q-chips-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }                 /* 464 px: "preference" / "WhatsApp" ×3 */
@container (min-width: 30rem)   { .q-chips-yn { grid-template-columns: repeat(2, minmax(0, 200px)); } }
@container (min-width: 38.5rem) { .q-chips-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }                 /* 616 px: 4 × "Afternoon" */
@supports not (container-type: inline-size) {   /* old browsers: the desktop layout by viewport, phones stay one column */
  @media (min-width: 980px) { .q-chips-2, .q-chips-4, .q-chips-path { grid-template-columns: repeat(2, minmax(0, 1fr)); } .q-chips-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .q-chips-yn { grid-template-columns: repeat(2, minmax(0, 200px)); } }
}
/* friendly notes (PDS without diagnosis) */
.q-note { margin: .7rem 0 0; padding: .85rem 1rem; border-radius: 14px; background: rgba(147,181,120,.16); border: 1px solid rgba(147,181,120,.45); color: var(--q-fg); font-size: .95rem; line-height: 1.5; }
.dark .q-note, [data-tone="dark"] .q-note { background: rgba(147,181,120,.18); color: var(--q-fg); }

/* ---------- fields */
.q-field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.q-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .q-row { grid-template-columns: 1fr 1fr; } }
.q-label { font-size: 1rem; font-weight: 700; color: var(--q-fg); }
.q-field input, .q-field textarea { width: 100%; min-height: var(--q-tap); padding: .8rem 1rem; border: 1.5px solid var(--q-chip-line); border-radius: var(--q-radius); background: var(--q-chip-bg); color: var(--q-fg); font: inherit; font-size: max(1.02rem, 16px); line-height: 1.4; transition: border-color .3s, box-shadow .3s; }   /* ≥ 16 px: Android/iOS don't zoom on focus */
.q-field textarea { min-height: 110px; resize: vertical; }
.q-field input::placeholder, .q-field textarea::placeholder { color: var(--q-fg-3); opacity: .8; }
.q-field input:focus, .q-field textarea:focus { outline: none; border-color: var(--q-accent); box-shadow: 0 0 0 3px var(--q-accent-ring); }
.q-field.is-invalid input, .q-field.is-invalid textarea { border-color: var(--q-err); }
.q-hint { font-size: .9rem; color: var(--q-fg-3); margin: 0; line-height: 1.45; }
.q-hint-below { margin-top: -.1rem; }
.q-err { margin: .5rem 0 0; font-size: .92rem; font-weight: 600; color: var(--q-err); display: flex; align-items: center; gap: .45rem; line-height: 1.4; }
.q-err::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--q-err); flex: none; }
.q-field .q-err { margin-top: 0; }
.q-inline-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .25rem .4rem; }
.q-inline-links .q-link { display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; }
.q-inline-links .q-ico { width: 15px; height: 15px; }
.q-summary { margin: 0; font-size: .92rem; font-weight: 600; color: var(--q-err); }

/* ---------- review */
.q-review { margin: .4rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--q-line); }
.q-review-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .8rem; padding: .7rem 0; border-bottom: 1px solid var(--q-line); align-items: start; }
.q-review dt { grid-column: 1; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--q-fg-3); }
.q-review dd { grid-column: 1; margin: 0; font-size: .97rem; color: var(--q-fg); overflow-wrap: anywhere; }
.q-review-edit { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

/* ---------- buttons */
/* A label wraps INSIDE its pill (never overflows): no nowrap, min-width 0, last-resort breaks for very large font settings. */
.q-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: var(--q-tap); min-width: 0; padding: .7rem 1.4rem; border-radius: 999px; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.25; text-align: center; cursor: pointer; border: 1.5px solid transparent; text-decoration: none; transition: transform .35s var(--q-ease), background .3s, color .3s, border-color .3s, box-shadow .3s, filter .3s; white-space: normal; overflow-wrap: anywhere; hyphens: manual; -webkit-tap-highlight-color: transparent; }
.q-btn > span { min-width: 0; }
.q-btn:active { transform: translateY(1px); }
.q-btn-primary { background: var(--q-primary-bg); color: var(--q-primary-ink); box-shadow: 0 18px 38px -20px rgba(15,94,110,.8); }
.q-btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.q-btn-dark { background: var(--q-dark-bg); color: var(--q-dark-ink); border-color: var(--q-dark-bg); }
.q-btn-dark:hover { transform: translateY(-1px); filter: brightness(1.15); }
.q-btn-soft { background: var(--q-accent-soft); color: var(--q-accent-ink); border-color: var(--q-chip-line); }   /* the quieter second send option */
.q-btn-soft:hover { transform: translateY(-1px); background: var(--q-chip-on); border-color: var(--q-accent); }
.q-btn-ghost { background: transparent; color: var(--q-fg); border-color: var(--q-line-3); }
.q-btn-ghost:hover { border-color: var(--q-fg); }
.q-btn:focus-visible { outline: 3px solid var(--q-accent); outline-offset: 3px; }
.q-btn-primary:focus-visible { outline-color: var(--q-fg); }
.q-link { background: none; border: 0; padding: .2rem 0; font: inherit; font-size: .95rem; font-weight: 700; color: var(--q-accent-ink); cursor: pointer; border-bottom: 1px solid transparent; }
.q-link:hover { border-bottom-color: currentColor; }
.q-link:focus-visible { outline: 3px solid var(--q-accent); outline-offset: 2px; border-radius: 4px; }
/* step nav: ONE row on every phone width — compact Terug + Verder taking the rest; on a wide card Verder sits right at ≥ 46 % */
.q-nav { display: flex; align-items: center; gap: .6rem; margin-top: .4rem; }
.q-back { flex: 0 0 auto; }
.q-next { flex: 1 1 auto; margin-left: auto; }
@container (max-width: 22rem) { .q-nav .q-btn { padding-inline: 1rem; gap: .45rem; } }
@container (min-width: 32rem) { .q-nav .q-next { flex: 0 1 auto; min-width: 46%; } }
@supports not (container-type: inline-size) { @media (min-width: 980px) { .q-nav .q-next { flex: 0 1 auto; min-width: 46%; } } }
/* last step: primary full width, second send option full width but quiet, Bel + Kopieer side by side only when both labels fit
   on one line (≥ 2 × 13.5rem, i.e. not on phones), a small Terug underneath */
.q-nav-final { flex-direction: column; align-items: stretch; }
.q-nav-final .q-back { order: 2; align-self: flex-start; min-height: 44px; padding: .45rem 1rem .45rem .85rem; font-size: .95rem; }
.q-send-row { display: grid; gap: .6rem; grid-template-columns: minmax(0, 1fr); }
.q-send-row .q-btn { width: 100%; }
.q-send-sub { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }
.q-send-row .q-send-prim { min-height: 60px; font-size: 1.08rem; }
.q-send-row .q-send-prim .q-ico { width: 24px; height: 24px; }
.q-callline { margin: .2rem 0 0; font-size: .95rem; color: var(--q-fg-2); display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; }
.q-callline .q-link { font-size: 1rem; }
.q-trust { margin: 0; font-size: .84rem; color: var(--q-fg-3); line-height: 1.5; }

/* ---------- done */
.q-done { position: relative; display: flex; flex-direction: column; gap: .9rem; outline: none; }
.q-done-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--q-accent); color: var(--q-white); display: grid; place-items: center; box-shadow: 0 0 0 8px var(--q-accent-ring); }
.q-done-ico .q-ico { width: 28px; height: 28px; }
.q-done-title { margin: .3rem 0 0; font-family: var(--q-display); font-weight: 700; font-size: clamp(1.35rem, 1.2rem + .8vw, 1.8rem); line-height: 1.2; letter-spacing: -.012em; color: var(--q-fg); }
.q-done-body, .q-done-alt { margin: 0; color: var(--q-fg-2); max-width: 60ch; line-height: 1.55; }
.q-done-alt { font-size: .92rem; color: var(--q-fg-3); }
.q-done-actions { display: grid; gap: .6rem; margin-top: .3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }
.q-done-details { margin-top: .4rem; }
.q-done-details summary { cursor: pointer; font-size: .95rem; font-weight: 700; color: var(--q-accent-ink); }
.q-done-pre { margin: .6rem 0 0; padding: 1rem; border: 1px solid var(--q-line-2); border-radius: 14px; background: var(--q-bg-2); font: .88rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--q-fg); white-space: pre-wrap; word-break: break-word; max-height: 340px; overflow: auto; }
.q-done-foot { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; margin-top: .2rem; }
.q-done-foot .q-link, .q-review-edit { display: inline-flex; align-items: center; min-height: 44px; padding-block: .4rem; }   /* ≥ 44 px targets */
.q-copy.is-ok { border-color: var(--q-ok); color: var(--q-ok); }

/* ---------- mini (hero): complaint chips */
.q-mini { display: flex; flex-direction: column; gap: .6rem; }
.q-mini-title { margin: 0; font-family: var(--q-display); font-size: 1.15rem; font-weight: 700; color: var(--q-fg); }
.q-mini-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.q-mini-card { position: relative; display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .55rem 1rem .55rem .7rem; border: 1.5px solid var(--q-chip-line); border-radius: 999px; background: var(--q-chip-bg); color: var(--q-fg); font: inherit; font-weight: 700; font-size: .96rem; line-height: 1.2; text-align: left; cursor: pointer; transition: border-color .3s, background .3s, transform .35s var(--q-ease); -webkit-tap-highlight-color: transparent; }
.q-mini-card:hover { border-color: var(--q-teal); transform: translateY(-1px); }
.q-mini-card:focus-visible { outline: 3px solid var(--q-accent); outline-offset: 3px; }
.q-mini-card.is-on { border-color: var(--q-accent); background: var(--q-chip-on); }
.q-mini-anders { border-style: dashed; }
.q-mini-ico { width: 28px; height: 28px; border-radius: 50%; background: var(--q-accent-soft); -webkit-mask: none; mask: none; position: relative; flex: none; }
.q-mini-ico::after { content: ""; position: absolute; inset: 5px; background: var(--q-accent-ink); -webkit-mask: var(--q-i) center / contain no-repeat; mask: var(--q-i) center / contain no-repeat; }
.q-mini-card.is-on .q-mini-ico { background: var(--q-accent); }
.q-mini-card.is-on .q-mini-ico::after { background: var(--q-white); }
.q-mini-hint { margin: .1rem 0 0; font-size: .86rem; color: var(--q-fg-3); }

/* ---------- sticky mobile bar (Voorstel · WhatsApp · Bel) — created by quote.js when the page has none */
.q-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 56; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: .5rem; padding: .55rem .8rem calc(.55rem + env(safe-area-inset-bottom, 0px)); background: rgba(247,243,234,.92); border-top: 1px solid rgba(12,54,64,.10); box-shadow: 0 -12px 40px -28px rgba(12,54,64,.5); transition: transform .5s var(--q-ease); font-family: var(--q-ui); }
.q-mbar.q-mbar-2 { grid-template-columns: 1.3fr 1fr; }
.q-mbar-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 50px; padding: .6rem .5rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--q-ink); background: var(--q-white); border: 1.5px solid rgba(47,127,140,.28); -webkit-tap-highlight-color: transparent; }
.q-mbar-btn .q-ico { width: 18px; height: 18px; }
.q-mbar-voorstel { background: var(--q-teal-deep); color: var(--q-white); border-color: var(--q-teal-deep); }
.q-mbar-btn:focus-visible { outline: 3px solid var(--q-teal-deep); outline-offset: 2px; }
html.q-has-mbar body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
html.q-inview .q-mbar, html.flight-lock .q-mbar { transform: translateY(110%); pointer-events: none; }
html.q-nowa .mbar, html.q-nowa [data-mbar] { grid-template-columns: 1.3fr 1fr; }   /* A's bar without its WhatsApp column */
/* A's own bar (if any) gets the same behaviour as a fallback */
html.q-inview .mbar, html.q-inview [data-mbar], html.flight-lock .mbar, html.flight-lock [data-mbar] { transform: translateY(110%) !important; pointer-events: none; }
@media (min-width: 900px) { .q-mbar { display: none; } html.q-has-mbar body { padding-bottom: 0; } }
