/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; color: #1A3A5C; line-height: 1.6; overflow-x: hidden; background: #f0f6fa; }

/* ===== DESIGN TOKENS (CertiLoket) ===== */
:root {
  --navy:       #1A3A5C;
  --navy-dark:  #0d2740;
  --navy-mid:   #244c70;
  --teal:       #F0A500;
  --teal-dark:  #c98a00;
  --teal-light: #fef3e0;
  --amber:      #F0A500;
  --amber-dark: #c98a00;
  --amber-light:#fef3e0;
  --white:      #ffffff;
  --light:      #f0f6fa;
  --muted:      #5a7a9a;
  --border:     #e2eaf2;
  --success:    #2E9E6B;
  --error:      #dc2626;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(15,43,70,0.10);
  --shadow-lg:  0 12px 48px rgba(15,43,70,0.16);
  --trans:      all 0.3s ease;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; }
p  { font-size: 1rem; color: #3a5a7a; }
a  { text-decoration: none; color: inherit; }

/* ===== PAGE LAYOUT ===== */
.ws-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ===== NAVBAR (homepage stijl) ===== */
#ws-navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy-dark);
  box-shadow: 0 2px 16px rgba(15,43,70,0.18);
  transition: background 0.3s ease, padding 0.3s ease;
}
.ws-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ws-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--white);
  text-decoration: none;
}
.ws-logo-dot { color: var(--teal); }
.ws-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.ws-nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  transition: color 0.2s;
}
.ws-nav-links a:hover { color: var(--teal); }
.ws-nav-cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700 !important;
  transition: background 0.2s;
}
.ws-nav-cta:hover { background: var(--teal-dark) !important; }
#ws-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}
#ws-hamburger span {
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  display: block;
  transition: all 0.3s ease;
}
/* Mobile menu */
#ws-mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy-dark);
  z-index: 1001;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
#ws-mobile-menu.open { display: flex; }
#ws-mobile-menu a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}
.ws-mobile-cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  padding: 12px 28px;
  border-radius: 8px;
}
#ws-menu-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
@media (max-width: 768px) {
  .ws-nav-links { display: none; }
  #ws-hamburger { display: flex; }
  /* Compactere navbar op mobile zodat sticky progress-bar er niet achter valt */
  .ws-nav-inner { padding: 10px 16px; }
  .ws-logo { font-size: 1.25rem; }
}

/* ===== HERO INTRO ===== */
.ws-hero {
  background: linear-gradient(135deg, var(--light) 0%, var(--teal-light) 60%, var(--light) 100%);
  padding: 52px 20px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ws-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(14,165,160,0.10) 0%, transparent 55%),
              radial-gradient(circle at 10% 80%, rgba(15,43,70,0.04) 0%, transparent 45%);
}
.ws-hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.ws-hero-badge {
  display: inline-block;
  background: rgba(14,165,160,0.12);
  color: var(--teal-dark);
  border: 1px solid rgba(14,165,160,0.30);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.ws-hero h1 { color: var(--navy); margin-bottom: 14px; }
.ws-hero h1 span { color: var(--teal); }
.ws-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 28px;
}
.ws-hero-trust {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.ws-hero-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.85rem;
}
.ws-hero-trust-item i { color: var(--teal); }

/* ===== MAIN TOOL AREA ===== */
.ws-main {
  flex: 1;
  max-width: 760px;
  margin: -28px auto 60px;
  width: 100%;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

/* ===== PROGRESS BAR ===== */
.ws-progress-wrap {
  background: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 24px 32px 20px;
  border-bottom: 1.5px solid var(--border);
}
.ws-progress-steps {
  display: flex;
  align-items: center;
  gap: 0;
}
.ws-prog-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
}
.ws-prog-step::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--border);
  z-index: 0;
  transition: background 0.4s ease;
}
.ws-prog-step:last-child::after { display: none; }
.ws-prog-step.completed::after { background: var(--teal); }

.ws-prog-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
  transition: var(--trans);
  border: 2.5px solid var(--border);
}
.ws-prog-step.active .ws-prog-dot {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(14,165,160,0.18);
}
.ws-prog-step.completed .ws-prog-dot {
  background: var(--teal-light);
  color: var(--teal);
  border-color: var(--teal);
}
.ws-prog-step.completed .ws-prog-dot::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.78rem;
}
.ws-prog-step.completed .ws-prog-num { display: none; }

