/* Donate-module: doneerformulieren, acties, simulator, bevestiging. Bouwt op app.css. */

/* Honeypot: buiten beeld voor mensen, wel in de HTML voor bots. */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.doneer-kader { display: grid; gap: var(--r-6); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .doneer-kader { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }

.doneer-form fieldset { border: 0; padding: 0; margin: 0 0 var(--r-5); }
.doneer-form legend { font-weight: 700; font-size: var(--t-md); margin-bottom: var(--r-3); padding: 0; }
.doneer-stap { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--navy); color: var(--wit); font-size: var(--t-sm); margin-right: var(--r-2); }
.doneer-totaal { display: flex; justify-content: space-between; align-items: baseline; gap: var(--r-3); padding: var(--r-4); border-radius: var(--radius); background: var(--navy-licht); margin: var(--r-4) 0; }
.doneer-totaal strong { font-size: var(--t-lg); color: var(--navy-donker); }
.doneer-veilig { display: flex; gap: var(--r-2); align-items: center; font-size: var(--t-sm); color: var(--tekst-muted); margin-top: var(--r-3); }
.doneer-veilig svg { width: 18px; height: 18px; flex: none; }

.project-keuzes { display: grid; gap: var(--r-2); }
.project-keuze { position: relative; display: block; }
.project-keuze input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.project-keuze span { display: block; padding: var(--r-3) var(--r-4); border: 2px solid var(--rand); border-radius: var(--radius-klein); background: var(--wit); }
.project-keuze span strong { display: block; }
.project-keuze span small { color: var(--tekst-muted); }
.project-keuze input:checked + span { border-color: var(--navy); background: var(--navy-licht); }
.project-keuze input:focus-visible + span { box-shadow: var(--focus); }

/* Acties */
.actie-kaarten { display: grid; gap: var(--r-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .actie-kaarten { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .actie-kaarten { grid-template-columns: repeat(3, 1fr); } }
.actie-kaart { display: flex; flex-direction: column; background: var(--wit); border: 1px solid var(--grijs); border-radius: var(--radius-groot); overflow: hidden; box-shadow: var(--schaduw); }
.actie-kaart-beeld { aspect-ratio: 5 / 3; background: var(--navy-licht); }
.actie-kaart-beeld img { width: 100%; height: 100%; object-fit: cover; display: block; }
.actie-kaart-inhoud { display: flex; flex-direction: column; gap: var(--r-3); padding: var(--r-5); flex: 1; }
.actie-kaart-inhoud h3 { margin: 0; }
.actie-kaart-inhoud h3 a { color: var(--tekst); text-decoration: none; }
.actie-kaart-inhoud h3 a:hover { text-decoration: underline; }
.actie-kaart-inhoud .btn { margin-top: auto; align-self: flex-start; }
.actie-afgelopen .actie-kaart-beeld { filter: grayscale(.6); }

.actie-beeld { border-radius: var(--radius-groot); overflow: hidden; margin-bottom: var(--r-5); aspect-ratio: 5 / 3; background: var(--navy-licht); }
.actie-beeld img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Mobiel: eerst de stand (met knop "Doneer nu"), dan het verhaal, dan het formulier. */
@media (max-width: 959px) {
  .actie-stand { display: contents; }
  .actie-stand > .kaart:first-child { order: -1; }
  .actie-stand > .actie-formkaart { margin-top: 0; }
}
@media (min-width: 960px) { .alleen-mobiel { display: none; } }
.actie-formkaart { scroll-margin-top: 88px; }
.actie-stand-cijfers { display: flex; flex-wrap: wrap; gap: var(--r-5); margin: var(--r-3) 0 0; font-size: var(--t-sm); color: var(--tekst-muted); }
.actie-stand-cijfers strong { display: block; color: var(--tekst); font-size: var(--t-lg); }
.stand-live { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--t-xs); color: var(--ok); }
.stand-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.stand-bijgewerkt { animation: stand-flits 1.2s ease; }
@keyframes stand-flits { 0% { background: var(--let-op-bg); } 100% { background: transparent; } }

/* Simulator */
.simulatie { max-width: 560px; margin: 0 auto; }
.simulatie-banner { display: flex; gap: var(--r-3); align-items: center; padding: var(--r-3) var(--r-4); border-radius: var(--radius); background: var(--let-op-bg); color: var(--let-op); font-weight: 700; margin-bottom: var(--r-5); }
.simulatie-bedrag { font-size: var(--t-2xl); font-weight: 800; color: var(--navy-donker); margin: var(--r-2) 0; }
.simulatie-knoppen { display: grid; gap: var(--r-3); margin-top: var(--r-5); }
@media (min-width: 520px) { .simulatie-knoppen { grid-template-columns: 2fr 1fr 1fr; } }

/* Bevestiging */
.bevestiging-icoon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: var(--r-4); }
.bevestiging-icoon svg { width: 34px; height: 34px; }
.bevestiging-ok { background: var(--ok-bg); color: var(--ok); }
.bevestiging-wacht { background: var(--info-bg); color: var(--info); }
.bevestiging-fout { background: var(--fout-bg); color: var(--fout); }

