/* ─── Zelftest / Self-Assessment Wizard ──────────────────────────────── */

.zelftest {
  --zt-accent: #2f6fe1;
  --zt-success: #22c55e;
  --zt-warning: #f59e0b;
  --zt-danger: #ef4444;
  --zt-surface: #ffffff;
  --zt-surface-alt: #f8fafd;
  --zt-border: #d9e3ef;
  --zt-text: #42546b;
  --zt-text-strong: #0f1b2d;
  --zt-muted: #5f7187;
  --zt-radius: 14px;
  min-height: 100vh;
  background: #edf2fb;
}

/* ─── Honeypot: volledig verborgen voor echte gebruikers ─────────────── */

.zelftest-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

/* ─── Minimal Top Bar ────────────────────────────────────────────────── */

.zelftest-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--zt-border);
}

.zelftest-topbar img {
  height: 28px;
  display: block;
}

/* ─── Minimal Footer ─────────────────────────────────────────────────── */

.zelftest-minifooter {
  padding: 28px 24px;
  text-align: center;
  border-top: 1px solid var(--zt-border);
  background: var(--zt-surface-alt);
}

.zelftest-minifooter-link {
  font-size: 13px;
  color: var(--zt-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.zelftest-minifooter-link:hover {
  color: var(--zt-text-strong);
}

/* ─── Progress Bar ───────────────────────────────────────────────────── */

.zelftest-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.zelftest-progress {
  flex: 1;
  height: 8px;
  background: var(--zt-border);
  border-radius: 99px;
  overflow: hidden;
}

.zelftest-progress-pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--zt-accent);
  min-width: 32px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.zelftest-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--zt-accent), #60a5fa);
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Step Container ─────────────────────────────────────────────────── */

.zelftest-step {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px 48px;
}

/* ─── Intro / Hero ───────────────────────────────────────────────────── */

.zelftest-hero {
  padding: 48px 24px 20px;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.zelftest-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--zt-surface);
  border: 1px solid var(--zt-border);
  border-radius: 99px;
  padding: 5px 14px;
  margin-bottom: 28px;
  width: fit-content;
  font-size: 12px;
  font-weight: 500;
  color: var(--zt-accent);
}

.zelftest-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--zt-accent);
  flex-shrink: 0;
}

.zelftest-hero h1 {
  font-family: "Fraunces", "Sora", serif;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 600;
  color: var(--zt-text-strong);
  line-height: 1.18;
  margin: 0 0 20px;
  letter-spacing: -0.3px;
}

.zelftest-hero .lead {
  font-size: 17px;
  color: var(--zt-muted);
  line-height: 1.7;
  margin: 0 0 36px;
}

.zelftest-no-signup {
  font-size: 13px;
  color: var(--zt-muted);
}

/* ─── Benefits List (Intro) ──────────────────────────────────────────── */

.zelftest-benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0 28px;
}

.zelftest-benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--zt-text);
  line-height: 1.5;
}

.zelftest-benefit i {
  color: var(--zt-success);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── Wizard Wrapper ─────────────────────────────────────────────────── */

/* Inherit #edf2fb from parent — no separate background needed */
.zelftest-wizard-wrap {
  scroll-margin-top: 64px; /* topbar 56px + 8px breathing room */
}

/* Border only when hero precedes the wizard (step 1) */
.zelftest-hero + .zelftest-wizard-wrap {
  border-top: 1px solid var(--zt-border);
}

/* ─── Themes Preview (Intro) ─────────────────────────────────────────── */

.zelftest-themes {
  border-top: 1px solid var(--zt-border);
  padding: 48px 24px 64px;
  background: var(--zt-surface-alt);
}

.zelftest-themes-inner {
  max-width: 640px;
  margin: 0 auto;
}

.zelftest-themes-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--zt-muted);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.zelftest-theme-card {
  display: flex;
  gap: 16px;
  background: var(--zt-surface);
  border: 1px solid var(--zt-border);
  border-radius: var(--zt-radius);
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: border-color 0.15s ease;
}

.zelftest-theme-card:hover {
  border-color: var(--zt-accent);
}

