/* =====================================================================
   RSG Apply — vacaturepagina + sollicitatieformulier
   Brandtokens komen uit campaigns.js via CSS-variabelen (--c, --ink).
   Mobiel-eerst; geen framework, geen build.
   ===================================================================== */
:root {
  --c: #1f6feb;
  --ink: #0e1b2e;
  --bg: #fafbfd;
  --text: #1a2233;
  --muted: #5b6678;
  --line: #e6eaf1;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.brand { font-weight: 900; font-size: 1.05rem; color: var(--ink); letter-spacing: -0.01em; }
.brand img { height: 34px; width: auto; display: block; }
.brand.small img { height: 26px; }

.cta {
  display: inline-block;
  background: var(--c);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  border: 0;
  border-radius: 999px;
  padding: 0.95em 2.1em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--c) 35%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px color-mix(in srgb, var(--c) 45%, transparent); }
.cta:active { transform: translateY(0); }
.cta.small { padding: 0.7em 1.5em; font-size: 0.95rem; }

/* ---------------- vacaturepagina ---------------- */
.vacancy main { max-width: 620px; margin: 0 auto; padding: 0 1.4rem 6rem; }
.vac-top { max-width: 620px; margin: 0 auto; padding: 1.2rem 1.4rem; }
.vac-hero { padding: 1.2rem 0 2.2rem; }
.vac-kicker {
  color: var(--c); font-weight: 800; text-transform: uppercase;
  font-size: 0.8rem; letter-spacing: 0.12em; margin-bottom: 0.5rem;
}
.vac-hero h1 {
  font-size: clamp(2rem, 7vw, 2.9rem);
  font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink);
}
.vac-sub { color: var(--muted); font-weight: 600; margin-top: 0.6rem; }
.vac-salary { margin-top: 1rem; font-size: 1.35rem; color: var(--ink); }
.vac-salary strong { font-weight: 900; }
.vac-salary .per { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.vac-hero .cta { margin-top: 1.4rem; }
.vac-intro { margin-top: 1.6rem; font-size: 1.08rem; color: var(--text); }

.vac-block { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.vac-block h2 { font-size: 1.25rem; font-weight: 800; color: var(--ink); margin-bottom: 0.9rem; }
.checks { list-style: none; }
.checks li {
  position: relative; padding: 0.42em 0 0.42em 2em; font-size: 1.02rem;
}
.checks li::before {
  content: "✓";
  position: absolute; left: 0; top: 0.42em;
  width: 1.35em; height: 1.35em; border-radius: 50%;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  color: var(--c); font-weight: 900; font-size: 0.85em;
  display: flex; align-items: center; justify-content: center;
}
.checks.accent li::before { background: var(--c); color: #fff; }
.vac-over p { color: var(--muted); }

.vac-final {
  margin-top: 1rem; padding: 2.2rem 1.6rem; text-align: center;
  background: var(--ink); border-radius: var(--radius); color: #fff;
}
.vac-final h2 { font-size: 1.5rem; font-weight: 900; }
.vac-final p { color: #c7d0de; margin: 0.5rem 0 1.3rem; }

.vac-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: #fff; border-top: 1px solid var(--line);
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform 0.25s ease;
}
.vac-sticky.show { transform: translateY(0); }
.sticky-inner { max-width: 620px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; }
.sticky-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sticky-info strong { font-size: 0.95rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-info span { font-size: 0.85rem; color: var(--muted); }

/* ---------------- sollicitatieformulier ---------------- */
.apply { min-height: 100dvh; display: flex; flex-direction: column; background: #fff; }
.progress { height: 4px; background: var(--line); }
.progress-bar { height: 100%; width: 0; background: var(--c); transition: width 0.4s ease; }
.apply-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.4rem; max-width: 720px; width: 100%; margin: 0 auto;
}
.apply-role { color: var(--muted); font-size: 0.9rem; font-weight: 600; }

.stage { flex: 1; display: flex; align-items: center; width: 100%; }
.q {
  max-width: 720px; width: 100%; margin: 0 auto; padding: 1rem 1.4rem 2rem;
  opacity: 0; transform: translateY(26px); transition: opacity 0.35s ease, transform 0.35s ease;
}
.q.entered { opacity: 1; transform: translateY(0); }
.q-num { color: var(--c); font-weight: 800; font-size: 0.85rem; margin-bottom: 0.6rem; }
.q h1 { font-size: clamp(1.5rem, 5.5vw, 2.2rem); font-weight: 900; color: var(--ink); letter-spacing: -0.015em; }
.q-sub { color: var(--muted); margin-top: 0.5rem; font-size: 1.02rem; }

.q-input {
  display: block; width: 100%; margin-top: 1.6rem;
  font: inherit; font-size: 1.35rem; font-weight: 600; color: var(--ink);
  border: 0; border-bottom: 2.5px solid var(--line); background: transparent;
  padding: 0.4em 0; outline: none; border-radius: 0;
  transition: border-color 0.2s ease;
}
.q-input:focus { border-color: var(--c); }
.q-input::placeholder { color: #b6bfcd; font-weight: 500; }

.choices { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.6rem; max-width: 440px; }
.choice {
  font: inherit; font-size: 1.05rem; font-weight: 600; text-align: left;
  color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 0.85em 1em; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.choice kbd {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.6em; height: 1.6em; margin-right: 0.6em;
  border: 1.5px solid var(--line); border-radius: 5px;
  font: inherit; font-size: 0.8em; color: var(--muted);
}
.choice:hover { border-color: var(--c); }
.choice.sel {
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 8%, #fff);
  transform: scale(1.01);
}
.choice.sel kbd { background: var(--c); border-color: var(--c); color: #fff; }

.file-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem;
  margin-top: 1.6rem; padding: 2.4rem 1rem; max-width: 440px;
  border: 2px dashed var(--line); border-radius: var(--radius);
  color: var(--ink); font-weight: 600; text-align: center; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.file-drop:hover, .file-drop.has-file { border-color: var(--c); background: color-mix(in srgb, var(--c) 5%, #fff); }
.file-drop small { color: var(--muted); font-weight: 500; }
.file-drop input { display: none; }
.linklike {
  display: inline-block; margin-top: 1.1rem; background: none; border: 0;
  font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer;
}
.linklike:hover { color: var(--c); }

.q-err { color: #d3382f; font-weight: 600; margin-top: 0.9rem; min-height: 1.4em; opacity: 0; transition: opacity 0.2s; }
.q-err.show { opacity: 1; }

.apply-foot {
  display: flex; align-items: center; gap: 1rem;
  max-width: 720px; width: 100%; margin: 0 auto;
  padding: 1rem 1.4rem calc(1.4rem + env(safe-area-inset-bottom));
}
.apply-foot .hint { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 600px) { .apply-foot .hint { display: none; } }

/* versturen + succes */
.sending { text-align: center; }
.spinner {
  width: 44px; height: 44px; margin: 0 auto 1.2rem;
  border: 4px solid var(--line); border-top-color: var(--c);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.done { text-align: center; }
.check-anim { margin: 0 auto 1.4rem; width: 84px; height: 84px; }
.check-anim svg { width: 100%; height: 100%; }
.check-anim circle {
  fill: none; stroke: var(--c); stroke-width: 3;
  stroke-dasharray: 151; stroke-dashoffset: 151;
  animation: draw 0.6s ease forwards;
}
.check-anim path {
  fill: none; stroke: var(--c); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 36; stroke-dashoffset: 36;
  animation: draw 0.35s ease 0.55s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
