:root {
  /* Brand kleuren — exact uit ondernemingoprichten.be site.css */
  --blauw: #2f83dc;
  --dark-blue: #01061d;
  --light-blue: #a3d9ff;
  --bg-light: #f7fbfe;
  --blue-bg: #d2ecff;
  --grey: #ebebeb;
  --star: #fdbf01;
  --soft-bg: #f0f6fd;

  /* Status-kleuren */
  --error: #d00;
  --warn: #f9a825;
  --success: #388e3c;

  /* Tekst */
  --text: #000;
  --text-muted: #555;
  --text-on-dark: #fff;
  --border: #e6e9ef;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-button: 1px 3px 12px rgba(0, 0, 0, 0.18);
  --shadow-card: 0 4px 24px rgba(1, 6, 29, 0.08);
  --shadow-hover: 0 8px 32px rgba(1, 6, 29, 0.10);

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --max-w: 720px;
}

* { box-sizing: border-box; }

html { height: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-light);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--font); color: var(--dark-blue); }
h1 { font-size: 3rem; font-weight: 700; line-height: 1.1; }
h2 { font-size: 2.25rem; font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
h4 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }

p { margin: 0; }
.lead { font-size: 1.125rem; line-height: 1.5; color: var(--text-muted); }

@media (max-width: 767px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

a { color: var(--blauw); }
a:hover { color: var(--dark-blue); }

/* ============================================================
   Buttons — exact match to ondernemingoprichten.be .button
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--blauw);
  background: var(--blauw);
  color: var(--text-on-dark);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-button);
  cursor: pointer;
  transition: all 200ms ease;
  min-height: 48px;
}

.btn-primary:hover {
  background: transparent;
  color: var(--blauw);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--blauw);
  color: var(--text-on-dark);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--dark-blue);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 200ms ease;
  min-height: 48px;
}

.btn-secondary:hover {
  background: var(--blue-bg);
  color: var(--dark-blue);
}

.btn-large { padding: 1rem 2rem; font-size: 1.0625rem; }
.btn-small { padding: 0.5rem 1.25rem; font-size: 0.875rem; min-height: 40px; }

/* Focus indicators — visible on keyboard nav, invisible on mouse */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blauw);
  outline-offset: 2px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-3) 0;
}

label.field {
  display: block;
  margin-bottom: var(--space-3);
}

label.field span {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

/* ============================================================
   Skip link (a11y)
   ============================================================ */

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-3);
  z-index: 200;
  padding: var(--space-2) var(--space-3);
  background: var(--dark-blue);
  color: var(--text-on-dark);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 200ms ease;
}
.skip-link:focus { top: var(--space-2); color: var(--text-on-dark); }

.intro-hero {
  margin-bottom: var(--space-5);
  text-align: center;
}
.intro-hero h1 { margin-bottom: var(--space-3); }
.intro-hero .lead { max-width: 540px; margin: 0 auto; }

@media (max-width: 767px) {
  .intro-hero { text-align: left; margin-bottom: var(--space-4); }
  .intro-hero .lead { max-width: none; }
}


.loading {
  color: var(--text-muted);
  text-align: center;
  padding: var(--space-5);
}

/* ============================================================
   Progress dots
   ============================================================ */

.progress {
  margin-bottom: var(--space-4);
}
.progress-dots {
  display: flex;
  flex-direction: row;
  gap: 6px;
  padding: 0;
  margin: 0 0 var(--space-2);
  list-style: none;
  flex-wrap: wrap;
}
.progress-dots .dot {
  width: 24px;
  height: 6px;
  background: var(--grey);
  border-radius: var(--radius-pill);
  transition: background 200ms ease, width 200ms ease;
}
.progress-dots .dot.done { background: var(--dark-blue); }
.progress-dots .dot.active { background: var(--blauw); width: 32px; }

.progress-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.progress-label strong { color: var(--dark-blue); }

@media (max-width: 480px) {
  .progress-dots .dot { width: 16px; }
  .progress-dots .dot.active { width: 22px; }
}
@media (max-width: 380px) {
  .progress-dots .dot { width: 12px; }
  .progress-dots .dot.active { width: 18px; }
}