.zelftest-theme-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 111, 225, 0.08);
  border-radius: 10px;
  color: var(--zt-accent);
}

.zelftest-theme-title {
  font-weight: 500;
  font-size: 15px;
  color: var(--zt-text-strong);
  margin-bottom: 4px;
}

.zelftest-theme-desc {
  font-size: 14px;
  color: var(--zt-muted);
  line-height: 1.5;
}

/* ─── Step Header ────────────────────────────────────────────────────── */

.zelftest-step-header {
  margin-bottom: 32px;
}

.zelftest-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--zt-accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.zelftest-step-header h2 {
  font-family: "Fraunces", "Sora", serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--zt-text-strong);
  margin: 0 0 8px;
  line-height: 1.25;
}

.zelftest-step-header p {
  color: var(--zt-muted);
  font-size: 14px;
  margin: 0;
}

/* ─── Question Block ─────────────────────────────────────────────────── */

.zelftest-question {
  margin-bottom: 28px;
}

.zelftest-question-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--zt-text-strong);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* ─── Validation — unanswered question highlight ─────────────────────── */

.zelftest-question.unanswered {
  border-left: 3px solid var(--zt-danger);
  padding-left: 14px;
}

.zelftest-question.unanswered .zelftest-question-text {
  color: var(--zt-danger);
}

.zelftest-incomplete-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--zt-danger);
  font-size: 14px;
  margin-top: 12px;
}

/* ─── Answer Option (radio-card) ─────────────────────────────────────── */

