/* Dive Quote Bonaire — componenten (CSS-only, geen JavaScript nodig).
   Laad na tokens.css. Alle kleuren, maten en tijden komen uit de tokens. */

.dq-root, .dq-root * { box-sizing: border-box; }
.dq-root { font-family: var(--font-body); color: var(--ink); background: var(--surface); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
.dq-num { font-variant-numeric: tabular-nums lining-nums; }
.dq-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dq-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dq-link { color: var(--info); text-decoration: underline; text-underline-offset: 3px; }
.dq-link:hover { text-decoration-thickness: 2px; }

/* Focus: altijd zichtbaar, nooit verwijderen */
.dq-root :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- Knoppen ---------- */
.dq-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--size-touch); padding: 0 var(--space-6); border-radius: var(--radius-pill); border: 2px solid transparent; font: 700 17px/1 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard); }
.dq-btn--primary { background: var(--brand); color: var(--on-brand); }
.dq-btn--primary:hover { background: var(--brand-hover); }
.dq-btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.dq-btn--secondary:hover { background: var(--surface-sunken); }
.dq-btn--quiet { background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; padding: 0 var(--space-3); }
.dq-btn--block { display: flex; width: 100%; }
.dq-btn[disabled], .dq-btn[aria-disabled="true"] { background: var(--surface-sunken); color: var(--ink-subtle); border-color: transparent; cursor: not-allowed; }
/* Twee gelijkwaardige keuzes (bijv. toestemming ja/nee): zelfde maat, zelfde gewicht */
.dq-btn-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.dq-btn-pair .dq-btn { width: 100%; padding: 0 var(--space-3); }