/* === STEP CARD STYLING === */
.step-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 200ms ease, transform 200ms ease;
}

.step-card.transitioning {
  opacity: 0;
  transform: translateY(8px);
}

.step-question {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: var(--space-4);
}

.step-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: var(--space-3);
}

.step-error {
  background: rgba(220, 38, 38, 0.1);
  color: var(--error);
  border-left: 4px solid var(--error);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  font-size: 0.875rem;
}

.step-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

@media (max-width: 767px) {
  .step-card {
    padding: var(--space-4);
    border-radius: var(--radius-md);
  }

  .step-actions {
    flex-direction: column;
  }

  .step-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .step-card,
  .step-card.transitioning {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   Option cards (radio + checkbox)
   ============================================================ */

.options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-3) 0;
}

.option-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: white;
  transition: border-color 150ms ease, background 150ms ease, transform 100ms ease;
  min-height: 60px;
  user-select: none;
}
.option-card:hover { border-color: var(--blauw); }
.option-card:active { transform: scale(0.99); }
.option-card.selected {
  border-color: var(--blauw);
  background: var(--blue-bg);
}

.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.option-content { flex: 1; }
.option-label {
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}
.option-sublabel {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 400;
}

.option-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  background: white;
  display: grid;
  place-items: center;
  color: white;
  transition: background 150ms ease, border-color 150ms ease;
  font-size: 0.875rem;
  line-height: 1;
}
.option-card.selected .option-check {
  background: var(--blauw);
  border-color: var(--blauw);
}

/* Multi-select: square check instead of pill */
.option-card.multi .option-check {
  border-radius: var(--radius-sm);
}

/* ============================================================
   Textarea + optional badge + char counter
   ============================================================ */

.badge-optional {
  display: inline-block;
  vertical-align: middle;
  margin-left: var(--space-2);
  padding: 2px 10px;
  background: var(--grey);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

textarea {
  width: 100%;
  min-height: 140px;
  padding: var(--space-3);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  color: var(--text);
  background: white;
  transition: border-color 150ms ease;
}
textarea:focus { outline: none; }
textarea:focus-visible {
  outline: 2px solid var(--blauw);
  outline-offset: 2px;
  border-color: var(--blauw);
}

.char-counter {
  text-align: right;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
}
.char-counter.warn { color: var(--warn); }
.char-counter.over { color: var(--error); font-weight: 600; }

/* ============================================================
   Contact step — radio choice + collapsible fields
   ============================================================ */

.field {
  display: block;
  margin-bottom: var(--space-3);
}
.field > span {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-1);
  color: var(--text);
}
.field > span em {
  color: var(--blauw);
  font-style: normal;
  margin-left: 2px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  padding: var(--space-3);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 1rem;
  background: white;
  transition: border-color 150ms ease;
  min-height: 48px;
}
.field input:focus {
  outline: none;
  border-color: var(--blauw);
}

.gdpr-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  padding: var(--space-3);
  background: var(--bg-light);
  border-radius: var(--radius-md);
  cursor: pointer;
}
.gdpr-row input { margin-top: 2px; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--blauw); }
.gdpr-row span { font-size: 0.9375rem; line-height: 1.5; }

.contact-fields {
  margin-top: var(--space-4);
  max-height: 800px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 300ms ease, opacity 200ms ease, margin-top 200ms ease;
}
.contact-fields.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

/* ============================================================
   Result page
   ============================================================ */

.result-hero {
  background: linear-gradient(135deg, var(--blue-bg) 0%, var(--soft-bg) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-card);
}
.result-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: white;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: var(--space-3);
}
.result-hero .badge .star {
  color: var(--star);
  font-size: 1rem;
}
.result-hero h2 {
  font-size: 3.5rem;
  margin: 0;
  color: var(--dark-blue);
  line-height: 1;
}
.result-hero .form-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-top: var(--space-2);
  font-weight: 400;
}
.result-hero .hero-tagline {
  color: var(--text-muted);
  margin-top: var(--space-3);
}