.zelftest-option {
  display: block;
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 6px;
  background: var(--zt-surface);
  border: 1px solid var(--zt-border);
  border-radius: 8px;
  color: var(--zt-muted);
  font-family: "Sora", sans-serif;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.zelftest-option:hover {
  border-color: var(--zt-accent);
  color: var(--zt-text-strong);
  background: rgba(47, 111, 225, 0.04);
}

.zelftest-option.selected {
  border-color: var(--zt-accent);
  background: rgba(47, 111, 225, 0.08);
  color: var(--zt-accent);
  font-weight: 500;
}

.zelftest-option-indicator {
  margin-right: 10px;
  opacity: 0.4;
}

.zelftest-option.selected .zelftest-option-indicator {
  opacity: 1;
}

/* ─── Navigation Buttons ─────────────────────────────────────────────── */

.zelftest-nav {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.zelftest-cta {
  flex: 1;
  background: var(--zt-accent);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.zelftest-cta:hover {
  background: #1d5cc9;
}

.zelftest-cta:disabled {
  background: var(--zt-border);
  color: var(--zt-muted);
  cursor: not-allowed;
}

.zelftest-cta.incomplete {
  background: var(--zt-border);
  color: var(--zt-muted);
  cursor: pointer;
}

.zelftest-cta.incomplete:hover {
  background: #c8d4e3;
}

.zelftest-back {
  background: var(--zt-surface);
  color: var(--zt-muted);
  border: 1.5px solid var(--zt-border);
  border-radius: 10px;
  padding: 14px 20px;
  font-family: "Sora", sans-serif;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.zelftest-back:hover {
  border-color: var(--zt-accent);
  color: var(--zt-text-strong);
}

.zelftest-secondary {
  background: transparent;
  color: var(--zt-muted);
  border: none;
  font-family: "Sora", sans-serif;
  font-size: 14px;
  padding: 10px 0;
  width: 100%;
  cursor: pointer;
  transition: color 0.15s ease;
}

.zelftest-secondary:hover {
  color: var(--zt-text-strong);
}

/* ─── Results ────────────────────────────────────────────────────────── */

.zelftest-result-card {
  background: var(--zt-surface);
  border: 1.5px solid var(--zt-border);
  border-radius: var(--zt-radius);
  padding: 22px 24px;
  margin-bottom: 14px;
}

.zelftest-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.zelftest-result-title {
  font-weight: 500;
  font-size: 15px;
  color: var(--zt-text-strong);
}

.zelftest-level-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 99px;
}

.zelftest-level-badge.level-low {
  color: var(--zt-success);
  background: rgba(34, 197, 94, 0.1);
}

.zelftest-level-badge.level-mid {
  color: var(--zt-warning);
  background: rgba(245, 158, 11, 0.1);
}

.zelftest-level-badge.level-high {
  color: var(--zt-danger);
  background: rgba(239, 68, 68, 0.1);
}

/* ─── Score Bar ──────────────────────────────────────────────────────── */

.zelftest-score-bar {
  height: 6px;
  border-radius: 99px;
  background: #e8eef6;
  overflow: hidden;
  margin-top: 8px;
}

.zelftest-score-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.zelftest-score-fill.level-low {
  background: var(--zt-success);
}

.zelftest-score-fill.level-mid {
  background: var(--zt-warning);
}

.zelftest-score-fill.level-high {
  background: var(--zt-danger);
}

/* ─── Advice Section ─────────────────────────────────────────────────── */

.zelftest-advice {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--zt-border);
}

.zelftest-advice-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--zt-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.zelftest-advice-text {
  font-size: 14px;
  color: var(--zt-text);
  margin: 0;
  line-height: 1.65;
}

/* ─── Priority Card ──────────────────────────────────────────────────── */

.zelftest-priority-card {
  background: rgba(47, 111, 225, 0.06);
  border: 1.5px solid rgba(47, 111, 225, 0.2);
  border-radius: var(--zt-radius);
  padding: 18px 22px;
  margin-bottom: 16px;
  margin-top: 4px;
}

.zelftest-priority-label {
  font-size: 12px;
  color: var(--zt-accent);
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.zelftest-priority-text {
  font-size: 14px;
  color: var(--zt-accent);
  margin: 0;
  line-height: 1.5;
}

/* ─── Priority Tip Card ──────────────────────────────────────────────── */

.zelftest-tip-card {
  background: rgba(47, 111, 225, 0.04);
  border: 1px solid rgba(47, 111, 225, 0.18);
  border-radius: var(--zt-radius);
  padding: 18px 22px;
  margin-bottom: 16px;
}

.zelftest-tip-divider {
  border: none;
  border-top: 1px solid rgba(47, 111, 225, 0.15);
  margin: 14px 0;
}

.zelftest-tip-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--zt-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.zelftest-tip-text {
  font-size: 14px;
  color: #42546b;
  margin: 0;
  line-height: 1.65;
}

/* ─── Doorverwijsblok (resultaat → leidinggevende) ───────────────────── */

.zelftest-forward-block {
  background: rgba(255, 255, 255, 0.65);
  border: 1px dashed var(--zt-border);
  border-radius: var(--zt-radius);
  padding: 14px 18px;
  margin: 0 0 20px;
  font-size: 13.5px;
  color: var(--zt-text);
  line-height: 1.6;
}

.zelftest-forward-block strong {
  color: var(--zt-text-strong);
  display: block;
  margin-bottom: 4px;
}

/* ─── CTA Card (in results) ──────────────────────────────────────────── */

.zelftest-cta-card {
  background: var(--zt-surface);
  border: 1.5px solid var(--zt-border);
  border-radius: var(--zt-radius);
  padding: 24px 24px;
  margin-bottom: 14px;
}

.zelftest-cta-card h3 {
  font-family: "Fraunces", "Sora", serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--zt-text-strong);
  margin: 0 0 10px;
}

.zelftest-cta-card p {
  font-size: 14px;
  color: var(--zt-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.zelftest-reassurance {
  font-size: 12.5px !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-top: 1px solid var(--zt-border);
  padding-top: 12px;
  margin-top: 0 !important;
}

/* ─── Contact Form ───────────────────────────────────────────────────── */

.zelftest-input {
  width: 100%;
  background: var(--zt-surface);
  border: 1.5px solid var(--zt-border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--zt-text-strong);
  font-family: "Sora", sans-serif;
  font-size: 15px;
  margin-bottom: 12px;
  transition: border-color 0.15s ease;
  outline: none;
}

.zelftest-input:focus {
  border-color: var(--zt-accent);
}

.zelftest-input::placeholder {
  color: var(--zt-muted);
}

/* ─── Contact Card ───────────────────────────────────────────────────── */

.zelftest-contact-card {
  background: var(--zt-surface);
  border: 1.5px solid var(--zt-border);
  border-radius: var(--zt-radius);
  padding: 28px 28px 24px;
}

.zelftest-contact-card h2 {
  font-family: "Fraunces", "Sora", serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--zt-text-strong);
  margin: 6px 0 10px;
  line-height: 1.25;
}

.zelftest-contact-intro {
  font-size: 14px;
  color: var(--zt-muted);
  line-height: 1.65;
  margin: 0 0 20px;
}

.zelftest-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .zelftest-contact-row {
    grid-template-columns: 1fr;
  }

  .zelftest-contact-card {
    padding: 22px 20px 20px;
  }
}

/* ─── Results Email Form ─────────────────────────────────────────────── */

.zelftest-results-form {
  background: var(--zt-surface);
  border: 1.5px solid var(--zt-border);
  border-radius: var(--zt-radius);
  padding: 28px 28px 24px;
  margin-top: 16px;
}

.zelftest-results-form h3 {
  font-family: "Fraunces", "Sora", serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--zt-text-strong);
  margin: 0 0 6px;
  line-height: 1.3;
}

.zelftest-results-form > p {
  font-size: 14px;
  color: var(--zt-muted);
  line-height: 1.6;
  margin: 0 0 18px;
}

.zelftest-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--zt-text);
  line-height: 1.55;
  margin-bottom: 4px;
}

