/* ============================================================
   Waarde-check, immersieve quiz-flow
   Bouwt voort op de variabelen uit style.css
   ============================================================ */

.quiz-body {
  min-height: 100dvh;
  background: var(--grad-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ---------- Topbalk ---------- */
.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(18px, 4vw, 40px);
  position: relative;
  z-index: 5;
}
.quiz-close {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.05rem;
  transition: transform 0.18s ease, background 0.18s ease;
}
.quiz-close:hover { transform: rotate(90deg) scale(1.08); background: rgba(255, 255, 255, 0.16); }

/* ---------- Achtergrond ---------- */
.quiz-bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.q-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}
.q-blob.b1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(224, 33, 138, 0.25), transparent 65%);
  top: -180px; right: -160px;
  animation: blob-drift 13s ease-in-out infinite alternate;
}
.q-blob.b2 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(58, 123, 213, 0.22), transparent 65%);
  bottom: -160px; left: -140px;
  animation: blob-drift 17s ease-in-out infinite alternate-reverse;
}
.q-emoji {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -58%;
  font-size: clamp(200px, 38vw, 380px);
  opacity: 0.07;
  filter: blur(2px);
  transition: opacity 0.5s ease;
  animation: emoji-float 7s ease-in-out infinite alternate;
}
@keyframes emoji-float {
  from { translate: -50% -58%; rotate: -6deg; }
  to   { translate: -50% -52%; rotate: 6deg; }
}

/* ---------- Hoofdgebied ---------- */
.quiz-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 12px 18px 48px;
  position: relative;
  z-index: 2;
}

.quiz-progress {
  width: min(560px, 100%);
  display: grid;
  gap: 8px;
}
.quiz-progress[hidden] { display: none; }
.quiz-progress-label {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.quiz-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.quiz-progress-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--grad-brand);
  transition: width 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3D-podium + kaart ---------- */
.quiz-stage {
  width: min(560px, 100%);
  perspective: 1300px;
}
.quiz-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  padding: clamp(26px, 5vw, 44px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform-style: preserve-3d;
  will-change: transform;
}
.quiz-card.card-in { animation: card-in 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.quiz-card.card-out { animation: card-out 0.32s ease-in both; }
@keyframes card-in {
  from { opacity: 0; transform: rotateY(28deg) translateX(70px) scale(0.92); filter: blur(6px); }
  to   { opacity: 1; transform: rotateY(0) translateX(0) scale(1); filter: blur(0); }
}
@keyframes card-out {
  from { opacity: 1; transform: rotateY(0) translateX(0) scale(1); }
  to   { opacity: 0; transform: rotateY(-26deg) translateX(-70px) scale(0.93); filter: blur(6px); }
}

.quiz-kicker {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.quiz-card h1, .quiz-card h2 {
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  margin-bottom: 10px;
}
.quiz-sub { color: rgba(255, 255, 255, 0.72); font-size: 1rem; margin-bottom: 26px; }
.quiz-fine { font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); margin-top: 18px; }

/* ---------- Antwoordknoppen ---------- */
.answers { display: grid; gap: 13px; }
.answers.cols-2 { grid-template-columns: 1fr 1fr; }

.answer-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 16px 18px;
  color: #fff;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, opacity 0.3s ease, box-shadow 0.16s ease;
}
.answer-btn .a-emoji {
  font-size: 1.7rem;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}
.answer-btn:hover {
  transform: translateY(-3px) rotateX(5deg) scale(1.02);
  border-color: var(--magenta-soft);
  background: rgba(224, 33, 138, 0.12);
  box-shadow: 0 14px 34px rgba(224, 33, 138, 0.25);
}
.answer-btn:hover .a-emoji { transform: scale(1.25) rotate(-8deg); }
.answer-btn:active { transform: translateY(1px) rotateX(-7deg) scale(0.96); }
.answer-btn.picked {
  background: var(--grad-brand);
  border-color: transparent;
  box-shadow: 0 16px 40px rgba(224, 33, 138, 0.45);
  animation: picked-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.answer-btn.dimmed { opacity: 0.25; transform: scale(0.96); pointer-events: none; }
@keyframes picked-pop {
  0%   { transform: scale(0.95); }
  55%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* ---------- Startknop ---------- */
.quiz-start {
  width: 100%;
  font-size: 1.1rem;
  padding: 18px 30px;
  position: relative;
  overflow: hidden;
}
.quiz-start::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  translate: -120% 0;
  animation: shine 2.6s ease-in-out infinite;
}
@keyframes shine {
  0%, 55% { translate: -120% 0; }
  100%    { translate: 120% 0; }
}

/* ---------- Laadscherm ---------- */
.quiz-loading { text-align: center; padding: 28px 0 18px; }
.loader-ring {
  width: 78px; height: 78px;
  margin: 0 auto 26px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--magenta);
  border-right-color: var(--blue-deep);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }
.loading-line {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  min-height: 1.7em;
}

/* ---------- Resultaat ---------- */
.result-persona {
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  margin-bottom: 4px;
}
.result-line { color: rgba(255, 255, 255, 0.78); margin-bottom: 24px; }
.result-amount-wrap {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 24px;
}
.result-amount-label {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.result-amount {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.result-amount-note { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); margin-top: 8px; }
.result-ctas { display: grid; gap: 12px; }
.result-ctas .btn { width: 100%; }
.quiz-retry {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
}
.quiz-retry:hover { color: #fff; }

/* ---------- Opt-in onder het resultaat ---------- */
.result-apply-btn { width: 100%; }
.result-apply-btn.hidden { display: none; }

.wc-optin {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  text-align: left;
  transition: max-height 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.4s ease, margin-top 0.4s ease;
}
.wc-optin.open { max-height: 460px; opacity: 1; margin-top: 18px; }
.wc-optin-title {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 4px;
}
.wc-optin-sub { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); margin-bottom: 14px; }
.wc-optin-fields { display: grid; gap: 10px; margin-bottom: 12px; }
.wc-optin-fields input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.wc-optin-fields input::placeholder { color: rgba(255, 255, 255, 0.45); }
.wc-optin-fields input:focus {
  outline: none;
  border-color: var(--magenta-soft);
  background: rgba(255, 255, 255, 0.10);
}
.wc-optin .btn { width: 100%; }
.wc-optin-fine { font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); text-align: center; margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  .wc-optin { transition: none; }
}

/* ---------- Emoji-burst & confetti ---------- */
.burst-particle {
  position: fixed;
  z-index: 60;
  font-size: 1.3rem;
  pointer-events: none;
  will-change: transform, opacity;
}
#confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 540px) {
  .answers.cols-2 { grid-template-columns: 1fr; }
  .quiz-main { justify-content: flex-start; padding-top: 4px; }
  .q-emoji { font-size: 230px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .quiz-card.card-in, .quiz-card.card-out,
  .q-blob.b1, .q-blob.b2, .q-emoji,
  .quiz-start::after, .answer-btn.picked, .loader-ring { animation: none; }
  .quiz-card.card-out { opacity: 0; }
  .answer-btn, .quiz-close { transition: none; }
}
