/* ============================================================
   Stylesheet — Kaatsdag Familie Dijkstra
   Kleurenschema: blauw (#1565C0) en oranje (#E87722)
   ============================================================ */

/* --- Reset & basisstijlen ---------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #EBF3FF;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Header ------------------------------------------------ */
.site-header {
    width: 100%;
    background: #0D47A1;
    line-height: 0;
}

.site-header img {
    width: 100%;
    display: block;
    max-height: 170px;
    object-fit: cover;
    object-position: center;
}

/* --- Hoofdcontainer --------------------------------------- */
.container {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 32px 20px 48px;
    flex: 1;
}

/* --- Editie-info ------------------------------------------ */
.editie-info {
    background: #ffffff;
    border-left: 5px solid #1565C0;
    border-radius: 6px;
    padding: 24px 28px;
    margin-bottom: 28px;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

.editie-info h1 {
    font-size: 1.7rem;
    color: #0D47A1;
    margin-bottom: 6px;
}

.editie-datum {
    font-size: 1rem;
    color: #555;
    margin-bottom: 8px;
}

.editie-beschrijving {
    color: #666;
    font-size: .95rem;
}

/* --- Tariefinformatie ------------------------------------- */
.tarief-info {
    background: #ffffff;
    border-left: 5px solid #E87722;
    border-radius: 6px;
    padding: 20px 28px;
    margin-bottom: 28px;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
    font-size: .95rem;
    color: #444;
}

.tarief-info p {
    margin-bottom: 12px;
}

.tarief-info p:last-child {
    margin-bottom: 0;
}

.tarief-tabel {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.tarief-tabel td {
    padding: 7px 0;
    border-bottom: 1px solid #EBF3FF;
}

.tarief-tabel td:last-child {
    text-align: right;
    font-weight: 600;
    color: #1565C0;
    white-space: nowrap;
    padding-left: 16px;
}

.tarief-tabel tr:last-child td {
    border-bottom: none;
}

/* --- Foutmeldingen ---------------------------------------- */
.foutmelding {
    background: #fff3f3;
    border: 1px solid #e57373;
    border-left: 5px solid #c62828;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 24px;
    color: #c62828;
}

.foutmelding ul {
    margin-top: 8px;
    padding-left: 20px;
}

.foutmelding li {
    margin-bottom: 4px;
}

/* --- Formuliersecties ------------------------------------- */
.formulier-sectie {
    background: #ffffff;
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

.formulier-sectie h2 {
    font-size: 1.2rem;
    color: #0D47A1;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E3F2FD;
}

.uitleg {
    color: #666;
    font-size: .9rem;
    margin-bottom: 20px;
}

/* --- Veldgroepen ------------------------------------------ */
.veld-groep {
    margin-bottom: 18px;
}

.veld-groep label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: .95rem;
}

.verplicht {
    color: #c62828;
}

.optioneel {
    font-weight: 400;
    color: #888;
    font-size: .85rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #C5D5EA;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    color: #333;
    background: #fafafa;
    transition: border-color .2s, box-shadow .2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #1565C0;
    box-shadow: 0 0 0 3px rgba(21,101,192,.15);
    background: #fff;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* --- Naam + leeftijd naast elkaar ------------------------- */
.veld-rij {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.veld-naam {
    flex: 1;
}

.veld-leeftijd {
    flex: 1;
}

.leeftijd-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.leeftijd-input {
    width: 100%;
    text-align: center;
    -moz-appearance: textfield;
}

.leeftijd-input::-webkit-outer-spin-button,
.leeftijd-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.leeftijd-suffix {
    color: #666;
    font-size: .9rem;
    white-space: nowrap;
}


/* --- Deelnemerblokken ------------------------------------- */
.deelnemer-blok {
    border: 1.5px solid #C5D5EA;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    background: #F5F9FF;
    transition: border-color .2s;
}

.deelnemer-blok:focus-within {
    border-color: #1565C0;
}

.deelnemer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.deelnemer-header h3 {
    font-size: 1rem;
    color: #1565C0;
    font-weight: 700;
}

.verwijder-btn {
    background: none;
    border: 1px solid #e57373;
    color: #c62828;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: .85rem;
    cursor: pointer;
    line-height: 1;
    transition: background .15s, color .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verwijder-btn:hover {
    background: #c62828;
    color: #fff;
}

/* --- Activiteiten (checkboxes) ---------------------------- */
.activiteiten {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .95rem;
    cursor: pointer;
    color: #333;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1565C0;
    cursor: pointer;
    flex-shrink: 0;
}

.prijs-hint {
    color: #E87722;
    font-size: .82rem;
    font-weight: 600;
}

.kaatsen-label.uitgeschakeld {
    opacity: .35;
    pointer-events: none;
    cursor: not-allowed;
}

/* --- Kosten per deelnemer --------------------------------- */
.deelnemer-kosten {
    font-size: .9rem;
    color: #555;
    margin-top: 8px;
}

.deelnemer-kosten strong {
    color: #0D47A1;
}

/* --- Toevoegknop ------------------------------------------ */
.deelnemer-acties {
    margin-top: 8px;
}

/* --- Kostenoverzicht -------------------------------------- */
.kostenoverzicht {
    background: #E3F2FD;
    border: 1.5px solid #90CAF9;
}

.kostenoverzicht h2 {
    border-bottom-color: #90CAF9;
}

.kosten-regel {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #BBDEFB;
    font-size: .95rem;
    color: #444;
}

.kosten-regel:last-of-type {
    border-bottom: none;
}

.totaal-regel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 0;
    margin-top: 8px;
    border-top: 2px solid #90CAF9;
    font-size: 1.1rem;
}

.totaal-regel strong {
    font-size: 1.3rem;
    color: #0D47A1;
}

/* --- Knoppen ---------------------------------------------- */
.formulier-acties {
    text-align: right;
    margin-top: 8px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s, opacity .2s;
}

.btn-primair {
    background: #1565C0;
    color: #ffffff;
    border-color: #1565C0;
}

.btn-primair:hover {
    background: #0D47A1;
    border-color: #0D47A1;
}

.btn-secundair {
    background: #ffffff;
    color: #E87722;
    border-color: #E87722;
}

.btn-secundair:hover {
    background: #FFF3E0;
}

.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* --- Bedanktpagina ---------------------------------------- */
.bedankt-blok {
    background: #ffffff;
    border-radius: 10px;
    padding: 48px 36px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    max-width: 560px;
    margin: 0 auto;
}

.bedankt-icoon {
    width: 72px;
    height: 72px;
    background: #1565C0;
    color: #fff;
    border-radius: 50%;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.bedankt-blok h1 {
    font-size: 1.7rem;
    color: #0D47A1;
    margin-bottom: 16px;
}

.bedankt-intro {
    color: #444;
    margin-bottom: 28px;
    font-size: 1.05rem;
}

.bedrag-blok {
    background: #E3F2FD;
    border: 1.5px solid #90CAF9;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bedrag-label {
    font-size: .9rem;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.bedrag-waarde {
    font-size: 2rem;
    font-weight: 700;
    color: #0D47A1;
}

.bedankt-info {
    color: #666;
    font-size: .95rem;
    margin-bottom: 32px;
}

/* --- Footer ----------------------------------------------- */
.site-footer {
    background: #0D47A1;
    color: #90CAF9;
    text-align: center;
    padding: 18px 20px;
    font-size: .85rem;
    margin-top: auto;
}

/* --- Responsive (mobiel) ---------------------------------- */
@media (max-width: 600px) {
    .container {
        padding: 20px 14px 36px;
    }

    .formulier-sectie {
        padding: 20px 16px;
    }

    .editie-info {
        padding: 18px 16px;
    }

    .editie-info h1 {
        font-size: 1.35rem;
    }

    .activiteiten {
        flex-direction: column;
        gap: 12px;
    }

    .formulier-acties {
        text-align: stretch;
    }

    .btn-primair {
        width: 100%;
        text-align: center;
    }

    .bedankt-blok {
        padding: 32px 20px;
    }

    .bedrag-waarde {
        font-size: 1.6rem;
    }

    .totaal-regel {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
