/* Mulish — lokaal gehost (geen Google Fonts verbinding) */
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/mulish-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/mulish-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Roadsoft Brand Colors */
:root {
  --blue: #296CBD;
  --navy: #15293D;
  --bg: #ECF2F7;
  --white: #ffffff;
  --gray: #6B7B8D;
  --border: #D0DEE9;
  --error: #D94F4F;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Muli', 'Mulish', sans-serif;
  background: radial-gradient(ellipse at center, #ffffff 0%, #b5d5fb 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Layout */
.container {
  width: 100%;
  max-width: 560px;
}

.logo {
  text-align: center;
  margin-bottom: 32px;
}

.logo span {
  font-size: 24px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

/* Card */
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(21, 41, 61, 0.08);
}

/* Progress bar */
.progress-wrap {
  margin-bottom: 32px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 8px;
}

.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 99px;
  transition: width 0.4s ease;
}

/* ── Full-screen intro overlay ── */
.intro-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  z-index: 200;
  background: white;
}

.intro-overlay-left {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 56px 56px 64px;
  background: white;
  overflow-y: auto;
}

.intro-overlay-logo {
  margin-bottom: 40px;
}

.intro-overlay-right {
  flex: 0 0 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.intro-hero-img {
  width: 70%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.intro-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  margin-bottom: 12px !important;
}

.intro-headline {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.intro-sub {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 28px !important;
  max-width: 440px;
}

.intro-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.intro-bullets li {
  font-size: 15px;
  color: var(--navy);
  padding: 8px 0 8px 24px;
  position: relative;
  border-bottom: 1px solid #EEF3F8;
}

.intro-bullets li:last-child {
  border-bottom: none;
}

.intro-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--blue);
  border-radius: 50%;
}

.intro-cta {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 16px;
  padding: 16px 28px;
}

.intro-note {
  font-size: 13px;
  color: #9AABBF;
  text-align: center;
  margin-top: 12px !important;
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  .intro-overlay { flex-direction: column; }
  .intro-overlay-left { flex: 1; padding: 40px 28px; }
  .intro-overlay-right { display: none; }
  .intro-headline { font-size: 26px; }
}

/* Intro (legacy, niet meer gebruikt) */
.intro-screen {
  display: none;
  animation: fadeIn 0.3s ease;
}

.intro-screen.active {
  display: block;
}

/* Intro layout — twee kolommen */
.intro-layout {
  display: flex;
  gap: 40px;
  align-items: center;
}

.intro-content {
  flex: 1;
  min-width: 0;
}

.intro-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  margin-bottom: 12px !important;
}

.intro-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 14px;
}

.intro-sub {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 20px !important;
}

.intro-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.intro-bullets li {
  font-size: 14px;
  color: var(--navy);
  padding: 6px 0 6px 22px;
  position: relative;
  border-bottom: 1px solid #EEF3F8;
}

.intro-bullets li:last-child {
  border-bottom: none;
}

.intro-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--blue);
  border-radius: 50%;
}

.intro-cta {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 16px;
}

.intro-note {
  font-size: 12px;
  color: #9AABBF;
  text-align: center;
  margin-top: 10px !important;
  margin-bottom: 0 !important;
}

/* Intro visueel (rapport mock) */
.intro-visual {
  flex: 0 0 220px;
}

.intro-rapport-mock {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(41,108,189,0.15);
  overflow: hidden;
  font-size: 11px;
}

.mock-header {
  background: #296CBD;
  padding: 16px 14px;
  color: white;
}

.mock-logo-bar {
  width: 70px;
  height: 8px;
  background: rgba(255,255,255,0.4);
  border-radius: 4px;
  margin-bottom: 10px;
}

.mock-title {
  font-weight: 800;
  font-size: 10px;
  margin-bottom: 4px;
  line-height: 1.3;
}

.mock-subtitle {
  font-size: 9px;
  opacity: 0.75;
}

.mock-body {
  padding: 14px;
}

.mock-label {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #296CBD;
  margin-bottom: 4px;
}

.mock-section-title {
  font-weight: 800;
  font-size: 10px;
  color: #15293D;
  margin-bottom: 8px;
}

.mock-lines { display: flex; flex-direction: column; gap: 4px; }

.mock-line {
  height: 6px;
  background: #ECF2F7;
  border-radius: 3px;
}

.mock-line.full  { width: 100%; }
.mock-line.long  { width: 82%; }
.mock-line.medium { width: 64%; }

.mock-steps { display: flex; flex-direction: column; gap: 4px; }

.mock-step {
  background: #F8FAFC;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 700;
  color: #296CBD;
}

/* Responsive: onder 600px stapelen */
@media (max-width: 600px) {
  .intro-layout { flex-direction: column; }
  .intro-visual { display: none; }
  .intro-content h2 { font-size: 22px; }
}

/* Step */
.step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.step h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.3;
}

