:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --line: #e5e7eb;
  --text: #111827;
  --muted: #64748b;
  --orange: #f97316;
  --plate-blue: #003380;
  --plate-yellow: #ffcc00;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
}

h1, h2, h3, .font-display, .plate-input {
  font-family: 'Space Grotesk', sans-serif;
}

.topbar {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-logo {
  width: 170px;
  height: 90px;
  object-fit: contain;
  border-radius: 16px;
}

.nav-btn {
  border: 1px solid transparent;
  color: #334155;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 14px;
  transition: .15s ease;
}

.nav-btn:hover,
.nav-btn.active {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(15,23,42,.08);
}

.accent-btn {
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  border-radius: 14px;
  transition: .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.accent-btn:hover { transform: translateY(-1px); filter: brightness(.98); }

.ghost-btn {
  background: #fff;
  border: 1px solid var(--line);
  color: #334155;
  font-weight: 800;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.plate-wrap {
  position: relative;
  max-width: 590px;
}

.plate-wrap::before {
  content: 'NL';
  position: absolute;
  left: 3px;
  top: 3px;
  bottom: 3px;
  width: 45px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  background: var(--plate-blue);
  color: #fff;
  border-right: 2px solid var(--plate-yellow);
  border-radius: 10px 0 0 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  z-index: 2;
  pointer-events: none;
}

.plate-input {
  width: 100%;
  background: var(--plate-blue);
  color: var(--plate-yellow);
  border: 3px solid var(--plate-yellow);
  letter-spacing: .08em;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  border-radius: 14px;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.18), 0 16px 35px rgba(0,0,0,.14);
  outline: none;
}

.plate-input::placeholder { color: rgba(255,204,0,.55); }

.char-count {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,204,0,.78);
  font-size: 12px;
  font-weight: 900;
  pointer-events: none;
}

.status-badge {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(15,23,42,.05);
}

.section-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15,23,42,.05);
}

.section-head {
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
  padding: 14px 16px;
  font-weight: 900;
  color: #111827;
}

.section-head i { color: var(--orange); margin-right: 9px; }

.section-body { padding: 8px 16px 14px; }