@media (max-width: 767px) {
  .result-hero { padding: var(--space-5) var(--space-3); }
  .result-hero h2 { font-size: 2.5rem; }
}

/* ============================================================
   Description card + ranking
   ============================================================ */

.description-card {
  background: white;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--blauw);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-card);
}
.description-card p {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
}

.ranking-block {
  margin: var(--space-4) 0;
}
.ranking-block h3 {
  margin-bottom: var(--space-3);
}

.ranking {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.ranking-row {
  display: grid;
  grid-template-columns: 120px 1fr 60px;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}
.ranking-row .form-name {
  font-weight: 500;
  color: var(--text);
}
.ranking-row.top {
  font-weight: 600;
}
.ranking-row.top .form-name {
  color: var(--dark-blue);
}
.ranking-row .bar {
  position: relative;
  height: 14px;
  background: var(--grey);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.ranking-row .bar-fill {
  height: 100%;
  background: var(--light-blue);
  border-radius: var(--radius-pill);
  transition: width 600ms cubic-bezier(0.2, 0.8, 0.4, 1);
}
.ranking-row.top .bar-fill {
  background: var(--dark-blue);
}
.ranking-row .score-value {
  text-align: right;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.ranking-row.excluded {
  opacity: 0.55;
}
.ranking-row.excluded .bar-fill {
  background: var(--grey);
}
.ranking-row .exclusion-note {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: -4px;
  padding-left: 130px;
}

@media (max-width: 480px) {
  .ranking-row { grid-template-columns: 90px 1fr 40px; gap: var(--space-2); }
  .ranking-row .exclusion-note { padding-left: 100px; }
}

/* ============================================================
   Risk meter — traffic-light gradient with pointer
   ============================================================ */

.risk-block {
  margin: var(--space-4) 0;
}
.risk-block h3 {
  margin-bottom: var(--space-3);
}
.risk-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.risk-track {
  position: relative;
  height: 14px;
  background: linear-gradient(to right, var(--success) 0%, var(--warn) 50%, var(--error) 100%);
  border-radius: var(--radius-pill);
  overflow: visible;
}
.risk-pointer {
  position: absolute;
  top: -7px;
  width: 28px;
  height: 28px;
  background: white;
  border: 3px solid var(--dark-blue);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: left 800ms cubic-bezier(0.2, 0.8, 0.4, 1);
  left: 0%;
}
.risk-value {
  text-align: center;
  margin-top: var(--space-3);
  font-size: 1.125rem;
}
.risk-value strong {
  color: var(--dark-blue);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   CTA block + flag list on result page
   ============================================================ */

.cta-block {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  margin: var(--space-5) 0;
  box-shadow: var(--shadow-card);
}
.cta-block .btn-primary {
  font-size: 1.0625rem;
  padding: 1rem 2rem;
}
.cta-block .cta-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-3);
}

.flag-list {
  margin: var(--space-4) 0;
  padding: 0;
  list-style: none;
}
.flag-list li {
  padding: var(--space-3);
  background: var(--soft-bg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  font-size: 0.9375rem;
}
.flag-list li strong {
  color: var(--dark-blue);
  margin-right: 4px;
}

.review-banner {
  background: #fff8e1;
  border-left: 4px solid var(--warn);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}
.review-banner strong { display: block; color: var(--dark-blue); margin-bottom: var(--space-1); }
.review-banner p { color: var(--text); font-size: 0.9375rem; line-height: 1.5; }

/* ============================================================
   Mobile sticky bottom-bar for step nav
   ============================================================ */

@media (max-width: 767px) {
  .step-card {
    padding-bottom: 96px;  /* extra space for the sticky bar */
  }

  .step-actions {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    margin: var(--space-4) calc(-1 * var(--space-3)) calc(-1 * var(--space-4));
    padding: var(--space-3);
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    z-index: 50;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: var(--space-2);
  }
  .step-actions > * { width: auto; flex: 0 1 auto; }
  .step-actions .btn-primary { flex: 1 1 auto; margin-left: 0; }
  .step-actions .btn-secondary { padding: 0.75rem 1rem; }
}

/* ============================================================
   Accessibility utilities
   ============================================================ */

/* Visually-hidden but available to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Visible focus on all interactive elements (refinement of Task 3) */
input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="tel"]:focus-visible,
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible,
textarea:focus-visible,
.option-card:focus-within {
  outline: 2px solid var(--blauw);
  outline-offset: 2px;
}

/* Ensure 16px font on iOS to prevent auto-zoom */
@media (max-width: 767px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* Color-contrast safe link colors in dark backgrounds */

/* ============================================================
   Overrides for Webflow chrome integration
   ============================================================ */

/* Hide Webflow's mobile hamburger — we don't load Webflow's JS so it
   wouldn't open. Desktop nav still visible via .hide-tablet. */
.navbar4_menu-button { display: none !important; }

/* Webflow's navbar4 has position: fixed without a top value (relies on
   their smart-nav JS that we don't load). Result: navbar overlays the
   wizard. Force sticky so it takes flow space AND pins on scroll. */
.navbar4_component {
  position: sticky;
  top: 0;
}
/* Sticky needs visible overflow on the ancestor scrolling container —
   Webflow sets overflow: clip on .page-wrapper.navbar-on-page which
   would prevent sticky from working. */

/* Constrain the wizard card to readable width, even though Webflow's
   container-large would otherwise expand it */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px var(--space-3) var(--space-5);
}
@media (min-width: 768px) {
  main { padding: 56px var(--space-3) var(--space-6); }
}

/* page-wrapper from Webflow may set its own max-width — neutralize */
:root {
  --stage-color: #ffffff;
}

.page-wrapper.navbar-on-page {
  max-width: none;
  overflow: visible;
  background-color: var(--stage-color);
  transition: background-color 800ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .page-wrapper.navbar-on-page { transition: none; }
}

/* Ensure body bg matches our brand-light, not Webflow default white */
body { background: var(--bg-light); }

/* ============================================================
   Wizard shell — unifies progress + step-card visually
   ============================================================ */

.wizard-shell {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.wizard-shell .progress {
  padding: var(--space-3) var(--space-5) var(--space-2);
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  background: white;
}

.wizard-shell .step-card {
  box-shadow: none;
  border-radius: 0;
}

@media (max-width: 767px) {
  .wizard-shell .progress {
    padding: var(--space-3) var(--space-3) var(--space-2);
  }
}

/* ============================================================
   Wizard layout — desktop sidebar + main column
   ============================================================ */

.wizard-layout {
  display: block;
  max-width: var(--max-w);
  margin: 0 auto;
}

.wizard-main {
  min-width: 0;
}

.wizard-sidebar {
  display: none;
}

/* Desktop ≥1100px: 2-column grid */
@media (min-width: 1100px) {

  /* Override the main padding (Win A) which was outer; now the wizard-layout owns horizontal width */
  main {
    max-width: none;
    padding: 56px 0 var(--space-6);
  }

  .wizard-layout {
    display: grid;
    grid-template-columns: var(--max-w) 260px;
    gap: var(--space-6);
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    align-items: start;
  }

  .wizard-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    position: sticky;
    top: 96px;
    padding-left: var(--space-5);
    border-left: 1px solid rgba(1, 6, 29, 0.12);
  }
}

/* ============================================================
   Sidebar — trust zone (static)
   ============================================================ */

.sidebar-trust {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.sidebar-itaa {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.sidebar-itaa-mark {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blauw);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.125rem;
}
.sidebar-itaa-label {
  font-weight: 600;
  color: var(--dark-blue);
  font-size: 0.9375rem;
  line-height: 1.2;
}
.sidebar-itaa-sublabel {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 2px;
}

.sidebar-trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text);
}
.sidebar-trust-list li {
  padding-left: 22px;
  position: relative;
  line-height: 1.45;
}
.sidebar-trust-list li::before {
  content: "✓";
  color: var(--blauw);
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 0;
}

.sidebar-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 var(--space-2);
}

