/* Prijstool — gedeelde rekentool en boekflow (Hart voor Transport, Team Transport,
   Zipload24, Spoedkoerier24). Eén bron: hartvoortransport-website/prijstool/.
   Merkkleur via --pt-accent op het element [data-prijstool] (zie prijstool.js). */
@import url('https://fonts.bunny.net/css?family=geist:400,500,600,700&display=swap');

.pt {
  --pt-accent: #D63031;
  --pt-accent-ink: #FFFFFF;
  --pt-ink: #111318;
  --pt-ink-2: #454B58;
  --pt-ink-3: #5F6573;
  --pt-panel: #FFFFFF;
  --pt-soft: #F4F5F7;
  --pt-line: #E2E5EA;
  --pt-line-2: #CBD0D8;
  --pt-ok: #16794A;
  --pt-fout: #B42318;
  --pt-fout-bg: #FEF3F2;
  --pt-let-bg: #FFF6E5;
  --pt-let-ink: #7A4B00;
  --pt-radius: 16px;
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--pt-ink);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}
.pt *, .pt *::before, .pt *::after { box-sizing: border-box; }
/* :where houdt de specificiteit laag, zodat .pt-knop (wit op merkkleur) wint. */
.pt :where(button, input, select, textarea) { font: inherit; color: inherit; }
.pt :where(a) { color: var(--pt-ink); }
.pt h2, .pt h3, .pt p { margin: 0; }
.pt :focus-visible { outline: 2px solid var(--pt-ink); outline-offset: 2px; }
.pt [hidden] { display: none !important; }
.pt-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Stappen */
.pt-stappen { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; font-size: 14px; color: var(--pt-ink-3); flex-wrap: wrap; }
.pt-stappen li { display: flex; align-items: center; gap: 8px; }
.pt-stappen .pt-nr { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--pt-line-2); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.pt-stappen li[aria-current="step"] { color: var(--pt-ink); font-weight: 600; }
.pt-stappen li[aria-current="step"] .pt-nr { background: var(--pt-ink); border-color: var(--pt-ink); color: #fff; }
.pt-stappen li.pt-gedaan .pt-nr { background: var(--pt-soft); border-color: var(--pt-soft); color: var(--pt-ink); }
.pt-stappen .pt-streep { width: 28px; height: 1px; background: var(--pt-line-2); }

/* Opbouw */
.pt-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.pt-hoofd { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pt-kaart { background: var(--pt-panel); border-radius: var(--pt-radius); padding: 18px; box-shadow: 0 1px 2px rgba(17, 19, 24, .04); }
.pt-titel { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.pt-kop { font-size: 16px; font-weight: 600; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pt-kop small { font-size: 13px; font-weight: 400; color: var(--pt-ink-3); }
.pt-tekst-2 { color: var(--pt-ink-2); font-size: 14px; }

/* Route */
.pt-route { display: flex; flex-direction: column; }
.pt-rij { position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; }
.pt-rij + .pt-rij::before { content: ''; position: absolute; left: 5px; top: -8px; height: 16px; border-left: 2px dotted var(--pt-line-2); }
.pt-marker { width: 12px; height: 12px; flex-shrink: 0; border-radius: 50%; background: var(--pt-ink); }
.pt-marker.pt-b { border-radius: 3px; background: var(--pt-accent); }
.pt-marker.pt-tussen { width: 10px; height: 10px; margin: 0 1px; background: #fff; border: 2px solid var(--pt-ink-3); }
.pt-adres { flex-grow: 1; min-width: 0; position: relative; }
.pt-adres label { display: block; font-size: 12.5px; color: var(--pt-ink-3); margin-bottom: 2px; }
.pt-adres input { width: 100%; height: 44px; border: 1px solid var(--pt-line-2); border-radius: 10px; padding: 0 38px 0 12px; background: #fff; font-size: 16px; text-overflow: ellipsis; }
.pt-adres input[aria-invalid="true"] { border-color: var(--pt-fout); }
/* Landkeuze (vlag + landcode) voor het adresveld; het select ligt onzichtbaar over de knop, zodat iOS/Android hun eigen kiezer tonen. */
.pt-invoer { display: flex; gap: 6px; }
.pt-invoer input { flex: 1 1 auto; min-width: 0; width: auto; }
.pt-land { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; height: 44px; padding: 0 8px 0 9px; border: 1px solid var(--pt-line-2); border-radius: 10px; background: #fff; color: var(--pt-ink); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.pt-land:focus-within { border-color: var(--pt-ink); }
.pt-vlag { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(17, 19, 24, .14); }
.pt-land-pijl { color: var(--pt-ink-3); }
.pt-land select { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; font-size: 16px; border: 0; -webkit-appearance: none; appearance: none; }
.pt-adres .pt-gekozen { position: absolute; right: 10px; bottom: 12px; width: 20px; height: 20px; color: var(--pt-ok); pointer-events: none; }
.pt-weg { flex-shrink: 0; width: 40px; height: 40px; border: none; border-radius: 10px; background: var(--pt-soft); color: var(--pt-ink-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; align-self: flex-end; }
.pt-sug { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin: 4px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--pt-line); border-radius: 12px; box-shadow: 0 12px 32px rgba(17, 19, 24, .14); max-height: 300px; overflow: auto; }
.pt-sug li { padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.pt-sug li[aria-selected="true"], .pt-sug li:hover { background: var(--pt-soft); }
.pt-sug .pt-sug-1 { display: block; font-size: 15px; font-weight: 500; }
.pt-sug .pt-sug-2 { display: block; font-size: 13px; color: var(--pt-ink-3); }
.pt-route-voet { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--pt-soft); margin-top: 10px; padding-top: 10px; }
.pt-route-info { font-size: 14px; color: var(--pt-ink-2); font-variant-numeric: tabular-nums; }
.pt-toevoegen { display: flex; gap: 14px; flex-wrap: wrap; }

/* Keuzes */
.pt-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pt-chip { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--pt-line-2); background: #fff; font-size: 15px; cursor: pointer; }
.pt-chip[aria-pressed="true"] { background: var(--pt-ink); border-color: var(--pt-ink); color: #fff; font-weight: 600; }
/* Datum + tijdvak (27-09): op de telefoon onder elkaar, vanaf 480 px naast elkaar in twee kolommen.
   Safari op de iPhone geeft een datumveld een eigen minimumbreedte en hoogte; in de oude flex-rij
   liepen datum en tijdvak daardoor door elkaar. */
.pt-veldrij { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 12px; }
.pt-veldrij > .pt-veld { min-width: 0; }
.pt-veldrij > .pt-veld:only-child { max-width: 340px; }
@media (min-width: 480px) { .pt-veldrij:has(> .pt-veld + .pt-veld) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }
.pt-veldrij input, .pt-veldrij select { height: 46px; min-height: 46px; box-sizing: border-box; }
.pt-veld input[type="date"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; line-height: 24px; text-align: left; background: #fff; }
.pt-veld input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.pt-veld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pt-veld > label, .pt-veld > .pt-label { font-size: 14px; font-weight: 600; }
.pt-veld .pt-opt { font-weight: 400; color: var(--pt-ink-3); }
.pt-veld input, .pt-veld select, .pt-veld textarea { width: 100%; min-height: 46px; border: 1px solid var(--pt-line-2); border-radius: 10px; padding: 10px 12px; background: #fff; font-size: 16px; }
/* Keuzeveld (tijdvak) overal hetzelfde: eigen pijltje, tekst verticaal in het midden. Met de
   standaardopmaak kapte Safari de tekst onderaan af zodra het veld 46 px hoog was. */
.pt-veld select { -webkit-appearance: none; appearance: none; height: 46px; line-height: 24px; padding: 10px 38px 10px 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6573' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px 16px; text-overflow: ellipsis; }
.pt-veld select::-ms-expand { display: none; }
.pt-veld textarea { min-height: 84px; resize: vertical; }
.pt-veld input[aria-invalid="true"], .pt-veld textarea[aria-invalid="true"] { border-color: var(--pt-fout); }
.pt-fout { font-size: 13.5px; color: var(--pt-fout); }
.pt-hint { font-size: 13.5px; color: var(--pt-ink-3); }
.pt-melding { border-radius: 12px; padding: 12px 14px; font-size: 14.5px; background: var(--pt-fout-bg); color: var(--pt-fout); }
.pt-melding.pt-let { background: var(--pt-let-bg); color: var(--pt-let-ink); }
.pt-melding.pt-info { background: var(--pt-soft); color: var(--pt-ink-2); }

/* Voertuigen */
.pt-voertuigen { display: flex; flex-direction: column; gap: 4px; }
.pt-voertuig { width: 100%; min-height: 62px; display: flex; align-items: center; gap: 14px; padding: 8px 12px; border: 2px solid transparent; border-radius: 12px; background: #fff; text-align: left; cursor: pointer; }
.pt-voertuig:hover { background: var(--pt-soft); }
.pt-voertuig[aria-checked="true"] { border-color: var(--pt-ink); background: var(--pt-soft); }
.pt-voertuig img, .pt-voertuig .pt-icoon { width: 72px; height: 34px; object-fit: contain; flex-shrink: 0; }
.pt-voertuig .pt-icoon { color: var(--pt-ink-2); }
.pt-voertuig .pt-naam { display: block; font-size: 15px; font-weight: 600; }
.pt-voertuig .pt-spec { display: block; font-size: 13px; color: var(--pt-ink-3); }
.pt-voertuig .pt-tekstblok { flex-grow: 1; min-width: 0; }
.pt-voertuig .pt-prijs { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt-dicht .pt-prijs { filter: blur(6px); user-select: none; }
.pt-laden .pt-prijs { color: var(--pt-ink-3); }

/* Telefoonvraag */
.pt-gate { border-radius: 14px; background: var(--pt-soft); padding: 16px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.pt-gate h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.pt-gate form { display: flex; gap: 8px; flex-wrap: wrap; }
.pt-gate input { flex: 1 1 200px; min-width: 0; height: 50px; border: 1.5px solid var(--pt-ink); border-radius: 12px; padding: 0 14px; font-size: 17px; background: #fff; }

/* Extra's */
.pt-extras { display: flex; flex-direction: column; gap: 8px; }
.pt-extra { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--pt-line); border-radius: 12px; cursor: pointer; }
.pt-extra input { width: 20px; height: 20px; margin: 0; accent-color: var(--pt-ink); flex-shrink: 0; }
.pt-extra .pt-extra-tekst { flex-grow: 1; font-size: 15px; }
.pt-extra .pt-extra-tekst small { display: block; font-size: 13px; color: var(--pt-ink-3); }
.pt-extra .pt-extra-prijs { font-size: 14px; color: var(--pt-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Samenvatting */
.pt-zij { display: flex; flex-direction: column; gap: 14px; }
.pt-kaartje { border-radius: 12px; overflow: hidden; background: #E9ECF0; aspect-ratio: 16 / 9; }
.pt-kaartje svg { display: block; width: 100%; height: 100%; }
.pt-keus { display: flex; align-items: center; gap: 12px; }
.pt-keus img, .pt-keus .pt-icoon { width: 64px; height: 30px; object-fit: contain; flex-shrink: 0; }
.pt-keus strong { display: block; font-size: 16px; }
.pt-keus span { display: block; font-size: 14px; color: var(--pt-ink-2); }
.pt-regels { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--pt-soft); font-size: 14px; color: var(--pt-ink-2); font-variant-numeric: tabular-nums; }
.pt-regel { display: flex; justify-content: space-between; gap: 16px; }
.pt-regel span:last-child { color: var(--pt-ink); white-space: nowrap; }
.pt-totaal { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 1px solid var(--pt-soft); }
.pt-totaal span:first-child { font-size: 16px; font-weight: 600; }
.pt-totaal strong { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pt-noot { font-size: 13px; color: var(--pt-ink-3); line-height: 1.45; }
.pt-wa { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 5px 11px; border-radius: 999px; background: #25D366; color: #fff !important; font-weight: 600; text-decoration: none !important; vertical-align: middle; }
.pt-wa:hover { background: #1EBE5B; }
.pt-wa:focus-visible { outline: 2px solid var(--pt-ink, #0F172A); outline-offset: 2px; }

/* Knoppen */
.pt-knop { min-height: 52px; width: 100%; padding: 0 18px; border: none; border-radius: 12px; background: var(--pt-accent); color: var(--pt-accent-ink); font-size: 16px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.pt-knop:hover { filter: brightness(0.94); }
.pt-knop[disabled], .pt-knop[aria-disabled="true"] { opacity: .45; cursor: not-allowed; filter: none; }
.pt-knop-2 { min-height: 48px; padding: 0 18px; border: 1.5px solid var(--pt-line-2); border-radius: 12px; background: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.pt-link { border: none; background: none; padding: 6px 0; font-size: 14.5px; font-weight: 600; color: var(--pt-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pt-link-plus { border: none; background: none; padding: 6px 0; font-size: 14.5px; font-weight: 600; color: var(--pt-ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.pt-acties { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* Uitklappen */
.pt-uit { border-top: 1px solid var(--pt-soft); }
.pt-uit > summary { list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; }
.pt-uit > summary::-webkit-details-marker { display: none; }
.pt-uit > summary::after { content: '+'; font-size: 20px; font-weight: 400; color: var(--pt-ink-3); }
.pt-uit[open] > summary::after { content: '−'; }
.pt-uit-inhoud { display: flex; flex-direction: column; gap: 12px; padding-bottom: 14px; }
.pt-twee { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.pt-drie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pt-vinkjes { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.pt-vinkjes label { display: inline-flex; gap: 8px; align-items: center; }
.pt-vinkjes input { width: 18px; height: 18px; accent-color: var(--pt-ink); }
.pt-bestanden { display: flex; flex-direction: column; gap: 6px; }
/* Het verborgen bestandsveld (27-09): Safari en Chrome telden de knop in dat veld mee voor de
   paginabreedte, waardoor de pagina zijwaarts scrolde zodra "Aantal, gewicht en afmetingen" open
   stond. Nu ingesloten in zijn label. */
.pt-veld label.pt-knop-2 { position: relative; overflow: hidden; }
.pt input[type="file"].pt-sr { left: 0; top: 0; }
.pt-bestand { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 14px; padding: 6px 10px; border: 1px solid var(--pt-line); border-radius: 8px; }

/* Controle */
.pt-overzicht { display: flex; flex-direction: column; }
.pt-blok { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--pt-soft); }
.pt-blok:last-child { border-bottom: none; }
.pt-blok dt { font-size: 13px; color: var(--pt-ink-3); margin-bottom: 2px; }
.pt-blok dd { margin: 0; font-size: 15px; white-space: pre-line; }
.pt-akkoord { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
.pt-akkoord input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--pt-ink); }
.pt-akkoord a { color: var(--pt-ink); }
/* Betaalwijze (29-09-2026): zonder toeslag, of PayPal met betaalkosten */
.pt-betaalwijze { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pt-betaalwijze legend { padding: 0; margin-bottom: 8px; font-size: 14.5px; font-weight: 600; }
.pt-betaal { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--pt-line-2); border-radius: 12px; cursor: pointer; font-size: 14.5px; line-height: 1.4; }
.pt-betaal input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--pt-ink); }
.pt-betaal small { display: block; margin-top: 2px; font-size: 13px; color: var(--pt-ink-3); }
.pt-betaal:has(input:checked) { border-color: var(--pt-ink); box-shadow: inset 0 0 0 1px var(--pt-ink); }

/* Onderbalk op de telefoon */
.pt-balk { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--pt-line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; box-shadow: 0 -8px 24px rgba(17, 19, 24, .08); }
.pt-balk .pt-balk-prijs { display: flex; flex-direction: column; }
.pt-balk .pt-balk-prijs small { font-size: 12.5px; color: var(--pt-ink-3); }
.pt-balk .pt-balk-prijs strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.pt-balk .pt-knop { width: auto; flex-grow: 1; min-height: 50px; }
.pt-met-balk { padding-bottom: 90px; }

/* Start (homepage) */
.pt-start { background: var(--pt-panel); border-radius: 20px; padding: 18px; box-shadow: 0 10px 40px rgba(17, 19, 24, .12); display: flex; flex-direction: column; gap: 14px; }
.pt-start .pt-knop { margin-top: 4px; }

/* Klaar */
.pt-klaar { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; padding: 28px 18px; }
.pt-klaar .pt-vink { width: 56px; height: 56px; border-radius: 50%; background: #E7F5EE; color: var(--pt-ok); display: flex; align-items: center; justify-content: center; }

@media (max-width: 520px) {
  .pt-stappen { gap: 6px; font-size: 13px; }
  .pt-stappen li:not([aria-current]) .pt-stap-naam { display: none; }
  .pt-stappen .pt-streep { width: 16px; }
  .pt-voertuig { gap: 10px; padding: 8px; }
  .pt-voertuig img, .pt-voertuig .pt-icoon { width: 56px; height: 28px; }
  .pt-kaart { padding: 16px; }
}
@media (min-width: 640px) {
  .pt-kaart { padding: 22px 24px; }
  .pt-twee { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-titel { font-size: 30px; }
}
@media (min-width: 960px) {
  .pt-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; }
  .pt-zij { position: sticky; top: 24px; }
  .pt-balk { display: none; }
  .pt-met-balk { padding-bottom: 0; }
  .pt-start { padding: 22px; }
}
@media (max-width: 959px) {
  .pt-zij-desktop { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .pt-voertuig, .pt-chip, .pt-knop { transition: background-color .15s ease, border-color .15s ease, filter .15s ease; }
}