.ws-prog-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.3px;
  transition: color 0.3s;
  white-space: nowrap;
}
.ws-prog-step.active .ws-prog-label { color: var(--teal-dark); }
.ws-prog-step.completed .ws-prog-label { color: var(--success); }

/* ===== CARD BODY ===== */
.ws-card {
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 36px 40px 40px;
  box-shadow: var(--shadow-lg);
}

/* ===== STEP PANELS ===== */
.ws-step { display: none; }
.ws-step.active {
  display: block;
  animation: fadeSlide 0.35s ease both;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ws-step-header { margin-bottom: 28px; }
.ws-step-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(14,165,160,0.08);
  border: 1px solid rgba(14,165,160,0.20);
  border-radius: 50px;
  padding: 3px 12px;
  margin-bottom: 8px;
}
.ws-step-header h2 { color: var(--navy); margin-bottom: 6px; font-size: 1.5rem; }
.ws-step-header p  { color: var(--muted); font-size: 0.92rem; }
.ws-authority-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 10px;
  padding: 9px 13px;
  background: rgba(15,43,70,0.04);
  border-left: 3px solid var(--teal);
  border-radius: 0 6px 6px 0;
}
.ws-auth-item {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.ws-auth-item i { color: var(--teal); font-size: 0.72rem; }
.ws-auth-sep { color: var(--border); font-size: 0.85rem; }
@media (max-width: 600px) { .ws-auth-sep { display: none; } }

/* ===== FORM GROUPS ===== */
.ws-form-group { margin-bottom: 20px; }
.ws-form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.ws-form-group label span { color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.ws-form-group input,
.ws-form-group select {
  width: 100%;
  padding: 15px 16px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-family: 'Inter', sans-serif;
  font-size: 0.96rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.ws-form-group input:focus,
.ws-form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,165,160,0.12);
}
.ws-form-group input.error,
.ws-form-group select.error {
  border-color: var(--error);
}
.ws-field-error {
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 4px;
  display: none;
}
.ws-field-error.show { display: block; }

.ws-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Input with unit suffix */
.ws-input-wrap {
  position: relative;
}
.ws-input-wrap input {
  padding-right: 50px;
}
.ws-input-unit {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
  pointer-events: none;
}

/* Select arrow */
.ws-select-wrap { position: relative; }
.ws-select-wrap::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.75rem;
  pointer-events: none;
}
.ws-select-wrap select { padding-right: 36px; }

/* ===== OPTION CARD BUTTONS ===== */
.ws-option-grid {
  display: grid;
  gap: 10px;
}
.ws-option-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ws-option-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ws-option-grid--5 { grid-template-columns: repeat(5, 1fr); }

.ws-opt-btn {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 16px 10px;
  min-height: 44px;
  background: var(--white);
  cursor: pointer;
  text-align: center;
  transition: var(--trans);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  line-height: 1.3;
}
.ws-opt-btn i {
  font-size: 1.4rem;
  color: var(--teal);
  transition: color 0.2s;
}
.ws-opt-btn:hover {
  border-color: var(--teal);
  background: rgba(14,165,160,0.05);
  transform: translateY(-2px);
}
.ws-opt-btn.selected {
  border-color: var(--teal);
  background: var(--teal-light);
  color: var(--navy-dark);
  box-shadow: 0 2px 10px rgba(14,165,160,0.2);
}
.ws-opt-btn.selected i { color: var(--teal-dark); }

/* Compact toggle row */
.ws-toggle-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ws-toggle-btn {
  flex: 1;
  min-width: 100px;
  border: 2px solid var(--border);
  border-radius: 9px;
  padding: 13px 16px;
  min-height: 44px;
  background: var(--white);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  transition: var(--trans);
}
.ws-toggle-btn:hover { border-color: var(--teal); background: rgba(14,165,160,0.05); }
.ws-toggle-btn.selected {
  border-color: var(--teal);
  background: var(--teal-light);
  color: var(--navy-dark);
}

