/* =====================================================
   Vacature-flow — gedeelde stijl voor alle klanten
   Kleuren komen uit config.js via CSS custom properties,
   zodat elke klant zijn eigen sfeer krijgt zonder dat
   deze CSS ooit aangepast hoeft te worden.
   ===================================================== */

:root {
  --primair: #1b4b43;
  --accent: #ff7a5c;
  --achtergrond: #f7f3ec;
  --primair-donker: #0c2724;
  --tekst-op-donker: #ffffff;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--achtergrond);
  color: #1a1a1a;
  overscroll-behavior: none;
}

#vf-root {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---------- Achtergrond (foto of animatie-gradient) ---------- */

.vf-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg, var(--primair), var(--primair-donker) 70%);
  overflow: hidden;
  transition: background 0.8s var(--ease);
}

.vf-bg-photo {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.1s var(--ease);
  animation: vf-kenburns 14s var(--ease) infinite alternate;
}

.vf-bg-photo.is-visible {
  opacity: 1;
}

@keyframes vf-kenburns {
  from {
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.16) translate3d(-1.5%, -1.5%, 0);
  }
}

.vf-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.4) 45%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 55%);
}

.vf-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  transition: transform 1.4s var(--ease), background 0.8s var(--ease);
}

.vf-orb--1 {
  width: 50vmax;
  height: 50vmax;
  left: -20vmax;
  top: -15vmax;
  background: var(--accent);
}

.vf-orb--2 {
  width: 40vmax;
  height: 40vmax;
  right: -18vmax;
  bottom: -18vmax;
  background: #ffffff;
  opacity: 0.12;
}

/* elke stap draait/verschuift de orbs een beetje, zodat het levend voelt */
[data-step="0"] .vf-orb--1 { transform: translate(0, 0) rotate(0deg); }
[data-step="1"] .vf-orb--1 { transform: translate(6vmax, 4vmax) rotate(20deg); }
[data-step="2"] .vf-orb--1 { transform: translate(-4vmax, 8vmax) rotate(-15deg); }
[data-step="3"] .vf-orb--1 { transform: translate(8vmax, -4vmax) rotate(10deg); }
[data-step="4"] .vf-orb--1 { transform: translate(-6vmax, -6vmax) rotate(30deg); }
[data-step="5"] .vf-orb--1 { transform: translate(0, 10vmax) rotate(-25deg); }

/* ---------- Voortgangsbalk ---------- */

.vf-progress-wrap {
  position: relative;
  z-index: 2;
  padding: 22px 24px 0;
}

.vf-progress-track {
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.vf-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.5s var(--ease);
}

.vf-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.vf-back {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  visibility: hidden;
}

.vf-back.is-visible {
  visibility: visible;
}

.vf-stepcount {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ---------- Stappen ---------- */

.vf-stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.vf-step {
  position: absolute;
  width: min(560px, 100%);
  padding: 24px;
  text-align: left;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.vf-step.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.vf-step.is-prev {
  opacity: 0;
  transform: translateY(-24px) scale(0.98);
}

.vf-eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.vf-question {
  color: var(--tekst-op-donker);
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 10px;
}

.vf-subtekst {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  margin: 0 0 26px;
  line-height: 1.5;
}

.vf-input {
  width: 100%;
  font-size: 20px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
}

.vf-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.vf-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.14);
}

.vf-input.vf-invalid {
  border-color: #ff6b6b;
}

.vf-error {
  color: #ffb4b4;
  font-size: 13px;
  margin-top: 8px;
  min-height: 18px;
}

.vf-choices {
  display: grid;
  gap: 12px;
}

.vf-choices.vf-choices--2col {
  grid-template-columns: 1fr 1fr;
}

.vf-tile {
  appearance: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s;
}

.vf-tile:hover {
  background: rgba(255, 255, 255, 0.16);
}

.vf-tile:active {
  transform: scale(0.97);
}

.vf-tile.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1a1a;
}

.vf-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.vf-next {
  appearance: none;
  border: none;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s var(--ease), opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vf-next:active {
  transform: scale(0.96);
}

.vf-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.vf-hint {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

/* ---------- Intro & bedankt (volledig scherm, gecentreerd) ---------- */

.vf-full {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.vf-full.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.vf-full .vf-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 22px;
}

.vf-full .vf-badge.vf-badge--logo {
  width: auto;
  height: 72px;
  max-width: 220px;
  border-radius: 0;
  background: none;
  padding: 0;
}

.vf-badge--logo img {
  height: 100%;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.vf-full h1 {
  color: #fff;
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 14px;
  max-width: 640px;
}

.vf-full p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  max-width: 480px;
  line-height: 1.55;
  margin: 0 0 30px;
}

.vf-start-btn {
  appearance: none;
  border: none;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 17px;
  padding: 16px 34px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s var(--ease);
}

.vf-start-btn:active {
  transform: scale(0.96);
}

/* ---------- Confetti canvas ---------- */

#vf-confetti {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* ---------- Verzend-status ---------- */

.vf-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(26, 26, 26, 0.35);
  border-top-color: #1a1a1a;
  animation: vf-spin 0.7s linear infinite;
  display: none;
}

.vf-next.is-loading .vf-spinner {
  display: inline-block;
}

.vf-next.is-loading .vf-next-label {
  opacity: 0.6;
}

@keyframes vf-spin {
  to {
    transform: rotate(360deg);
  }
}

.vf-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 14px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

@media (max-width: 480px) {
  .vf-choices.vf-choices--2col {
    grid-template-columns: 1fr 1fr;
  }
  .vf-step {
    padding: 12px;
  }
}

/* ---------- Toestemming bewaren + privacy (laatste vraag) ---------- */

.vf-toestemming {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  color: #fff;
  font-size: 14px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  line-height: 1.45;
  cursor: pointer;
}

.vf-toestemming-input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.vf-privacy {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  font-size: 12.5px;
  line-height: 1.45;
}

.vf-privacy a {
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Deelblok op het bedanktscherm (sinds 22-10-2026) ---------- */
.vf-deel {
  width: 100%;
  max-width: 440px;
  margin-top: 4px;
  padding: 20px 20px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}
.vf-full p.vf-deel-kop {
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin: 0 0 4px;
}
.vf-full p.vf-deel-sub {
  font-size: 15px;
  margin: 0 auto 14px;
}
.vf-deel-knoppen {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.vf-deel-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s var(--ease);
}
.vf-deel-btn:active { transform: scale(0.97); }
.vf-deel-btn--wa { background: #25d366; color: #0b2e17; }
.vf-deel-btn--ander { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.vf-deel-melding { display: block; min-height: 1.2em; margin-top: 8px; color: var(--accent); font-weight: 700; font-size: 14px; }
/* Korte schermen: bedanktscherm met deelblok compacter, zodat alles past. */
.vf-full .vf-badge { flex-shrink: 0; }
@media (max-height: 760px) {
  .vf-full:has(.vf-deel) { justify-content: flex-start; padding-top: 64px; overflow-y: auto; }
  .vf-full:has(.vf-deel) .vf-badge { width: 48px; height: 48px; font-size: 22px; margin-bottom: 12px; }
  .vf-full:has(.vf-deel) h1 { font-size: 26px; margin-bottom: 8px; }
  .vf-full:has(.vf-deel) p { font-size: 15px; margin-bottom: 16px; }
  .vf-deel { padding: 14px 16px 10px; }
  .vf-full p.vf-deel-kop { font-size: 16px; }
  .vf-full p.vf-deel-sub { font-size: 14px; margin-bottom: 10px; }
  .vf-deel-btn { padding: 10px 18px; font-size: 14px; }
}
