/* ============================================================
   Portal das Finanças — v3
   Exacte kleuren/typografie van het echte portaal:
   #0084cc (blauw) · #04427b (navy) · #f8d633 (geel)
   #cdd1d3 (randen) · #f0f2f3 (pagina) · Roboto + Roboto Slab
   ============================================================ */

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/roboto-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto Slab";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/robotoslab-latin.woff2") format("woff2");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }

.wrap { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }

/* ---------- Bovenbalk ---------- */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 12.5px;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 40px; gap: 16px;
}
.topbar__date { opacity: .95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__actions { display: flex; gap: 8px; }

.btn-ghost-white,
.btn-white {
  display: inline-flex; align-items: center; justify-content: center;
  height: 27px; padding: 0 12px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
  border-radius: 2px; text-decoration: none;
  transition: background .15s, color .15s;
}
.btn-ghost-white { border: 1px solid rgba(255,255,255,.8); color: #fff; background: transparent; }
.btn-ghost-white:hover { background: rgba(255,255,255,.14); text-decoration: none; }
.btn-white { background: #fff; color: var(--navy); border: 1px solid #fff; }
.btn-white:hover { background: #e9f1f8; text-decoration: none; }

/* ---------- Header (95px, zoals het echte portaal) ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 1px 3px rgba(50,50,50,.08); position: relative; z-index: 2; }
.site-header__inner { display: flex; align-items: stretch; gap: 24px; min-height: 95px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; padding: 12px 0; }
.brand img { width: 210px; height: auto; }

.main-nav { display: flex; align-items: stretch; flex: 1; justify-content: flex-end; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  display: flex; align-items: center; justify-content: center;
  min-width: 132px; padding: 0 18px;
  border-left: 1px solid var(--border);
  color: #303030;
  font-size: 15px; font-weight: 700; text-align: center;
  white-space: nowrap; text-decoration: none;
  position: relative;
}
.main-nav a:last-child { border-right: 1px solid var(--border); }
.main-nav a:hover { color: var(--primary); background: #f7fafc; text-decoration: none; }
.main-nav a.is-active { color: var(--primary); }
.main-nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px; background: var(--primary);
}

.lang-toggle {
  align-self: center;
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 2px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .3px; color: var(--primary);
  cursor: pointer; flex: 0 0 auto;
}
.lang-toggle:hover { border-color: var(--primary); background: var(--accent-soft); }

/* ---------- Kruimelpad ---------- */
.breadcrumbs { padding: 16px 0 0; font-size: 13px; color: var(--muted); }
.breadcrumbs a { color: var(--primary); }
.breadcrumbs span { margin: 0 8px; color: #a8b6c4; }
.breadcrumbs strong { color: #303030; font-weight: 600; }

/* ---------- Pagina ---------- */
.page { padding: 18px 0 56px; }

/* ---------- Kaart (1px #0084cc, zoals het portaal) ---------- */
.card {
  width: min(820px, 100%);
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 0;
  overflow: hidden;
}

.card__head {
  padding: 25px 30px 21px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: relative;
}
.card__head::after {
  content: ""; position: absolute; right: 6px; bottom: -18px;
  width: 180px; height: 112px; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120'%3E%3Cpath d='M10 110V60l30-20 30 20v50M80 110V40l40-26 40 26v70M160 110V70l30-18v58' fill='none' stroke='%2304427b' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: bottom right;
  pointer-events: none;
}

.badge {
  display: flex; width: fit-content; align-items: center; gap: 7px;
  margin-bottom: 10px;
  padding: 4px 9px;
  border: 1px solid #e5c14a;
  background: #fffbe8;
  color: #6d5300;
  font-size: 11px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase;
  border-radius: 2px;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #d9a900; }

/* Titel: Roboto Slab 26px #303030 met gele balk (zoals .item-primary h3) */
.card__title {
  display: inline;
  margin: 0;
  font-family: "Roboto Slab", Georgia, "Times New Roman", serif;
  font-size: 24px; line-height: 1.28; font-weight: 700;
  color: #303030;
  padding: 0 4px 2px;
  /* gele marker-onderstreping, ook bij meerdere regels */
  background-image: linear-gradient(to top, var(--yellow) 0 5px, transparent 5px);
}
.card__intro { margin: 11px 0 0; color: var(--navy); font-size: 13.5px; line-height: 1.55; max-width: 72ch; }

.info-box {
  margin: 20px 0 0;
  padding: 12px 15px 12px 16px;
  background: #f6fafd;
  border-left: 3px solid #b9d2e6;
}
.info-box__title {
  margin: 0 0 7px;
  font-size: 13px; font-weight: 700; letter-spacing: .25px;
  color: var(--primary);
}
.info-box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.info-box li { position: relative; padding-left: 21px; font-size: 13px; line-height: 1.55; color: var(--navy); }
.info-box li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.4 6.3 11.7 13 5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 8px;
}

.card__body { padding: 22px 30px 28px; }

/* ---------- Type-keuze ---------- */
.segmented {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 2px; overflow: hidden;
  background: #f7f9fa;
}
.segmented label { position: relative; }
.segmented label + label { border-left: 1px solid var(--border); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 14px;
  font-size: 13.5px; font-weight: 700; color: #43566a;
  cursor: pointer; transition: background .15s, color .15s;
}
.segmented input:checked + span { background: var(--primary); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: -2px; }
.type-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.type-note + .progress-block { margin-top: 18px; }

/* ---------- Secties ---------- */
.section { margin-top: 24px; }
.section__head {
  display: flex; align-items: flex-start; gap: 11px;
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.section__num {
  flex: 0 0 auto;
  width: 26px; height: 26px; border-radius: 2px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700;
}
.section__title {
  margin: 0;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 15.5px; font-weight: 700; color: var(--navy);
}
.section__sub { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------- Velden ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span-2 { grid-column: 1 / -1; }

.field { min-width: 0; }
.field label {
  display: block; margin-bottom: 5px;
  font-size: 12.5px; font-weight: 700; color: #303030;
}
.field label .req { color: var(--error); margin-left: 2px; }
.field input,
.field select {
  width: 100%; height: 42px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23777777' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
  padding-right: 32px;
}
.field input:hover, .field select:hover { border-color: #9fb0bd; }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 132, 204, .15);
}
.field input::placeholder { color: #9aa7b2; }
.field .hint { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }
.field .error { display: none; margin-top: 5px; font-size: 12.5px; font-weight: 700; color: var(--error); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--error); background: #fffafa; }
.field.is-valid input { border-color: var(--success); }

.iban-wrap { position: relative; }
.iban-check {
  position: absolute; right: 12px; top: 34px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--success); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  pointer-events: none;
}
.iban-check[hidden] { display: none; }

/* ---------- Loader ---------- */
.loader-overlay {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(4, 66, 123, .45);
}
.loader-box {
  width: min(360px, 100%);
  padding: 28px 26px 24px;
  background: #fff;
  border: 1px solid var(--primary);
  border-top: 5px solid var(--primary);
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
}
.loader-logo { height: 40px; width: auto; margin: 0 auto 16px; }
.loader-spinner {
  width: 34px; height: 34px; margin: 0 auto 14px;
  border: 3px solid #dbe7f1; border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.loader-text { margin: 0; font-family: "Roboto Slab", Georgia, serif; font-size: 15px; font-weight: 700; color: var(--navy); }
.loader-sub { margin: 5px 0 0; font-size: 11.5px; color: var(--muted); }
.field.is-invalid .error { display: block; }
.input-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .6px; }

/* Bestandsupload */
.file-control {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 11px;
  border: 1px dashed #9fb0bd; border-radius: 2px; background: #fbfcfd;
}
.file-control:hover { border-color: var(--primary); background: #f2f9fe; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.file-btn {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 0; padding: 6px 12px;
  border: 1px solid var(--primary); border-radius: 2px;
  background: #fff; color: var(--primary);
  font-size: 12px; font-weight: 700;
  cursor: pointer;
}
.file-btn:hover { background: var(--primary); color: #fff; }
.file-name { font-size: 12.5px; color: #43566a; }
.file-selected {
  margin-top: 9px; padding: 8px 11px;
  background: #eef9f1; border-left: 4px solid var(--success);
  font-size: 12.5px; color: #22623a;
}
.file-selected strong { color: #14512c; }

/* IBAN-preview */
.iban-preview {
  margin-top: 11px; padding: 9px 13px;
  background: #f2f9fe; border-left: 4px solid var(--primary);
  font-size: 11.5px; color: var(--navy);
}
.iban-preview strong {
  display: block; margin-top: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px; letter-spacing: 1px; color: var(--primary);
}

/* ---------- Bank-dropdown ---------- */
.bank-select { position: relative; }
.bank-select__btn {
  width: 100%; height: 42px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--border); border-radius: 2px;
  background: #fff; color: #303030;
  font-size: 14px; text-align: left; cursor: pointer;
}
.bank-select__btn:hover { border-color: #9fb3c6; }
.bank-select__btn[aria-expanded="true"] { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,132,204,.12); }
.bank-select__panel {
  position: absolute; z-index: 20; left: 0; right: 0;
  margin-top: 4px; padding: 6px;
  max-height: 250px; overflow: auto;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(16, 38, 62, .12);
}
.bank-select__panel[hidden] { display: none; }
.bank-option {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; font-size: 13px; color: #303030; cursor: pointer;
}
.bank-option:hover { background: #f2f9fe; }
.bank-option input { width: 15px; height: 15px; accent-color: var(--primary); }

/* ---------- Banken-checklist ---------- */
.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.checklist__item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 9px;
  border: 1px solid var(--border); border-radius: 2px;
  background: #fff; font-size: 12.5px; color: #303030;
  cursor: pointer;
}
.field .checklist__item { font-weight: 400; margin-bottom: 0; letter-spacing: 0; }
.checklist__item:hover { border-color: var(--primary); background: #f2f9fe; }
.checklist__item input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--primary); }
.field.is-invalid .checklist__item { border-color: var(--error); }

.bank-detected {
  margin-top: 11px; padding: 8px 12px;
  background: #eef9f1; border-left: 4px solid var(--success);
  font-size: 12.5px; color: #22623a;
}
.bank-detected strong { color: #14512c; }

/* ---------- Info-pagina (Tax Information) ---------- */
.layout--single { grid-template-columns: minmax(0, 820px); }
.info-section { margin-top: 22px; }
.info-section:first-child { margin-top: 0; }
.info-section h2 {
  margin: 0 0 8px;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 16px; font-weight: 700; color: var(--navy);
}
.info-section p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.6; color: #303030; }
.info-section ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 13.5px; color: #303030; }
.info-section li::marker { color: var(--primary); }
.info-section .muted { color: var(--muted); }
.info-actions { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.info-actions .btn-submit { display: flex; width: 100%; margin: 0; text-decoration: none; }

/* ---------- Voortgangsbalk ---------- */
.progress-block { margin-bottom: 16px; padding-bottom: 11px; border-bottom: 1px solid var(--border); }
.progress-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted);
}
.progress-head strong { color: var(--primary); font-size: 12px; letter-spacing: .2px; }
.progress-track { height: 6px; margin-top: 7px; background: #eef2f6; border-radius: 999px; overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 0; background: var(--primary); border-radius: inherit; transition: width .25s ease; }
.progress-steps { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 11.5px; color: var(--muted); }
.progress-steps li { display: inline-flex; align-items: center; gap: 5px; }
.progress-dot { width: 7px; height: 7px; border-radius: 50%; background: #c6d3e0; }
.progress-steps li.is-done { color: var(--success); font-weight: 600; }
.progress-steps li.is-done .progress-dot { background: var(--success); }

/* ---------- Type-kaarten + badges ---------- */
.card__badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.type-badge {
  display: inline-flex; align-items: center;
  padding: 4px 9px; border: 1px solid #b9d2e6; border-radius: 2px;
  background: #f2f9fe; color: var(--navy);
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.link-btn {
  display: inline-flex; align-items: center; gap: 5px;
  margin: 10px 18px 0 0; padding: 0; border: 0; background: none;
  color: var(--primary); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

.trust-bar {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-top: 14px; padding-top: 11px;
  border-top: 1px dashed var(--border);
  font-size: 12px; color: var(--muted);
}
.trust-bar span { display: inline-flex; align-items: center; gap: 5px; }
.trust-bar svg { color: var(--primary); }

.type-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.type-card {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: 13px 14px 13px 42px;
  border: 1px solid var(--border); border-radius: 2px;
  background: #fff; cursor: pointer;
}
.type-card input { position: absolute; opacity: 0; pointer-events: none; }
.type-card__icon { position: absolute; left: 12px; top: 13px; color: var(--muted); }
.type-card__title { font-family: "Roboto Slab", Georgia, serif; font-size: 14px; font-weight: 700; color: #303030; }
.type-card__desc { font-size: 11.5px; color: var(--muted); }
.type-card.is-active { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: #f7fbfe; }
.type-card.is-active .type-card__icon,
.type-card.is-active .type-card__title { color: var(--primary); }
.type-card:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }

.same-contact {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 10px; font-size: 12.5px; color: #303030; cursor: pointer;
}
.same-contact input { width: 16px; height: 16px; accent-color: var(--primary); }
.same-contact.no-site { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.is-hidden { display: none !important; }

/* ---------- Documenten (optioneel) ---------- */
.optional-tag {
  display: inline-block; vertical-align: middle;
  margin-left: 4px; padding: 2px 6px;
  border: 1px solid #eed27a; border-radius: 2px; background: #fffbe8;
  color: #6d5300; font-size: 9.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.uploads-head { align-items: center; justify-content: space-between; gap: 16px; }
.uploads-head > div { min-width: 0; }
.btn-upload {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border: 1px solid var(--primary); border-radius: 2px;
  background: #fff; color: var(--primary);
  font-size: 12.5px; font-weight: 700; white-space: nowrap; cursor: pointer;
}
.btn-upload:hover { background: #f2f9fe; }
.upload-body { margin-top: 6px; }
.upload-body[hidden] { display: none; }
.recommended-tag {
  display: inline-block; vertical-align: 2px;
  margin-left: 5px; padding: 1px 5px;
  border: 1px solid #bfe3cc; border-radius: 2px; background: #eef8f1;
  color: #1c6b3a; font-size: 9px; font-weight: 700; letter-spacing: .35px; text-transform: uppercase;
}
.upload-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.upload-card { border: 1px solid var(--border); background: #fbfcfd; padding: 10px 11px; }
.upload-card__title { margin-bottom: 8px; font-size: 12.5px; font-weight: 700; color: #303030; }
.speeds-tag {
  display: inline-block; margin-left: 4px; padding: 1px 5px;
  border: 1px solid #b9d2e6; border-radius: 2px; background: #f2f9fe;
  color: var(--navy); font-size: 9px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
}
.upload-drop {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 12px; border: 1px dashed #9fb0bd; border-radius: 2px;
  background: #fff; cursor: pointer; font-size: 11.5px; color: var(--muted);
}
.upload-drop:hover, .upload-drop.is-drag { border-color: var(--primary); background: #f2f9fe; }
.upload-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload-drop__icon { color: var(--primary); display: inline-flex; }
.upload-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.upload-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; background: #fff; border: 1px solid var(--border);
  font-size: 11px;
}
.upload-item__icon {
  flex: 0 0 auto; padding: 3px 4px; border-radius: 2px;
  background: var(--primary); color: #fff;
  font-size: 8.5px; font-weight: 800; letter-spacing: .4px;
}
.upload-item__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-item__name small { display: block; color: var(--muted); font-size: 10px; }
.upload-item__remove {
  flex: 0 0 auto; border: 0; background: none; padding: 0 2px;
  color: #9aa7b2; font-size: 17px; line-height: 1; cursor: pointer;
}
.upload-item__remove:hover { color: var(--error); }
.u-status { white-space: nowrap; color: var(--muted); font-size: 10px; }
.u-status--ok { color: var(--success); font-weight: 700; }
.u-status--err { color: var(--error); font-weight: 700; }

.upload-fallback {
  display: grid; gap: 8px;
  margin-top: 12px; padding: 10px 12px;
  border: 1px dashed #9fb0bd; background: #fbfcfd;
}
.upload-fallback__text strong { display: block; font-size: 12.5px; color: var(--navy); }
.upload-fallback__text span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.upload-fallback .field { margin: 0; }
.upload-error { margin: 10px 0 0; color: var(--error); font-size: 12.5px; font-weight: 700; }

/* ---------- Modal-uitbreiding ---------- */
.modal__subtitle {
  margin: 16px 0 8px;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 13.5px; font-weight: 700; color: var(--navy);
}
.process-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.process-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: #303030; line-height: 1.45; }
.process-list li span {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700;
}
.modal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.modal__box-info { padding: 10px 12px; background: #f2f9fe; border-left: 3px solid var(--primary); }
.modal__box-info h4 { margin: 0 0 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--primary); }
.modal__box-info ul { margin: 0; padding-left: 15px; display: grid; gap: 3px; font-size: 11.5px; color: #303030; }
.modal__box-info--optional { background: #f7f9fa; border-left-color: var(--muted); }

/* ---------- Conditionele blokken ---------- */
.reveal { display: none; }
.reveal.is-open { display: block; animation: reveal .18s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

.notice {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 11px 13px;
  background: #fffbe8; border: 1px solid #eed27a; border-left: 4px solid var(--yellow);
  color: #6d5300; font-size: 12.5px;
}
.notice svg { flex: 0 0 auto; margin-top: 1px; }

/* ---------- Uitleg "waarom" ---------- */
.why {
  margin: 16px 0 0; padding: 13px 15px;
  border: 1px solid var(--border); background: #fbfcfd;
}
.why__title { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; color: var(--primary); }
.why__list { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 12.5px; color: #303030; line-height: 1.5; }
.why__list li::marker { color: var(--primary); font-weight: 700; }

/* ---------- Serieuze maar rustige noot ---------- */
.serious-note {
  display: flex; gap: 9px; align-items: flex-start;
  margin-top: 22px; padding: 10px 12px;
  background: #f7f9fb;
  border-left: 3px solid var(--navy);
  font-size: 11.5px; line-height: 1.5; color: #43566a;
}
.serious-note svg { flex: 0 0 auto; margin-top: 1px; color: var(--navy); }

/* ---------- Samenvatting einde kaart ---------- */
.summary {
  margin-top: 20px; padding: 12px 14px;
  border: 1px solid var(--primary); border-top: 4px solid var(--primary);
  background: #f7fbfe;
}
.summary__title {
  margin: 0 0 8px;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 15px; font-weight: 700; color: var(--navy);
}
.summary__list { margin: 0; }
.summary__row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 8px 0; border-bottom: 1px dashed #d8e2ea;
  font-size: 13px;
}
.summary__row:last-child { border-bottom: 0; }
.summary__row dt { color: var(--muted); }
.summary__row dd { margin: 0; font-weight: 700; color: #303030; text-align: right; }
.summary__row dd[data-summary="amount"] { color: var(--primary); }

/* ---------- Consent + actie ---------- */
.consent {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12.5px; color: #303030; cursor: pointer;
}
.consent input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--primary); flex: 0 0 auto; }

.submit-row { margin-top: 18px; }

/* Knop zoals .btn-primary van het portaal: gradient + uppercase */
.btn-submit {
  width: auto; min-width: 240px; height: 44px; padding: 0 26px; margin: 0 auto 0 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background-color: var(--primary);
  background-image: linear-gradient(#0094e6, #0084cc);
  border: 1px solid var(--primary-dark);
  border-radius: 2px;
  color: #fff;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  transition: background-image .15s, background-color .15s;
}
.btn-submit:hover { background-image: none; background-color: var(--primary); }
.btn-submit:disabled { opacity: .7; cursor: wait; }

.secure-note {
  display: flex; align-items: center; justify-content: flex-start; gap: 7px;
  margin: 11px 0 0; font-size: 12px; color: var(--muted);
}
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Success ---------- */
.success { padding: 38px 30px 34px; text-align: center; }
.success__icon {
  width: 66px; height: 66px; margin: 0 auto 16px;
  border-radius: 50%;
  background: #e9f9ee; color: var(--success);
  display: flex; align-items: center; justify-content: center;
  animation: pop .32s ease both;
}
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success__title {
  margin: 0 0 6px;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 23px; font-weight: 700; color: var(--success);
}
.success__sub { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; }
.success__text { max-width: 52ch; margin: 0 auto 20px; font-size: 13.5px; }
.success__box {
  display: grid; gap: 4px;
  max-width: 460px; margin: 0 auto 20px;
  padding: 13px 15px; text-align: left;
  background: #f7f9fa; border: 1px solid var(--border); border-left: 4px solid var(--primary);
  font-size: 12px; color: var(--muted);
}
.success__box strong { font-family: ui-monospace, Menlo, Consolas, monospace; color: #303030; letter-spacing: .5px; }
.btn-ghost {
  height: 40px; padding: 0 20px;
  background: #fff; color: var(--primary);
  border: 1px solid var(--primary); border-radius: 2px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  cursor: pointer;
}
.btn-ghost:hover { background: var(--accent-soft); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 8px; }
.footer-main { background: #f0f2f3; border-top: 1px solid #dfe3e8; padding: 18px 0; }
.footer-brand-logo { height: 30px; width: auto; }
.footer-badges {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
  color: #4a5a6a; font-size: 11.5px;
}
.badge-oss, .badge-apps { display: inline-flex; align-items: baseline; gap: 4px; color: #2f6d9e; font-weight: 700; }
.badge-oss strong, .badge-apps strong { font-size: 19px; letter-spacing: 1px; }
.badge-oss small, .badge-apps small { font-size: 9.5px; color: #6b7b8b; font-weight: 600; text-transform: uppercase; }
.badge-text { font-weight: 600; text-align: center; line-height: 1.25; }
.socials { display: flex; gap: 13px; font-size: 14px; color: #3b4b5b; }
.social { display: inline-flex; align-items: center; justify-content: center; width: 19px; }
.footer-contact { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; letter-spacing: .3px; color: #2f6d9e; }
.footer-bottom { background: #111; color: #fff; font-size: 11.5px; }
.footer-bottom__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 38px; }
.footer-bottom__inner a { color: #fff; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }

/* ---------- Twee-koloms layout ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 860px) 300px;
  gap: 24px;
  justify-content: center;
  align-items: start;
}
.layout > div > .card { width: 100%; margin: 0; }

/* ---------- Zijbalk ---------- */
.sidebar { position: sticky; top: 16px; display: grid; gap: 14px; }
.side-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  padding: 15px 17px;
}
.side-card__title {
  display: flex; align-items: center; gap: 7px;
  margin: 0 0 9px;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 14.5px; font-weight: 700; color: var(--navy);
}
.side-ico { font-size: 13px; color: var(--primary); }
.side-label { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.side-phone { margin: 2px 0; font-size: 19px; font-weight: 700; color: var(--primary); }
.side-muted { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.side-link { display: inline-block; margin-top: 9px; font-size: 12.5px; font-weight: 700; color: var(--primary); }
.side-list, .side-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.side-list li { position: relative; padding-left: 15px; font-size: 12.5px; color: #303030; }
.side-list li::before { content: "•"; position: absolute; left: 2px; color: var(--primary); font-weight: 700; }
.side-links a { font-size: 12.5px; color: var(--primary); }

/* ---------- Welkomst-modal ---------- */
body.modal-open { overflow: hidden; }
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  background: rgba(4, 66, 123, .55);
  overflow-y: auto;
}
.modal__box {
  position: relative;
  width: min(640px, 100%);
  background: #fff;
  border: 1px solid var(--primary);
  border-top: 5px solid var(--primary);
  padding: 28px 32px 24px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
  animation: modalIn .2s ease both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; right: 8px; top: 6px;
  width: 30px; height: 30px; border: 0; background: transparent;
  font-size: 24px; line-height: 1; color: #7a8a99; cursor: pointer;
}
.modal__close:hover { color: var(--primary); }
.modal__title {
  display: inline;
  margin: 6px 0 0;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 21px; font-weight: 700; color: #303030;
  padding: 0 3px 2px;
  background-image: linear-gradient(to top, var(--yellow) 0 4px, transparent 4px);
}
.modal__brand { margin: 0 0 14px; }
.modal__brand img { height: 46px; width: auto; }
.modal__intro { margin: 12px 0 0; font-size: 13px; color: var(--navy); line-height: 1.55; }
.modal__warning {
  display: flex; gap: 9px; align-items: flex-start;
  margin: 14px 0 0; padding: 10px 12px;
  background: #fdf6e3; border: 1px solid #edd9a3; border-left: 4px solid #d9a900;
  font-size: 12px; color: #6d5300; line-height: 1.5;
}
.modal__warning svg { flex: 0 0 auto; margin-top: 1px; }
.info-box--modal { margin-top: 14px; }
.modal__recommend {
  margin: 14px 0 0; padding: 10px 12px;
  background: #fffbe8; border-left: 4px solid var(--yellow);
  font-size: 12px; color: #6d5300;
}
.modal__btn { width: 100%; margin: 16px 0 0; }
.modal__meta { margin: 9px 0 0; font-size: 11px; color: var(--muted); text-align: center; }

/* ---------- Mobiel ---------- */
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .sidebar { grid-template-columns: 1fr; }
  .modal__box { padding: 22px 18px 18px; }
  .modal__title { font-size: 18.5px; }
}
@media (max-width: 860px) {
  .wrap { width: calc(100% - 24px); }
  .topbar { font-size: 11px; }
  .topbar__inner { min-height: 36px; gap: 8px; }
  .topbar__date { max-width: 46%; }
  .btn-ghost-white, .btn-white { height: 25px; padding: 0 8px; font-size: 10.5px; }

  .site-header__inner { flex-wrap: wrap; gap: 0; min-height: 0; }
  .brand { padding: 10px 0; }
  .brand img { width: 168px; }
  .main-nav { order: 3; flex: 1 1 100%; justify-content: flex-start; border-top: 1px solid var(--border); margin: 0 -12px; }
  .main-nav a { min-width: auto; flex: 1; padding: 11px 8px; font-size: 11.5px; border-left: 0; border-right: 1px solid var(--border); }
  .main-nav a:last-child { border-right: 0; }
  .lang-toggle { margin-left: auto; }

  .card { border-left: 0; border-right: 0; }
  .card__head { padding: 20px 18px 18px; }
  .card__title { font-size: 21px; }
  .card__body { padding: 20px 18px 26px; }
  .grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .checklist { grid-template-columns: 1fr; }
  .type-choice, .upload-grid, .modal__grid { grid-template-columns: 1fr; }
  .uploads-head { flex-direction: column; align-items: flex-start; }
  .btn-upload { width: 100%; justify-content: center; }
  .btn-submit { width: 100%; margin: 0; }
  .secure-note { justify-content: flex-start; }
  .breadcrumbs { font-size: 12px; }
  .footer-brand-logo { height: 30px; width: auto; }
.footer-badges { gap: 16px; }
  .footer-bottom__inner { flex-direction: column; justify-content: center; gap: 5px; padding: 9px 0; }
  .success { padding: 30px 18px; }
}