.data-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.data-row:last-child { border-bottom: 0; }
.data-label { color: #64748b; }
.data-value { color: #111827; font-weight: 800; text-align: right; }

.search-table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

.search-table th, .search-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f7;
  white-space: nowrap;
  vertical-align: middle;
}

.search-table th {
  color: #c2410c;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: #fff7ed;
}

.search-table td { color: #111827; font-size: 15px; }
.search-table td:first-child { font-weight: 900; color: #0f172a; }
.search-table tr:hover td { background: #fff7ed; }
.search-card { overflow-x: auto; border-radius: 22px; }
.search-hint { color: #64748b; font-size: 13px; margin-top: 10px; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.45);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(15,23,42,.25);
  padding: 22px;
}

.hidden-state { display: none !important; }

input, select, textarea {
  background: #fff;
  border: 1px solid #dbe1ea;
  color: #111827;
  border-radius: 14px;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249,115,22,.12);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-message {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
}

.form-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.form-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@media print {
  .topbar, .no-print, footer { display: none !important; }
  body { background: #fff !important; color: #111 !important; }
  .app-card, .section-card { box-shadow: none !important; border: 1px solid #d1d5db !important; }
}

@media (max-width: 640px) {
  .site-logo {
  width: 170px;
  height: 90px;
  object-fit: contain;
  border-radius: 16px;
}
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Laatste fixes */
.search-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
  width: 100% !important;
}
.search-table th,
.search-table td {
  padding: 14px 16px !important;
  border-bottom: 1px solid #eef2f7 !important;
  vertical-align: middle !important;
  text-align: left !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.search-table th {
  color: #c2410c !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  background: #fff7ed !important;
  font-weight: 900 !important;
}
.search-table td:first-child {
  font-weight: 900 !important;
  color: #0f172a !important;
}
.search-table tr:hover td {
  background: #fff7ed !important;
}
.search-card {
  overflow-x: auto !important;
  border-radius: 22px !important;
}
.search-hint {
  color: #64748b !important;
  font-size: 13px !important;
  margin-top: 10px !important;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
.form-message {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
}
.form-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}
.form-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}




/* ===============================
   LUXE RDW-STIJL PDF RAPPORT
   =============================== */
.pdf-template {
  position: fixed;
  left: -100000px;
  top: 0;
  width: 794px;
  background: #eef2f7;
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.35;
}

.pdf-page {
  width: 794px;
  min-height: 1123px;
  background: #eef2f7;
  padding: 0 34px 36px;
}

.pdf-hero {
  margin: 0 -34px 24px;
  padding: 26px 34px 24px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(249,115,22,.32), transparent 34%),
    linear-gradient(135deg, #0c1222 0%, #111827 64%, #1e293b 100%);
  border-bottom: 7px solid #f97316;
}

.pdf-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.pdf-logo-box {
  background: #fff;
  border-radius: 16px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 198px;
  height: 86px;
}

.pdf-logo-box img {
  width: 174px;
  max-height: 68px;
  object-fit: contain;
}

.pdf-report-chip {
  color: #fed7aa;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 14px;
}

.pdf-title {
  font-size: 34px;
  font-weight: 900;
  margin: 5px 0 8px;
}

.pdf-subtitle {
  color: #cbd5e1;
  font-size: 14px;
  margin: 0;
  max-width: 520px;
}

.pdf-plate-wrap {
  text-align: right;
}

.pdf-plate-label {
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.pdf-plate {
  display: inline-flex;
  overflow: hidden;
  background: #ffcc00;
  border: 3px solid #003380;
  border-radius: 12px;
  min-width: 205px;
  height: 54px;
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
}

.pdf-plate-nl {
  width: 38px;
  background: #003380;
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  padding-bottom: 7px;
}

.pdf-plate-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #003380;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 0 14px;
}

.pdf-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  margin-bottom: 18px;
}

.pdf-summary-card {
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  padding: 13px 14px;
  min-height: 74px;
}

.pdf-summary-label {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 7px;
}

.pdf-summary-value {
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

.pdf-status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  margin-bottom: 18px;
}

.pdf-status-card {
  background: #fff;
  border: 1px solid #dbe3ef;
  border-left: 5px solid #f97316;
  border-radius: 15px;
  padding: 12px 13px;
}

.pdf-status-card.good { border-left-color: #22c55e; }
.pdf-status-card.warn { border-left-color: #f59e0b; }
.pdf-status-card.bad { border-left-color: #ef4444; }

.pdf-status-title {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pdf-status-text {
  font-size: 13px;
  color: #111827;
  font-weight: 900;
}

.pdf-section {
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 17px;
  overflow: hidden;
  margin-bottom: 14px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.pdf-section-head {
  background: #f8fafc;
  border-bottom: 1px solid #dbe3ef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 15px;
}

.pdf-section-title {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
}

.pdf-section-code {
  font-size: 10px;
  color: #f97316;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pdf-table {
  width: 100%;
  border-collapse: collapse;
}

.pdf-table tr:nth-child(even) td {
  background: #fbfdff;
}

.pdf-table td {
  padding: 9px 15px;
  border-bottom: 1px solid #edf2f7;
  font-size: 11.5px;
  vertical-align: top;
}

.pdf-table tr:last-child td {
  border-bottom: none;
}

.pdf-table td:first-child {
  width: 43%;
  color: #64748b;
  font-weight: 700;
}

.pdf-table td:last-child {
  width: 57%;
  color: #0f172a;
  font-weight: 900;
  text-align: right;
}

.pdf-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pdf-wide {
  grid-column: 1 / -1;
}

.pdf-note {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c2d12;
  border-radius: 16px;
  padding: 13px 15px;
  font-size: 11.5px;
  line-height: 1.55;
  margin-top: 3px;
}

.pdf-footer {
  display: flex;
  justify-content: space-between;
  color: #64748b;
  font-size: 10.5px;
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid #dbe3ef;
}

@media print {
  .pdf-template {
    position: static;
    left: auto;
    width: 100%;
  }
}





/* E-mail popup zonder JavaScript */
.email-popup-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.email-popup-layer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, .52);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.email-popup-toggle:checked + .email-popup-layer {
  display: flex;
}

.email-popup-card {
  width: 100%;
  max-width: 540px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .28);
  padding: 24px;
}

.cursor-pointer {
  cursor: pointer;
}

/* Logo fix */
.site-logo {
  width: 170px !important;
  height: 90px !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* Final header/logo cleanup */
.site-logo {
  width: 190px !important;
  height: 95px !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
}
.topbar a[href="/"] {
  text-decoration: none !important;
}

.footer-version {
  margin-left: auto;
  font-size: 12px;
  opacity: .75;
  white-space: nowrap;
  text-align: right;
}

/* Layout restore v1.2.5 */
html, body {
  min-height: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f4f7fb;
  color: #0f172a;
  font-family: "DM Sans", Arial, sans-serif;
}
.topbar {
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 20;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  min-width: 190px;
}
.site-logo {
  width: 180px !important;
  height: 82px !important;
  object-fit: contain !important;
  object-position: left center !important;
  display: block !important;
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: #334155;
  font-weight: 900;
  text-decoration: none;
}
.nav-btn:hover,
.nav-btn.active {
  color: #ea580c;
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px #fed7aa;
}
.app-card, .section-card, .info-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}
.accent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: #f97316;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  color: #334155;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.plate-wrap {
  max-width: 520px;
}
.plate-input {
  width: 100%;
  border: 3px solid #ffcc00;
  border-radius: 14px;
  background: #003380;
  color: #ffcc00;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
}
.footer-version {
  margin-left: auto;
  font-size: 12px;
  opacity: .75;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .topbar .max-w-\[1500px\] {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-logo {
    width: 150px !important;
    height: 70px !important;
  }
}

/* Website logo: originele kleuren, CHECK zwart */
.site-logo {
  width: 180px !important;
  height: 82px !important;
  object-fit: contain !important;
  object-position: left center !important;
  filter: none !important;
}


/* Mail success/error popup */
.mail-status-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .48);
  animation: mailFadeIn .18s ease-out;
}

.mail-status-popup.is-hiding {
  animation: mailFadeOut .35s ease-in forwards;
}

.mail-status-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .25);
  padding: 30px;
  text-align: center;
}

.mail-status-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 32px;
}

.mail-status-icon.success {
  background: #dcfce7;
  color: #16a34a;
}

.mail-status-icon.error {
  background: #fee2e2;
  color: #dc2626;
}

.mail-status-card h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
}

.mail-status-card p {
  margin: 0 0 22px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.5;
}

@keyframes mailFadeIn {
  from { opacity: 0; transform: scale(.98); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes mailFadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(.98); }
}

/* Mail popup final behavior */
.mail-status-popup {
  display: flex !important;
}
.mail-status-popup.is-hiding {
  opacity: 0;
  transition: opacity .35s ease;
}
