/*
 * Quiz "Welke route past bij jou?" en de route daarna.
 * Gebruikt op de academy (naast academy.css) en op de homepage (vóór "afspraak maken").
 * Verwacht de --ac-* kleuren en .ac-btn (academy.css, of op de homepage in view/homepage.php).
 */
/* ---------- Quiz "Welke route past bij jou?" ---------- */
.ac-quiz {
    position: relative; max-width: 760px; margin: 0 auto; padding: clamp(26px, 5vw, 48px);
    border-radius: 28px; color: #fff; overflow: hidden;
    background: radial-gradient(120% 90% at 100% 0%, rgba(127, 217, 184, 0.22) 0%, rgba(127, 217, 184, 0) 55%),
                linear-gradient(160deg, var(--ac-dark) 0%, var(--ac-dark-2) 100%);
    box-shadow: 0 30px 60px rgba(15, 28, 26, 0.25);
}
.ac-quiz__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(127, 217, 184, 0.14); color: var(--ac-accent); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.ac-quiz__title { margin: 18px 0 10px; font-family: var(--ac-display); font-size: clamp(1.7rem, 4.6vw, 2.5rem); line-height: 1.1; font-weight: 800; color: #fff; }
.ac-quiz__lead { margin: 0; max-width: 560px; color: rgba(255, 255, 255, 0.78); font-size: 1.02rem; line-height: 1.55; }
.ac-quiz__promise { display: grid; gap: 10px; margin: 22px 0 26px; padding: 0; list-style: none; }
.ac-quiz__promise li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.9); }
.ac-quiz__promise i { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(127, 217, 184, 0.14); color: var(--ac-accent); flex-shrink: 0; }
.ac-quiz__start { font-size: 1.05rem; padding: 15px 28px; }
.ac-quiz__meta { margin: 14px 0 0; color: rgba(255, 255, 255, 0.6); font-size: 0.86rem; }
.ac-quiz__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ac-quiz__back { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 4px; border: 0; background: transparent; color: rgba(255, 255, 255, 0.7); font: inherit; font-weight: 600; cursor: pointer; border-radius: 8px; }
.ac-quiz__back:hover { color: #fff; }
.ac-quiz__count { color: rgba(255, 255, 255, 0.65); font-size: 0.86rem; font-weight: 700; }
.ac-quiz__bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); overflow: hidden; margin-bottom: 26px; }
.ac-quiz__bar span { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--ac-accent); transition: width 0.35s ease; }
.ac-quiz__q { margin: 0; padding: 0; border: 0; min-width: 0; }
.ac-quiz__q.is-in { animation: ac-quiz-in 0.32s ease-out; }
.ac-quiz__q.is-back { animation: ac-quiz-back 0.32s ease-out; }
.ac-quiz__question { padding: 0; margin: 0 0 18px; font-family: var(--ac-display); font-size: clamp(1.35rem, 3.6vw, 1.8rem); font-weight: 800; line-height: 1.2; color: #fff; }
.ac-quiz__options { display: grid; gap: 10px; }
.ac-quiz__option {
    display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 16px; text-align: start;
    border: 1.5px solid rgba(255, 255, 255, 0.14); border-radius: 16px; background: rgba(255, 255, 255, 0.05);
    color: #fff; font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.35; cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.ac-quiz__option:hover { border-color: rgba(127, 217, 184, 0.6); background: rgba(127, 217, 184, 0.08); }
.ac-quiz__option:active { transform: scale(0.99); }
.ac-quiz__option:focus-visible { outline: 3px solid rgba(127, 217, 184, 0.6); outline-offset: 2px; }
.ac-quiz__option.is-selected { border-color: var(--ac-accent); background: var(--ac-accent); color: var(--ac-dark); }
.ac-quiz__letter { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; background: rgba(255, 255, 255, 0.1); font-size: 0.85rem; font-weight: 800; }
.ac-quiz__option.is-selected .ac-quiz__letter { background: var(--ac-dark); color: var(--ac-accent); }
.ac-quiz__finishing { padding: 40px 0; text-align: center; }
.ac-quiz__finishing p { margin: 16px 0 0; font-size: 1.1rem; font-weight: 700; }
.ac-quiz__spinner { display: inline-block; width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.15); border-top-color: var(--ac-accent); animation: ac-spin 0.8s linear infinite; }
@keyframes ac-quiz-in { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes ac-quiz-back { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
@keyframes ac-spin { to { transform: rotate(360deg); } }
/* Verticaal, zodat er op mobiel nooit even een horizontale scrollbalk verschijnt. */
@keyframes ac-route-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Route na de quiz ---------- */
.ac-route { max-width: 760px; margin: 0 auto 34px; padding: clamp(22px, 4vw, 36px); border-radius: 24px; background: var(--ac-surface); border: 1px solid var(--ac-line); box-shadow: var(--ac-shadow); animation: ac-route-in 0.4s ease-out; }
.ac-route__title { margin: 8px 0 8px; font-family: var(--ac-display); font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.15; font-weight: 800; }
.ac-route__intro { margin: 0 0 18px; color: var(--ac-muted); font-size: 1rem; line-height: 1.55; }
.ac-route__steps { position: relative; display: grid; gap: 14px; margin: 0 0 18px; padding: 0; list-style: none; }
.ac-route__steps::before { content: ""; position: absolute; top: 14px; bottom: 14px; inset-inline-start: 15px; width: 2px; background: var(--ac-accent-soft); }
.ac-route__steps li { position: relative; display: flex; align-items: center; gap: 14px; font-weight: 600; }
.ac-route__num { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; background: var(--ac-dark); color: var(--ac-accent); font-weight: 800; font-size: 0.9rem; }
.ac-route__notes { display: grid; gap: 8px; margin: 0 0 16px; padding: 14px 16px; list-style: none; border-radius: var(--ac-radius-sm); background: var(--ac-soft); }
.ac-route__notes li { display: flex; gap: 10px; font-size: 0.93rem; line-height: 1.45; }
.ac-route__notes i { color: var(--ac-accent-strong); margin-top: 2px; }
.ac-route__next { margin: 0; font-weight: 700; }
.ac-route__language { display: flex; gap: 10px; margin: 16px 0 0; padding: 12px 14px; border-radius: var(--ac-radius-sm); background: #fff7e6; color: #8a5300; font-size: 0.93rem; font-weight: 600; }
.ac-route__redo { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--ac-muted); font-size: 0.86rem; font-weight: 600; text-decoration: none; }
.ac-route__redo:hover { color: var(--ac-ink); }
.ac-route-call { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 28px auto 0; max-width: 760px; padding: 20px 22px; border-radius: 20px; background: var(--ac-accent-soft); }
.ac-route-call h3 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 800; }
.ac-route-call p { margin: 0; color: var(--ac-muted); font-size: 0.93rem; max-width: 460px; }
.ac-route-call--primary { margin: 6px 0 18px; background: var(--ac-dark); color: #fff; }
.ac-route-call--primary p { color: rgba(255, 255, 255, 0.75); }

@media (prefers-reduced-motion: reduce) {
    .ac-quiz__q.is-in, .ac-quiz__q.is-back, .ac-route { animation: none; }
    .ac-quiz__bar span { transition: none; }
}