/* ============================================================
   Sidebar — live answers + why-hint
   ============================================================ */

.sidebar-answers {
  display: flex;
  flex-direction: column;
}

.sidebar-answer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-answer-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-size: 0.875rem;
  line-height: 1.4;
}

.sidebar-step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--soft-bg);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark-blue);
  display: grid;
  place-items: center;
  line-height: 1;
}

.sidebar-answer-text {
  color: var(--text);
}

.sidebar-hint {
  display: flex;
  flex-direction: column;
}

.sidebar-hint-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
}

/* ============================================================
   Sidebar — save / share progress link
   ============================================================ */

.sidebar-save {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px var(--space-3);
  border: 1px solid var(--border);
  background: white;
  color: var(--dark-blue);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
  width: 100%;
}
.btn-share:hover {
  border-color: var(--blauw);
  background: var(--bg-light);
}
.btn-share.copied {
  background: var(--blue-bg);
  border-color: var(--blauw);
  color: var(--dark-blue);
}
.btn-share-icon {
  display: inline-flex;
  align-items: center;
  color: var(--dark-blue);
}

.sidebar-save-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================================
   Mobile polish — back-link, topbar wrap, padding tuning
   ============================================================ */

/* Item 1: Mobile back-link — visible only when desktop nav links are hidden */
.mobile-back-link {
  display: none;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0 var(--space-2);
  white-space: nowrap;
}
.mobile-back-link:hover { color: var(--dark-blue); }