/* ---------- Velden ---------- */
.dq-field { display: flex; flex-direction: column; gap: var(--space-2); }
.dq-field__label { font-weight: 700; font-size: 16px; line-height: 24px; }
.dq-field__hint { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.dq-input, .dq-select { width: 100%; min-height: var(--size-touch); padding: 0 var(--space-4); border: 2px solid var(--line-strong); border-radius: var(--radius-m); background: var(--surface-raised); color: var(--ink); font: 400 16px/24px var(--font-body); }
.dq-select { appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.dq-input:hover, .dq-select:hover { border-color: var(--ink-muted); }
.dq-input[aria-invalid="true"] { border-color: var(--error); }
.dq-field__error { display: flex; gap: var(--space-2); align-items: flex-start; color: var(--error); font-size: 14px; line-height: 20px; font-weight: 700; }
.dq-stepper-input { display: inline-grid; grid-template-columns: var(--size-touch) 64px var(--size-touch); align-items: center; border: 2px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface-raised); }
.dq-stepper-input button { height: var(--size-touch); border: 0; background: transparent; color: var(--ink); border-radius: var(--radius-pill); cursor: pointer; display: grid; place-items: center; }
.dq-stepper-input output { text-align: center; font: 800 20px/1 var(--font-display); font-variant-numeric: tabular-nums; }

/* ---------- Keuzekaart ---------- */
.dq-choices { display: grid; gap: var(--space-3); }
.dq-choice { position: relative; display: flex; gap: var(--space-4); align-items: center; min-height: 64px; padding: var(--space-4); border: 2px solid var(--line-strong); border-radius: var(--radius-m); background: var(--surface-raised); cursor: pointer; transition: border-color var(--duration-base) var(--ease-standard), background-color var(--duration-base) var(--ease-standard); }
.dq-choice:hover { border-color: var(--ink-muted); }
.dq-choice__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dq-choice__mark { flex: none; width: 24px; height: 24px; border: 2px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; background: var(--surface-raised); }
.dq-choice--multi .dq-choice__mark { border-radius: 7px; }
.dq-choice__icon { flex: none; width: 40px; height: 40px; border-radius: var(--radius-s); background: var(--surface-sunken); display: grid; place-items: center; color: var(--ink); }
.dq-choice__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dq-choice__title { font-weight: 700; }
.dq-choice__desc { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.dq-choice:has(.dq-choice__input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.dq-choice:has(.dq-choice__input:checked) .dq-choice__mark { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 4px var(--surface-raised); }
.dq-choice--multi:has(.dq-choice__input:checked) .dq-choice__mark { box-shadow: none; }
.dq-choice--multi:has(.dq-choice__input:checked) .dq-choice__mark::after { content: ""; width: 10px; height: 6px; border: solid var(--on-brand); border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.dq-choice:has(.dq-choice__input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- Stappenbalk (4 stappen) ---------- */
.dq-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.dq-steps__item { display: flex; flex-direction: column; gap: var(--space-2); font-size: 13px; line-height: 16px; font-weight: 700; color: var(--ink-subtle); }
.dq-steps__bar { height: 6px; border-radius: var(--radius-pill); background: var(--line); }
.dq-steps__item--done { color: var(--ink-muted); }
.dq-steps__item--done .dq-steps__bar { background: var(--cactus); }
.dq-steps__item[aria-current="step"] { color: var(--ink); }
.dq-steps__item[aria-current="step"] .dq-steps__bar { background: var(--brand); }
.dq-steps__count { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin-bottom: var(--space-2); }

/* ---------- Vraagkaart ---------- */
.dq-question { display: flex; flex-direction: column; gap: var(--space-6); padding: var(--space-6) var(--space-5); background: var(--surface-raised); border-radius: var(--radius-l); }
.dq-question__title { margin: 0; font: 800 28px/32px var(--font-display); letter-spacing: -0.015em; text-wrap: balance; }
.dq-question__help { margin: calc(var(--space-4) * -1) 0 0; color: var(--ink-muted); }
.dq-question__actions { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.dq-question__actions .dq-btn--primary { flex: 1 1 200px; }

/* ---------- Prijs + Indicatie-label ---------- */
.dq-price { display: flex; flex-direction: column; gap: var(--space-2); }
.dq-price__row { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.dq-price__amount { font: 800 56px/56px var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; }
.dq-price__amount--card { font-size: 32px; line-height: 36px; letter-spacing: -0.01em; }
.dq-price__euro { font-size: 14px; line-height: 20px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.dq-indication { display: inline-flex; align-items: center; gap: var(--space-1); padding: 6px 12px; border-radius: var(--radius-pill); background: var(--sun-soft); color: var(--ink); border: 2px solid var(--sun); font: 700 13px/16px var(--font-body); letter-spacing: 0.02em; white-space: nowrap; }

/* ---------- Prijsopbouw ---------- */
.dq-breakdown { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6) var(--space-5); background: var(--surface-raised); border-radius: var(--radius-l); }
.dq-breakdown__title { margin: 0; font: 500 20px/26px var(--font-display); }
.dq-breakdown__lines { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.dq-breakdown__line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-1) var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.dq-breakdown__what { font-weight: 700; }
.dq-breakdown__calc { grid-column: 1; font-size: 14px; line-height: 20px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.dq-breakdown__amount { grid-column: 2; grid-row: 1; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.dq-breakdown__line--discount .dq-breakdown__amount { color: var(--cactus); }
.dq-tag { display: inline-flex; align-items: center; margin-left: var(--space-2); padding: 2px 8px; border-radius: var(--radius-pill); background: var(--neutral-soft); color: var(--ink); font: 700 12px/16px var(--font-body); vertical-align: 2px; }
.dq-breakdown__total { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-3); flex-wrap: wrap; padding: var(--space-4); border-radius: var(--radius-m); background: var(--surface-sunken); }
.dq-breakdown__total-label { font: 800 20px/26px var(--font-display); }
.dq-excluded { padding: var(--space-4); border: 2px dashed var(--line-strong); border-radius: var(--radius-m); }
.dq-excluded__title { margin: 0 0 var(--space-2); font-weight: 700; }
.dq-excluded ul { margin: 0; padding-left: 20px; color: var(--ink-muted); }

/* ---------- Garantie (voorwaardelijke maximumprijs) ---------- */
.dq-guarantee { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius-l); background: var(--cactus-soft); border: 2px solid var(--cactus); }
.dq-guarantee__head { display: flex; gap: var(--space-3); align-items: flex-start; }
.dq-guarantee__head .dq-icon { width: 28px; height: 28px; color: var(--cactus); }
.dq-guarantee__promise { margin: 0; font: 800 20px/26px var(--font-display); }
.dq-guarantee__conditions-title { margin: 0; font-weight: 700; }
.dq-guarantee ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: var(--space-1); }

/* ---------- Aanbieder-melding (disclosure) ---------- */
.dq-disclosure { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border-radius: var(--radius-m); background: var(--cactus-soft); color: var(--ink); }
.dq-disclosure .dq-icon { color: var(--cactus); margin-top: 2px; }
.dq-disclosure__text { margin: 0; font-size: 15px; line-height: 22px; }
.dq-disclosure__text strong { font-weight: 700; }
.dq-disclosure--inline { padding: var(--space-2) var(--space-3); font-size: 14px; }
.dq-provider-tag { display: inline-flex; align-items: center; gap: var(--space-1); padding: 3px 10px; border-radius: var(--radius-pill); background: var(--cactus); color: var(--on-cactus); font: 700 12px/16px var(--font-body); }

/* ---------- Toestemming per bedrijf ---------- */
.dq-consent { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-4); border: 2px solid var(--line-strong); border-radius: var(--radius-m); background: var(--surface-raised); cursor: pointer; }
.dq-consent input { flex: none; appearance: none; width: 26px; height: 26px; margin: 0; border: 2px solid var(--line-strong); border-radius: 7px; background: var(--surface-raised); display: grid; place-items: center; cursor: pointer; }
.dq-consent input:checked { background: var(--brand); border-color: var(--brand); }
.dq-consent input:checked::after { content: ""; width: 11px; height: 6px; border: solid var(--on-brand); border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.dq-consent:has(input:checked) { border-color: var(--brand); }
.dq-consent__body { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.dq-consent__name { font-weight: 700; display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }
.dq-consent__shared { font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* ---------- Vergelijking ---------- */
.dq-compare-tools { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; font-size: 14px; color: var(--ink-muted); }
.dq-quote { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-l); background: var(--surface-raised); border: 2px solid var(--line); }
.dq-quote__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); flex-wrap: wrap; }
.dq-quote__name { margin: 0; font: 500 20px/26px var(--font-display); }
.dq-quote__meta { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.dq-quote__incl { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-1); font-size: 15px; line-height: 22px; }
.dq-quote__incl li { display: flex; gap: var(--space-2); }
.dq-quote__incl .dq-icon { color: var(--cactus); width: 18px; height: 18px; margin-top: 2px; }
.dq-quote--pending { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.dq-quote--expired { opacity: 1; background: var(--surface); }
.dq-quote--expired .dq-price__amount { text-decoration: line-through; text-decoration-thickness: 3px; color: var(--ink-muted); }
.dq-table-wrap { overflow-x: auto; border-radius: var(--radius-l); border: 2px solid var(--line); background: var(--surface-raised); }
.dq-table { width: 100%; min-width: 680px; border-collapse: collapse; font-family: var(--font-body); font-size: 15px; line-height: 22px; color: var(--ink); }
.dq-table caption { text-align: left; padding: var(--space-4) var(--space-5) 0; font-size: 14px; color: var(--ink-muted); }
.dq-table th, .dq-table td { padding: var(--space-3) var(--space-5); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.dq-table thead th { font: 700 13px/16px var(--font-body); letter-spacing: 0.02em; color: var(--ink-muted); background: var(--surface); white-space: nowrap; }
.dq-table th[scope="row"] { font-weight: 700; }
.dq-table td.dq-num, .dq-table th.dq-num { text-align: right; }
.dq-table tbody tr:last-child > * { border-bottom: 0; }
.dq-table tbody tr:hover { background: var(--surface); }

/* ---------- Badges (status) ---------- */
.dq-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); font: 700 13px/16px var(--font-body); white-space: nowrap; background: var(--neutral-soft); color: var(--ink); }
.dq-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.dq-badge--neutral::before { background: var(--ink-subtle); }
.dq-badge--info { background: var(--info-soft); color: var(--info); }
.dq-badge--success { background: var(--success-soft); color: var(--success); }
.dq-badge--warning { background: var(--warning-soft); color: var(--warning); }
.dq-badge--error { background: var(--error-soft); color: var(--error); }
.dq-badge--brand { background: var(--brand-soft); color: var(--ink); }
.dq-badge--brand::before { background: var(--brand); }
.dq-badge--outline { background: transparent; border: 2px dashed var(--line-strong); color: var(--ink-muted); padding: 2px 8px; }

/* ---------- Meldingen ---------- */
.dq-alert { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border-radius: var(--radius-m); background: var(--info-soft); color: var(--ink); }
.dq-alert .dq-icon { margin-top: 2px; color: var(--info); }
.dq-alert__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dq-alert__title { font-weight: 700; }
.dq-alert--success { background: var(--success-soft); } .dq-alert--success .dq-icon { color: var(--success); }
.dq-alert--warning { background: var(--warning-soft); } .dq-alert--warning .dq-icon { color: var(--warning); }
.dq-alert--error { background: var(--error-soft); } .dq-alert--error .dq-icon { color: var(--error); }

/* ---------- Lege staat, fout, laden ---------- */
.dq-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-3); padding: var(--space-8) var(--space-5); border-radius: var(--radius-l); background: var(--surface-raised); }
.dq-state img { width: 160px; height: auto; border-radius: var(--radius-xl); }
.dq-state__title { margin: 0; font: 800 22px/28px var(--font-display); }
.dq-state__text { margin: 0; color: var(--ink-muted); max-width: 40ch; }
.dq-skeleton { display: block; border-radius: var(--radius-s); background: var(--surface-sunken); animation: dq-pulse 1.4s var(--ease-standard) infinite alternate; }
@keyframes dq-pulse { from { opacity: 1; } to { opacity: .55; } }
.dq-spinner { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: dq-spin 0.9s linear infinite; }
@keyframes dq-spin { to { transform: rotate(360deg); } }

/* ---------- Kop, taalkiezer, voettekst ---------- */
.dq-header { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-5); background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.dq-header__brand { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink); text-decoration: none; min-height: var(--size-touch-min); }
.dq-header__nav { display: flex; gap: var(--space-1); align-items: center; flex-wrap: wrap; }
.dq-header__nav a { display: inline-flex; align-items: center; min-height: var(--size-touch-min); padding: 0 var(--space-3); border-radius: var(--radius-pill); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.dq-header__nav a:hover { background: var(--surface-sunken); }
.dq-header__nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.dq-lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--radius-pill); background: var(--surface-sunken); }
.dq-lang a { display: grid; place-items: center; min-width: var(--size-touch-min); height: 38px; padding: 0 var(--space-2); border-radius: var(--radius-pill); color: var(--ink); text-decoration: none; font: 700 14px/1 var(--font-body); }
.dq-lang a[aria-current="true"] { background: var(--ink); color: var(--surface); }
.dq-footer { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-8) var(--space-5); background: var(--surface-sunken); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.dq-footer__links { display: flex; gap: var(--space-2) var(--space-5); flex-wrap: wrap; }
.dq-footer__links a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .dq-root *, .dq-root *::before, .dq-root *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