.step p {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Checkboxes (landen) */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.checkbox-item:hover {
  border-color: var(--blue);
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-item.checked {
  border-color: var(--blue);
  background: #EBF3FB;
}

.checkbox-item .flag {
  font-size: 20px;
}

.checkbox-item .land-naam {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

/* Radio group (TMM + vervoer type) */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.radio-item:hover {
  border-color: var(--blue);
}

.radio-item input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  cursor: pointer;
  flex-shrink: 0;
}

.radio-item.checked {
  border-color: var(--blue);
  background: #EBF3FB;
}

.radio-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.radio-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.radio-sub {
  font-size: 13px;
  color: var(--gray);
}

/* Dropdown */
select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7B8D' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  margin-bottom: 28px;
  transition: border-color 0.2s;
}

select:focus {
  outline: none;
  border-color: var(--blue);
}

/* Text input */
input[type="text"],
input[type="email"],
input[type="number"] {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 8px;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus {
  outline: none;
  border-color: var(--blue);
}

input.error {
  border-color: var(--error);
}

.error-msg {
  font-size: 13px;
  color: var(--error);
  margin-bottom: 20px;
  display: none;
}

.error-msg.visible {
  display: block;
}

/* Button */
.btn {
  width: 100%;
  padding: 15px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover {
  background: #1f54a0;
}

.btn:active {
  transform: scale(0.99);
}

.btn:disabled {
  background: var(--border);
  color: var(--gray);
  cursor: not-allowed;
  transform: none;
}

/* Loading screen */
.loading-screen {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.loading-screen.active {
  display: block;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 24px;
}

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

.loading-screen h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.loading-screen p {
  font-size: 15px;
  color: var(--gray);
}

/* Preview screen */
.preview-screen {
  display: none;
}

.preview-screen.active {
  display: block;
}

.preview-header {
  margin-top: 40px;
  margin-bottom: 24px;
}

.preview-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.preview-header p {
  font-size: 15px;
  color: var(--gray);
}

.rapport-preview {
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 28px;
}

.rapport-section {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.rapport-section:last-child {
  border-bottom: none;
}

.rapport-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}

.rapport-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.rapport-section .preview-text {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.5;
}

.blur-wrap {
  position: relative;
}

.blur-content {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.5;
}

.blur-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 20%, var(--white) 80%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
}

.blur-overlay span {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

/* Email gate */
.email-gate {
  background: var(--bg);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 0;
}

.email-gate h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.email-gate p {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.5;
}

.email-gate input[type="email"] {
  margin-bottom: 8px;
}

/* Thank you screen */
.thankyou-screen {
  display: none;
  text-align: center;
  padding: 16px 0;
}

.thankyou-screen.active {
  display: block;
}

.checkmark {
  width: 64px;
  height: 64px;
  background: #E6F4EA;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 28px;
}

.thankyou-screen h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}

.thankyou-screen p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
  max-width: 360px;
  margin: 0 auto;
}

/* Voorbeeld rapport stijlen */
.voorbeeld-conclusie {
  background: #FEF0F0;
  border-left: 4px solid #E74C3C;
  color: #C0392B;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 14px;
}

.voorbeeld-stap {
  background: #F8FAFC;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 8px;
}

.voorbeeld-stap-nr {
  font-size: 11px;
  font-weight: 700;
  color: #296CBD;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.voorbeeld-stap-titel {
  font-size: 14px;
  font-weight: 700;
  color: #15293D;
  margin-bottom: 4px;
}

.voorbeeld-stap-desc {
  font-size: 13px;
  color: #6B7B8D;
  line-height: 1.5;
}

.voorbeeld-werkplaats {
  padding: 12px 0;
  border-bottom: 1px solid #D0DEE9;
}

.voorbeeld-werkplaats-last {
  border-bottom: none;
}

.voorbeeld-werkplaats-naam {
  font-size: 14px;
  font-weight: 700;
  color: #15293D;
  margin-bottom: 2px;
}

.voorbeeld-werkplaats-info {
  font-size: 13px;
  color: #6B7B8D;
}

/* Bedankscherm logo + spam */
.thankyou-logo {
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
}

.thankyou-spam {
  font-size: 13px;
  color: #9AABBF;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
}

/* Belgisch fallback */
.belgisch-fallback {
  display: none;
  text-align: center;
  padding: 16px 0;
}

.belgisch-fallback.active {
  display: block;
}

.belgisch-fallback h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.belgisch-fallback p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto 12px;
}

.belgisch-fallback .btn {
  margin-top: 12px;
}

/* Kenteken lookup */
.kenteken-lookup-box {
  background: #F8FAFC;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.kenteken-hint {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 12px !important;
}

.kenteken-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.kenteken-row input[type="text"] {
  flex: 1;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.btn-zoek {
  flex-shrink: 0;
  padding: 14px 18px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-zoek:hover {
  background: #1f54a0;
}

.btn-zoek:disabled {
  background: var(--border);
  color: var(--gray);
  cursor: not-allowed;
}

.kenteken-status {
  font-size: 13px;
  margin-top: 8px;
  min-height: 18px;
}

.kenteken-status.loading { color: var(--gray); }
.kenteken-status.success { color: #1E8449; font-weight: 600; }
.kenteken-status.error   { color: var(--error); }

.kenteken-scheidingslijn {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 12px !important;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--gray);
}