/* Webflow hides .hide-tablet at max-width: 991px — match that breakpoint */
@media (max-width: 991px) {
  .mobile-back-link {
    display: inline-flex;
    align-items: center;
  }
}

/* Item 2: Topbar text wrap on narrow viewport */
@media (max-width: 600px) {
  .navbar-logo-center-container.shadow-three {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .navbar-logo-center .text-block-2 {
    font-size: 0.75rem;
    line-height: 1.3;
  }
}

/* Item 3: Reduce top padding under sticky navbar on mobile — 48px is generous */
@media (max-width: 767px) {
  main {
    padding-top: 32px;
  }
}

/* Item 9: Ensure navbar container padding shrinks on very narrow phones so
   logo + back-link don't crowd */
@media (max-width: 479px) {
  .navbar4_container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ============================================================
   Landing page (index.html) — twee tool-cards in een grid
   ============================================================ */

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.landing-wordmark {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--dark-blue);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.landing-wordmark:hover { color: var(--blauw); }

.landing-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-5);
}

.landing-hero {
  text-align: center;
  margin-bottom: var(--space-7);
}

.landing-hero h1 {
  margin-bottom: var(--space-3);
}

.landing-hero .lead {
  max-width: 640px;
  margin: 0 auto;
}

.landing-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

.tool-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-card);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.tool-card:hover {
  border-color: var(--blauw);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  color: var(--text);
}

.tool-card h2 {
  font-size: 1.375rem;
  margin-bottom: var(--space-3);
  color: var(--dark-blue);
  line-height: 1.3;
}

.tool-card p {
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  flex: 1;
}

.tool-card .tool-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  flex: 0;
}

.tool-card .tool-cta {
  display: inline-block;
  align-self: flex-start;
  padding: var(--space-2) var(--space-4);
  background: var(--blauw);
  color: var(--text-on-dark);
  border-radius: var(--radius-md);
  font-weight: 600;
  border: 2px solid var(--blauw);
  transition: background 150ms ease, color 150ms ease;
}

.tool-card:hover .tool-cta {
  background: #fff;
  color: var(--blauw);
}

.landing-trust {
  text-align: center;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.landing-trust strong { color: var(--dark-blue); }

.landing-trust .small {
  font-size: 0.85rem;
  margin-top: var(--space-2);
}

@media (max-width: 767px) {
  .landing-main { padding: var(--space-5) var(--space-3); }
  .landing-hero { margin-bottom: var(--space-5); }
  .landing-tools {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
  }
  .tool-card { padding: var(--space-4); }
  .tool-card h2 { font-size: 1.25rem; }
}

/* ============================================================
   Wizard fields — chip choices + postcode-lookup + sidebar
   ============================================================ */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.field-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark-blue);
  line-height: 1.4;
}