/* ===== EPC SELECTOR ===== */
.ws-epc-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.ws-epc-btn {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 12px 4px;
  min-height: 48px;
  background: var(--white);
  cursor: pointer;
  text-align: center;
  transition: var(--trans);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy);
}
.ws-epc-btn[data-epc="A+"] { border-color: #00A651; color: #00A651; }
.ws-epc-btn[data-epc="A"]  { border-color: #57B947; color: #57B947; }
.ws-epc-btn[data-epc="B"]  { border-color: #8DC63F; color: #8DC63F; }
.ws-epc-btn[data-epc="C"]  { border-color: #F7EC13; color: #6B5D00; }
.ws-epc-btn[data-epc="D"]  { border-color: #F9A11B; color: #7A4D00; }
.ws-epc-btn[data-epc="E"]  { border-color: #F06723; color: #7A3400; }
.ws-epc-btn[data-epc="F"]  { border-color: #ED1C24; color: #7A0000; }
.ws-epc-btn:hover { transform: translateY(-2px); box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
.ws-epc-btn.selected {
  color: white !important;
}
.ws-epc-btn[data-epc="A+"].selected { background: #00A651; border-color: #00A651; }
.ws-epc-btn[data-epc="A"].selected  { background: #57B947; border-color: #57B947; }
.ws-epc-btn[data-epc="B"].selected  { background: #8DC63F; border-color: #8DC63F; }
.ws-epc-btn[data-epc="C"].selected  { background: #F7EC13; border-color: #F7EC13; color: #6B5D00 !important; }
.ws-epc-btn[data-epc="D"].selected  { background: #F9A11B; border-color: #F9A11B; }
.ws-epc-btn[data-epc="E"].selected  { background: #F06723; border-color: #F06723; }
.ws-epc-btn[data-epc="F"].selected  { background: #ED1C24; border-color: #ED1C24; }


/* ===== ADDRESS AUTOCOMPLETE ===== */
.ws-address-wrap { position: relative; z-index: 100; margin-bottom: 0; }
.ws-address-input-wrap { position: relative; }
.ws-address-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.85rem;
  pointer-events: none;
}
.ws-address-input-wrap input {
  padding-left: 40px !important;
  width: 100%;
  padding-top: 13px;
  padding-bottom: 13px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-family: 'Inter', sans-serif;
  font-size: 0.96rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.ws-address-input-wrap input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,165,160,0.12);
}
.ws-address-input-wrap input.error { border-color: var(--error); }
.ws-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--white);
  border: 1.5px solid var(--teal);
  border-top: none;
  border-radius: 0 0 9px 9px;
  list-style: none;
  z-index: 9999;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(15,43,70,0.18);
}
.ws-suggestions.open { display: block; }
.ws-suggestions li {
  padding: 11px 16px;
  font-size: 0.88rem;
  color: var(--navy);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}
.ws-suggestions li:last-child { border-bottom: none; }
.ws-suggestions li:hover,
.ws-suggestions li.active { background: rgba(14,165,160,0.1); color: var(--navy-dark); }
.ws-suggestions li span { color: var(--muted); font-size: 0.8rem; }

/* ===== LEAFLET MAP ===== */
#ws-map {
  height: 280px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1.5px solid var(--border);
  /* Sta vertical page-scroll toe ook tijdens touch-drag op kaart (mobile) */
  touch-action: pan-y;
}

/* ===== CONDITIONAL FIELD ===== */
.ws-conditional { display: none; }
.ws-conditional.show { display: block; }

/* ===== STEP NAV ===== */
.ws-step-nav {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  align-items: center;
}
.ws-btn-back {
  padding: 13px 22px;
  background: var(--light);
  color: var(--navy);
  border: 2px solid var(--border);
  border-radius: 9px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.92rem;
  transition: var(--trans);
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.ws-btn-back:hover { border-color: var(--navy); background: #e8f0f8; }

.ws-btn-next {
  flex: 1;
  padding: 15px 24px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 9px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--trans);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ws-btn-next:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14,165,160,0.35);
}
.ws-btn-next:active { transform: translateY(0); }

/* ===== STEP 3: RESULT ===== */
.ws-result-card {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  border-radius: 14px;
  padding: 36px;
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.ws-result-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(245,158,11,0.15), transparent 70%);
  border-radius: 50%;
}
.ws-result-tag {
  display: inline-block;
  background: rgba(14,165,160,0.2);
  color: var(--teal-light);
  border: 1px solid rgba(14,165,160,0.3);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.ws-result-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.ws-result-value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--amber);
  line-height: 1.1;
  margin-bottom: 6px;
}
.ws-result-range {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.ws-result-disclaimer {
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
  font-style: italic;
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
}

.ws-result-factors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.ws-factor-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.84rem;
}
.ws-factor-icon { font-size: 1.1rem; color: var(--teal); flex-shrink: 0; }
.ws-factor-label { color: var(--muted); font-size: 0.78rem; display: block; }
.ws-factor-value { color: var(--navy); font-weight: 700; font-size: 0.88rem; }

.ws-result-upsell {
  background: rgba(14,165,160,0.08);
  border: 1.5px solid rgba(14,165,160,0.25);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ws-result-upsell i { color: var(--teal); font-size: 1.3rem; margin-top: 2px; flex-shrink: 0; }
.ws-result-upsell h3 { color: var(--navy); font-size: 1rem; margin-bottom: 4px; }
.ws-result-upsell p { color: var(--muted); font-size: 0.88rem; }

.ws-markt-teaser {
  background: #fffaf0;
  border: 1.5px solid #f5c97a;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ws-markt-teaser > i { color: #c88a00; font-size: 1.15rem; margin-top: 2px; flex-shrink: 0; }
.ws-mt-label { color: var(--navy); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.ws-mt-val { color: #3a5a7a; font-size: 0.92rem; line-height: 1.45; }
.ws-mt-val strong { color: var(--navy); }
.ws-mt-src { color: #8a6a1a; font-size: 0.76rem; }
.ws-mt-pos { color: #0ea5a0; font-size: 0.85rem; font-weight: 600; margin-top: 4px; }

/* ===== STEP 4: LEAD FORM ===== */
.ws-lead-header { margin-bottom: 24px; }
.ws-lead-header h2 { color: var(--navy); margin-bottom: 6px; }
.ws-lead-header p  { color: var(--muted); font-size: 0.92rem; }

/* Makelaar opt-in */
.ws-makelaar-optin {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  margin: 16px 0;
  background: linear-gradient(135deg, rgba(14,165,160,0.06), rgba(14,165,160,0.12));
  border: 1.5px solid rgba(14,165,160,0.3);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--navy);
  line-height: 1.5;
  transition: border-color 0.2s;
}
.ws-makelaar-optin:hover { border-color: var(--teal); }
.ws-makelaar-optin input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--teal);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.ws-privacy {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}
.ws-privacy a { color: var(--teal-dark); text-decoration: underline; cursor: pointer; }
.ws-voorwaarden {
  margin-top: 8px;
  padding: 14px 16px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.65;
}
.ws-voorwaarden p { font-size: 0.78rem; color: var(--muted); }

/* Honeypot */
.ws-honeypot { display: none !important; position: absolute; left: -9999px; }

/* ===== SUCCESS STATE ===== */
.ws-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
  animation: fadeSlide 0.4s ease;
}
.ws-success.show { display: block; }
.ws-success-icon {
  width: 72px; height: 72px;
  background: rgba(46,158,107,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--success);
}
.ws-success h2 { color: var(--navy); margin-bottom: 10px; }
.ws-success p  { color: var(--muted); margin-bottom: 28px; }

/* ===== BUTTONS ===== */
.ws-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 9px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--trans);
  text-decoration: none;
}
.ws-btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14,165,160,0.35);
}
.ws-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
  border-radius: 9px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--trans);
  text-decoration: none;
}
.ws-btn-outline:hover { border-color: var(--navy); background: var(--light); }

.ws-btn-full { width: 100%; justify-content: center; }

/* ===== SUBMIT LOADING STATE ===== */
.ws-btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 9px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--trans);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.ws-btn-submit:hover { background: var(--teal-dark); transform: translateY(-1px); }
.ws-btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.ws-btn-submit .spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.ws-btn-submit.loading .spinner { display: block; }
.ws-btn-submit.loading .btn-text { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== CTA BLOCKS (step 4) ===== */
.ws-cta-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--light);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: 10px;
  padding: 16px 18px;
}
.ws-cta-icon {
  font-size: 1.5rem;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}
.ws-cta-block strong { color: var(--navy); font-size: 0.95rem; display: block; margin-bottom: 2px; }
.ws-cta-block p { color: var(--muted); font-size: 0.83rem; margin: 0; }
.ws-cta-block > div { flex: 1; }
.ws-btn-cta-small {
  flex-shrink: 0;
  align-self: center;
  padding: 10px 18px;
  background: var(--teal);
  color: var(--white) !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.ws-btn-cta-small:hover { background: var(--teal-dark); }
@media (max-width: 480px) {
  .ws-cta-block { flex-wrap: wrap; }
  .ws-btn-cta-small { width: 100%; text-align: center; }
}

/* ===== FAKE LOADING STATE ===== */
.ws-loading-state {
  text-align: center;
  padding: 40px 0 20px;
}
.ws-loading-state h2 {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.ws-loading-spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: wsSpinner 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes wsSpinner {
  to { transform: rotate(360deg); }
}
.ws-loading-items {
  text-align: left;
  max-width: 320px;
  margin: 0 auto;
}
.ws-loading-item {
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.3s;
}
.ws-loading-item i {
  margin-right: 8px;
  width: 18px;
  text-align: center;
}
.ws-loading-item.done {
  color: var(--success);
}
.ws-loading-item.done i::before {
  content: "\f00c";
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  animation: none;
}

/* ===== FOOTER ===== */
.ws-footer {
  background: var(--navy-dark);
  padding: 24px 20px;
  text-align: center;
}
.ws-footer p {
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
}
.ws-footer a { color: rgba(255,255,255,0.6); }
.ws-footer a:hover { color: var(--teal); }
.molalabs-footer {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff !important;
  text-decoration: none;
  margin-bottom: 10px;
  transition: opacity 0.2s;
  text-align: left;
}
.molalabs-footer span { color: var(--teal) !important; }
.molalabs-footer:hover { opacity: 0.75; }

/* ===== RESPONSIVE — APP-MODE MOBILE ===== */
@media (max-width: 768px) {
  /* Hero compact */
  .ws-hero { padding: 28px 20px 40px; }
  .ws-hero h1 { font-size: 1.6rem; }
  .ws-hero p { font-size: 0.92rem; margin-bottom: 20px; }
  .ws-hero-badge { font-size: 0.7rem; padding: 5px 14px; margin-bottom: 12px; }

  /* Progress bar — compact, NIET sticky op mobile (verspilt verticale ruimte en
     veroorzaakt overlap met sticky navbar). Scrollt gewoon mee. */
  .ws-progress-wrap {
    position: static;
    padding: 12px 16px 10px;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(15,43,70,0.06);
  }
  .ws-prog-label { font-size: 0; }
  .ws-prog-dot { width: 32px; height: 32px; font-size: 0.78rem; }

  /* Card — no border radius, full width, seamless.
     GEEN min-height met dvh/vh — dat veroorzaakte scroll-bugs op iOS Safari
     wanneer adresbalk toggles. De content bepaalt natuurlijk de hoogte. */
  .ws-main { margin-top: -20px; padding: 0; }
  .ws-card {
    border-radius: 0;
    box-shadow: none;
    padding: 20px 20px 28px;
  }

  /* Step header compact */
  .ws-step-header { margin-bottom: 20px; }
  .ws-step-tag { font-size: 0.72rem; padding: 4px 10px; }
  .ws-step-header h2 { font-size: 1.25rem; }
  .ws-step-header p { font-size: 0.88rem; }

  /* Authority bar hide */
  .ws-authority-bar { display: none; }

  /* Forms stacked */
  .ws-form-row { grid-template-columns: 1fr; gap: 0; }

  /* Option grids — compacter op mobile */
  .ws-option-grid { gap: 8px; }
  .ws-option-grid--5 { grid-template-columns: repeat(3, 1fr); }
  .ws-option-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .ws-opt-btn { padding: 10px 6px; font-size: 0.78rem; gap: 4px; min-height: 64px; }
  .ws-opt-btn i { font-size: 1.1rem; }

  /* Form groups tighter */
  .ws-form-group { margin-bottom: 16px; }
  .ws-form-group label { font-size: 0.88rem; margin-bottom: 6px; }
  .ws-form-group input[type="text"],
  .ws-form-group input[type="number"],
  .ws-form-group input[type="tel"],
  .ws-form-group input[type="email"],
  .ws-form-group select { min-height: 48px; font-size: 0.95rem; }

  /* EPC grid */
  .ws-epc-grid { grid-template-columns: repeat(4, 1fr); }
  .ws-epc-btn { min-height: 46px; font-size: 0.85rem; }

  /* Toggle buttons */
  .ws-toggle-btn { padding: 11px 12px; font-size: 0.84rem; min-height: 42px; }

  /* Step-nav in-flow (NIET fixed) — fixed bottom-bar zorgde voor overlap met
     laatste form-fields. Nu is de knop gewoon het laatste element in de step,
     gebruiker scrollt ernaartoe. Veel betrouwbaarder op mobile. */
  .ws-step-nav {
    display: flex;
    gap: 10px;
    margin-top: 28px;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  .ws-step-nav .ws-btn-next,
  .ws-step-nav .ws-btn-back {
    flex: 1;
  }
  /* "Terug"-knop compacter zodat "Volgende" de ruimte krijgt */
  .ws-step-nav .ws-btn-back {
    flex: 0 0 auto;
    min-width: 88px;
  }
  .ws-btn-next { min-height: 52px; font-size: 0.98rem; border-radius: 10px; }
  .ws-btn-back { min-height: 52px; font-size: 0.95rem; border-radius: 10px; }

  .ws-btn-submit {
    width: 100%;
    min-height: 56px;
    font-size: 1rem;
    border-radius: 10px;
  }

  /* Result factors */
  .ws-result-factors { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ws-factor-pill { padding: 10px 12px; font-size: 0.8rem; }

  /* Result card */
  .ws-result-card { padding: 24px 20px; border-radius: 14px; }
  .ws-result-value { font-size: 1.8rem; }

  /* CTA blocks */
  .ws-cta-block { flex-wrap: wrap; padding: 14px 16px; }
  .ws-btn-cta-small { width: 100%; text-align: center; margin-top: 8px; }

  /* Map responsive — kleiner op mobile, meer ruimte voor formveld */
  #ws-map { border-radius: 10px; height: 220px; }

  /* Trust upsell compact */
  .ws-result-upsell { padding: 14px 16px; }
  .ws-result-upsell i { font-size: 1.1rem; }
  .ws-result-upsell h3 { font-size: 0.92rem; }
  .ws-result-upsell p { font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .ws-hero { padding: 22px 16px 32px; }
  .ws-hero h1 { font-size: 1.4rem; }
  .ws-hero-trust { gap: 10px; }
  .ws-hero-trust-item { font-size: 0.75rem; }

  .ws-card { padding: 16px 16px 24px; }
  .ws-progress-wrap { padding: 12px 12px 10px; }
  .ws-prog-dot { width: 28px; height: 28px; font-size: 0.72rem; }

  .ws-option-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .ws-option-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .ws-opt-btn { min-height: 58px; font-size: 0.76rem; }
  .ws-opt-btn i { font-size: 1rem; }
  .ws-epc-grid { grid-template-columns: repeat(4, 1fr); }
  .ws-epc-btn { min-height: 42px; font-size: 0.82rem; }

  .ws-toggle-btn { padding: 10px 10px; font-size: 0.8rem; min-width: 80px; }
  #ws-map { height: 190px; }

  .ws-result-card { padding: 20px 16px; }
  .ws-result-value { font-size: 1.6rem; }
  .ws-result-factors { grid-template-columns: 1fr; }

  .ws-step-nav { padding: 10px 16px; }
}

/* ===== MOLALABS BADGE ===== */
.molalabs-badge {
  display: inline-flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 4px 11px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  margin-left: 10px;
}
.molalabs-badge:hover { color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.45); }
#ws-navbar.scrolled .molalabs-badge { color: rgba(10,36,66,0.4); border-color: rgba(10,36,66,0.18); }
#ws-navbar.scrolled .molalabs-badge:hover { color: var(--navy); border-color: var(--navy); }
@media (max-width: 768px) { .molalabs-badge { display: none; } }