/* Overschrijven */
.iban-groot { font-family: var(--font-mono); font-size: var(--t-lg); font-weight: 700; letter-spacing: .04em; }
.kopieer-rij { display: flex; flex-wrap: wrap; align-items: center; gap: var(--r-3); }

/* Stap 4: compact doneerformulier (bedrag, keuzelijst project, gegevens, naam tonen/anoniem, berichtje, extra's) */
.site .doneer-form .doneer-blok { margin: 0 0 22px; }
.site .doneer-form legend, .site .doneer-form .doneer-legend { font-family: var(--kop); font-weight: 400; font-size: 22px; line-height: 1.2; color: var(--inkt, #1F2A26); margin: 0 0 12px; display: flex; align-items: center; }
.site .doneer-form .bedragen { margin-bottom: 8px; }
.site .doneer-form .bedrag-optie span { min-height: 48px; }
.site .doneer-form .invoer-euro input { min-height: 48px; padding-top: 10px; padding-bottom: 10px; }
.site .doneer-form .doneer-select { width: 100%; min-height: 48px; padding: 10px 40px 10px 14px; font-weight: 600; text-overflow: ellipsis; }
.doneer-twee { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .doneer-twee { grid-template-columns: 1fr 1fr; } }
.site .doneer-form .doneer-twee .veld { margin-bottom: 12px; }
.site .doneer-form .doneer-twee label { font-size: 14px; margin-bottom: 4px; }
.site .doneer-form .doneer-twee input { min-height: 48px; padding-top: 10px; padding-bottom: 10px; }
.site .doneer-form .doneer-zichtbaar { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.doneer-tweeluik { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.doneer-optie { position: relative; display: block; margin: 0; font-weight: 400; }
.doneer-optie input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.doneer-optie span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 10px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--lijn, #DDD3C1); background: #fff; font-size: 15px; font-weight: 600; color: var(--inkt, #1F2A26); text-align: center; }
.doneer-optie input:checked + span { box-shadow: inset 0 0 0 2px var(--palm, #54B890); background: var(--mint, #E3F2EA); color: var(--diep, #123A2E); }
.doneer-optie input:focus-visible + span { box-shadow: inset 0 0 0 2px var(--palm, #54B890), var(--focus); }
.site .doneer-form .doneer-bericht { border: 0; padding: 0; background: none; margin: 0; }
.site .doneer-form .doneer-bericht summary { margin: 0; display: flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--diep, #123A2E); list-style: none; }
.doneer-bericht summary::-webkit-details-marker { display: none; }
.doneer-bericht summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mint, #E3F2EA); font-weight: 700; flex: none; }
.doneer-bericht[open] summary::before { content: "–"; }
.site .doneer-form .doneer-bericht .veld { margin: 4px 0 0; }
.doneer-form textarea { min-height: 72px; width: 100%; }
.site .doneer-form .doneer-extra { border: 0; padding: 4px 14px; margin: 0 0 14px; border-radius: 16px; background: var(--zand, #F5EFE4); min-width: 0; }
.site .doneer-form .doneer-extra .keuze { display: flex; align-items: center; min-height: 44px; margin: 0; cursor: pointer; }
.site .doneer-form .doneer-extra .keuze input { margin: 0; }
.doneer-kosten strong { color: var(--inkt, #1F2A26); white-space: nowrap; }
.doneer-totaal > span small { display: block; font-size: 13px; opacity: .85; margin-top: 2px; }
.doneer-totaal > span small[hidden] { display: none; }
.site .doneer-totaal strong { white-space: nowrap; }
.site .doneer-form .doneer-veilig { margin-top: 10px; font-size: 13.5px; }
.doneer-kort { display: none; }
@media (max-width: 1000px) {
  .site .doneer-zij { display: none; }
  .doneer-kort { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 14.5px; color: var(--grijs, #56615C); }
  .doneer-kort img { width: 32px; height: 32px; flex: none; }
  .doneer-kort span { flex: 1 1 200px; }
  .doneer-kort a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; }
  .site .doneer-raster { gap: 18px; }
}
@media (max-width: 620px) {
  .site .pagina-kop.doneer-kop { padding: calc(var(--kop-h) + 14px) 0 52px; }
  .site .pagina-kop.doneer-kop h1 { font-size: 34px; }
  .site .pagina-kop.doneer-kop .lbl { display: none; }
  .site .pagina-kop.doneer-kop .inleiding { font-size: 15px; margin-top: 8px; }
  .site .doneer-kaart { padding: 20px 16px; }
  .site .doneer-form legend, .site .doneer-form .doneer-legend { font-size: 20px; margin-bottom: 10px; }
  .site .doneer-form .doneer-stap { width: 28px; height: 28px; margin-right: 10px; }
  .site .doneer-form .bedragen { gap: 6px; }
  .site .doneer-form .doneer-blok { margin-bottom: 18px; }
  .site .doneer-totaal { padding: 14px 18px; }
  .site .doneer-totaal strong { font-size: 30px; }
  .site .sectie.sectie-overlap { padding-bottom: 32px; }
}

/* Bevestiging, mislukt en geannuleerd */
.bevestiging-anbi { display: flex; gap: 14px; align-items: center; margin-top: 22px; padding: 16px 18px; border-radius: 18px; background: var(--mint, #E3F2EA); color: var(--diep, #123A2E); font-size: 15px; }
.bevestiging-anbi img { width: 48px; height: 48px; flex: none; }
.bevestiging-anbi p { margin: 0; }
.bevestiging-anbi b { display: block; }
.bevestiging-bericht { margin: 18px 0 0; padding: 14px 18px; border-left: 3px solid var(--palm, #54B890); background: var(--zand, #F5EFE4); border-radius: 0 14px 14px 0; font-style: italic; overflow-wrap: anywhere; }
.bevestiging-kaart .gegevens dd { overflow-wrap: anywhere; }
.bevestiging-knoppen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.bevestiging-hulp { margin: 22px 0 0; font-size: 15px; color: var(--grijs, #56615C); }
@media (max-width: 520px) {
  .doneer-tweeluik { grid-template-columns: 1fr 1fr; }
  .bevestiging-knoppen .btn, .bevestiging-knoppen .knop { flex: 1 1 100%; justify-content: center; text-align: center; }
}

/* Stap 5: periodiek (keuze hoe vaak, persoonlijke pagina) */
.doneer-periode { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 10px; padding: 4px; border-radius: 16px; background: var(--zand, #F5EFE4); }
.doneer-periode label { position: relative; margin: 0; font-weight: 400; }
.doneer-periode input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.doneer-periode span { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 6px 4px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: var(--grijs, #56615C); text-align: center; line-height: 1.15; }
.doneer-periode input:checked + span { background: #fff; color: var(--diep, #123A2E); box-shadow: 0 2px 8px -4px rgba(13, 38, 32, .35), inset 0 0 0 2px var(--palm, #54B890); }
.doneer-periode input:focus-visible + span { box-shadow: inset 0 0 0 2px var(--palm, #54B890), var(--focus); }
.doneer-periode-uitleg { margin: -2px 0 12px; font-size: 13.5px; color: var(--grijs, #56615C); }
.doneer-periode-uitleg[hidden] { display: none; }
.periodiek-blok { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--lijn, #DDD3C1); }
.periodiek-blok .h3 { margin-bottom: 10px; }
.periodiek-rij { display: flex; gap: 8px; align-items: stretch; }
.periodiek-rij .invoer-euro { flex: 1; }
.periodiek-rij .btn { min-height: 48px; }
.periodiek-termijnen { list-style: none; margin: 8px 0 0; padding: 0; font-size: 15px; }
.periodiek-termijnen li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--lijn, #DDD3C1); }
.simulatie-bedrag small { font-size: 16px; font-weight: 600; color: var(--grijs, #56615C); }
.site .doneer-totaal strong { white-space: normal; text-align: right; }
@media (max-width: 620px) {
  .doneer-periode { margin-bottom: 8px; }
  .doneer-periode span { min-height: 40px; font-size: 13.5px; }
  .site .doneer-form .doneer-blok:first-of-type legend { margin-bottom: 8px; }
  .site .doneer-totaal { gap: 10px; }
  .site .doneer-totaal strong { font-size: 28px; }
}