.field .hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.choice-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-2);
}

.choice-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-3);
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-blue);
  cursor: pointer;
  text-align: center;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease, transform 120ms ease;
}

.choice-chip:hover {
  border-color: var(--blauw);
  background: var(--soft-bg);
}

.choice-chip.selected {
  border-color: var(--blauw);
  background: var(--blauw);
  color: var(--text-on-dark);
}

.choice-chip-custom {
  border-style: dashed;
  color: var(--text-muted);
  font-weight: 500;
}

.choice-chip-custom.selected {
  border-style: solid;
  color: var(--text-on-dark);
}

.choice-custom-input {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--soft-bg);
  border: 2px solid var(--blauw);
  border-radius: var(--radius-md);
}

.custom-input-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark-blue);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.custom-input-suffix {
  font-size: 1rem;
  color: var(--text-muted);
}

.choice-custom-input input[type="number"] {
  padding: var(--space-3);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 1.125rem;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.choice-custom-input input[type="number"]:focus {
  outline: none;
  border-color: var(--blauw);
}

/* Postcode lookup */
.postcode-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.postcode-input-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.postcode-input {
  width: 160px;
  padding: var(--space-3);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: #fff;
  color: var(--dark-blue);
  text-align: center;
}

.postcode-input:focus {
  outline: none;
  border-color: var(--blauw);
}

.postcode-result {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.4;
}

.postcode-result-success {
  background: #e8f5e9;
  border: 2px solid var(--success);
  color: var(--dark-blue);
}

.postcode-result-warn {
  background: #fff8e1;
  border: 2px solid var(--warn);
  color: var(--dark-blue);
}

/* Single-input fields (number_euro fallback, percentage, textarea) */
.field-number_euro input[type="number"],
.field-percentage input[type="number"] {
  padding: var(--space-3);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 1.125rem;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.field-number_euro input[type="number"]:focus,
.field-percentage input[type="number"]:focus {
  outline: none;
  border-color: var(--blauw);
}

.field-textarea textarea {
  padding: var(--space-3);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 1rem;
  min-height: 100px;
  resize: vertical;
  background: #fff;
  box-sizing: border-box;
}

.field-textarea textarea:focus {
  outline: none;
  border-color: var(--blauw);
}

/* Sidebar — antwoorden tot nu toe */
.sidebar-answers {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.sidebar-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 var(--space-3) 0;
}

.sidebar-answers-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
}

.sidebar-answers-list dt {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.3;
}

.sidebar-answers-list dd {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin: 0 0 var(--space-2) 0;
}

.sidebar-answers-list dd:last-child {
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .sidebar-answers { margin-top: var(--space-3); }
  .choice-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

@media (max-width: 479px) {
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .postcode-input { width: 140px; font-size: 1.25rem; }
}

/* Result-page accents */
.loonkost-total {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
  font-size: 1.05rem;
}

.hint-small {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-2);
  font-style: italic;
}

.cash-gap {
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.cash-gap-ok {
  background: #e8f5e9;
  color: #1b5e20;
  border-left: 4px solid var(--success);
}

.cash-gap-warn {
  background: #fff3e0;
  color: #bf360c;
  border-left: 4px solid var(--warn);
}

.ai-summary {
  margin: var(--space-5) 0;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(135deg, var(--soft-bg), #fff);
  border: 2px solid var(--blauw);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.ai-summary-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blauw);
  margin-bottom: var(--space-3);
}

.ai-summary-header::before {
  content: "✨";
  font-size: 1.1rem;
}

.ai-summary-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark-blue);
  white-space: pre-wrap;
}

.ai-summary-loading {
  font-style: italic;
  color: var(--text-muted);
}

/* Wizard-header (mirror van landing-header voor /tool-1.html en /tool-2.html) */
.wizard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.wizard-footer {
  text-align: center;
  padding: var(--space-5) var(--space-3);
  color: var(--text-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
  margin-top: var(--space-6);
}

.wizard-footer strong { color: var(--dark-blue); }