.zelftest-check-label input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 18px;
  height: 18px;
  cursor: pointer;

  /* Custom appearance — clearly empty when unchecked */
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #c8d5e8;
  border-radius: 4px;
  background: #ffffff;
  position: relative;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.zelftest-check-label input[type="checkbox"]:checked {
  background: #2f6fe1;
  border-color: #2f6fe1;
}

.zelftest-check-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: 2px solid #ffffff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.zelftest-check-label input[type="checkbox"]:focus-visible {
  outline: 2px solid #2f6fe1;
  outline-offset: 2px;
}

/* ─── Input error state ──────────────────────────────────────────────── */

.zelftest-input.input-error {
  border-color: var(--zt-danger);
  margin-bottom: 4px;
}

.zelftest-field-error {
  font-size: 12px;
  color: var(--zt-danger);
  margin: 0 0 10px;
  line-height: 1.4;
}

/* ─── Results Success State ──────────────────────────────────────────── */

.zelftest-results-success {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(34, 197, 94, 0.07);
  border: 1.5px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--zt-radius);
  padding: 20px 22px;
  margin-top: 16px;
}

.zelftest-results-success > i {
  color: var(--zt-success);
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.zelftest-results-success strong {
  display: block;
  color: var(--zt-text-strong);
  font-size: 15px;
  margin-bottom: 4px;
}

.zelftest-results-success p {
  font-size: 13px;
  color: var(--zt-muted);
  line-height: 1.55;
  margin: 0;
}

/* ─── Thanks ─────────────────────────────────────────────────────────── */

.zelftest-thanks {
  text-align: center;
  padding-top: 60px;
}

.zelftest-thanks-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  color: var(--zt-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 24px;
}

.zelftest-thanks h2 {
  font-family: "Fraunces", "Sora", serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--zt-text-strong);
  margin: 0 0 14px;
  line-height: 1.25;
}

.zelftest-thanks p {
  color: var(--zt-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}

.zelftest-thanks-note {
  font-size: 13px;
  color: var(--zt-muted);
  margin: 20px auto 4px;
  max-width: 400px;
  line-height: 1.5;
}

.zelftest-thanks-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--zt-accent);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--zt-border);
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}

.zelftest-thanks-link:hover {
  border-color: var(--zt-accent);
}

/* ─── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .zelftest-hero {
    padding: 32px 20px 28px;
  }

  .zelftest-step {
    padding: 32px 20px 40px;
  }

  .zelftest-result-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .zelftest-nav {
    flex-direction: column-reverse;
  }
}
