/* =========================================================
   WAMELSE AVOND3DAAGSE
   INSCHRIJFPAGINA.CSS
   ========================================================= */
/* ---------------------------------------------------------
   0. BUITENKANT INSCHRIJFFORMULIER
--------------------------------------------------------- */

.inschrijf-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 90%;
    max-width: 600px;
    max-height: 80dvh;

    overflow-x: hidden;
    overflow-y: auto;

    padding: 30px;

    background: rgba(245, 222, 179, 0.95);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);

    box-sizing: border-box;
    z-index: 20000;
}

/* ---------------------------------------------------------
   1. BASIS
--------------------------------------------------------- */

.inschrijf-popup,
.inschrijf-popup * {
    box-sizing: border-box;
}

.inschrijf-popup {
    position: relative;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 25px 20px;

    font-family: Calibri, Arial, sans-serif;
    color: #222;

    background: transparent;
    border-radius: 18px;
}


/* ---------------------------------------------------------
   2. LOADER
--------------------------------------------------------- */

#loader-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;

    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

#loader-overlay > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: white;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

.spinner {
    width: 32px;
    height: 32px;
    margin: 0 0 12px 0;

    border: 4px solid rgba(255, 255, 255, 0.35);
    border-top-color: white;
    border-radius: 50%;

    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ---------------------------------------------------------
   3. TITEL EN PRIJS
--------------------------------------------------------- */

.inschrijf-popup h2 {
    margin: 0 0 8px;
    text-align: center;
    font-size: 24px;
    line-height: 1.15;
}

.subtekst {
    margin: 0 0 18px;
    text-align: center;
    color: #333;
    font-size: 17px;
}


/* ---------------------------------------------------------
   4. HOOFDDEELNEMER
--------------------------------------------------------- */

.hoofdblok {
    width: 100%;
    margin: 0 0 14px;
    padding: 12px;

    background: #f9de9b;
    border-radius: 12px;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.15);
}

.rij {
    display: flex;
    align-items: center;
    gap: 6px;

    width: 100%;
    margin-bottom: 8px;
}

.rij input,
.rij select {
    min-width: 0;
    height: 36px;
    padding: 5px 7px;

    border: 1px solid #999;
    border-radius: 7px;

    font-family: inherit;
    font-size: 15px;
}

.rij input {
    flex: 1 1 0;
}

.rij input.extra-smal {
    flex: 0 1 120px;
    width: 120px;
}

.rij select.mini {
    flex: 0 0 80px;
    width: 80px;

    font-weight: bold;
}

.hoofdblok input[type="email"] {
    display: block;

    width: 100%;
    height: 36px;
    margin: 0;
    padding: 5px 7px;

    border: 1px solid #999;
    border-radius: 7px;

    font-family: inherit;
    font-size: 15px;
}


/* ---------------------------------------------------------
   5. EXTRA DEELNEMERS
--------------------------------------------------------- */

.medelopers {
    width: 100%;
    margin-top: 10px;
}

.medelopers-kader,
#medeloper-lijst {
    width: 100%;
    min-width: 0;
}

.medeloper-item {
    display: flex;
    align-items: center;
    gap: 6px;

    width: 100%;
    min-width: 0;
    margin-bottom: 10px;
    padding: 10px;

    background: rgba(249, 222, 155, 0.30);
    border: 1px solid #c9b37a;
    border-radius: 12px;
}

.medeloper-item input,
.medeloper-item select {
    min-width: 0;
    height: 36px;
    padding: 5px 7px;

    border: 1px solid #999;
    border-radius: 7px;

    font-family: inherit;
    font-size: 15px;
}

.medeloper-item input {
    flex: 1 1 0;
}

.medeloper-item input.extra-smal {
    flex: 0 1 120px;
}

.medeloper-item select.mini {
    flex: 0 0 80px;

    font-weight: bold;
    text-align: center;
}


/* ---------------------------------------------------------
   6. VERWIJDERKNOP EXTRA DEELNEMER
--------------------------------------------------------- */

.verwijder {
    flex: 0 0 36px;

    width: 36px;
    height: 36px;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    background: #c62828;

    border: none;
    border-radius: 7px;

    font-size: 18px;
    cursor: pointer;
}


/* ---------------------------------------------------------
   7. EXTRA DEELNEMER TOEVOEGEN
--------------------------------------------------------- */

.plus-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    width: fit-content;
    max-width: 100%;

    margin: 6px 0 0 auto;
    padding: 7px 10px;

    color: white;
    background: #2e7d32;

    border: none;
    border-radius: 8px;

    font-family: inherit;
    font-size: 15px;
    line-height: 1;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.plus-btn:hover {
    background: #3aa043;
}

.plus-btn:focus,
.plus-btn:active {
    outline: none;
    background: #2e7d32;
}

.plus-icon {
    color: white;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}


/* ---------------------------------------------------------
   8. SCHEIDINGSLIJN
--------------------------------------------------------- */

.inschrijf-popup hr {
    width: 100%;
    margin: 14px 0 10px;

    border: 0;
    border-top: 1px solid #999;
}


/* ---------------------------------------------------------
   9. TOTAALBEDRAG
--------------------------------------------------------- */

.totaal {
    margin: 0 0 12px;

    text-align: right;

    color: #b71c1c;
    font-size: 18px;
    font-weight: bold;
}


/* ---------------------------------------------------------
   10. INFORMATIE EN VOORWAARDEN
--------------------------------------------------------- */

.verplichting {
    margin: 0 0 8px 5px;

    color: #000;
    font-size: 13px;
    text-align: left;
}

.mailinfo {
    margin: 0 0 8px 5px;

    color: #000;
    font-size: 13px;
    font-style: italic;
}

.mailinfo.links {
    text-align: left;
}

.akkoord {
    display: block;

    margin: 0 0 10px 5px;

    font-size: 15px;
    line-height: 1.25;
    text-align: left;
}

.akkoord input[type="checkbox"] {
    margin-right: 5px;
}

.eigenrisico {
    margin-left: 5px;

    color: #333;
    font-size: 13px;
    font-style: italic;
    text-align: left;
}

.foutmelding {
    margin: 8px 0 0 5px;

    color: #c62828;
    font-weight: bold;
    text-align: left;
}


/* ---------------------------------------------------------
   11. BETAALKNOP
--------------------------------------------------------- */

.submit-btn {
    display: block;

    width: fit-content;
    max-width: 100%;

    margin: 18px auto 0;
    padding: 10px 22px;

    color: white;
    background: linear-gradient(180deg, #006fe6, #004c99);

    border: none;
    border-radius: 12px;

    font-family: inherit;
    font-size: 19px;
    font-weight: bold;

    box-shadow: 0 4px 20px rgba(0, 76, 153, 0.35);
    cursor: pointer;

    transition: 0.15s ease-in-out;
}

.submit-btn:hover {
    background: linear-gradient(180deg, #1a88ff, #005bbd);
    transform: scale(1.03);
}


/* ---------------------------------------------------------
   12. WHATSAPP
--------------------------------------------------------- */

.whatsapp-zwevend {
    position: absolute;
    right: 5px;
    bottom: 0;

    z-index: 99;

    color: #25D366;
    background: transparent;

    text-align: center;
    text-decoration: none;
    font-family: inherit;
    font-weight: bold;
}

.whatsapp-zwevend img {
    display: block;

    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.whatsapp-zwevend span {
    display: block;

    margin-top: 2px;

    color: #007bff;
    font-size: 14px;
}


/* =========================================================
   13. MOBIEL
   Eén layout voor telefoons.
   Geen aparte A35 / A36 / Note20 regels.
========================================================= */

@media (max-width: 700px) {

    /* -----------------------------------------------------
       BUITENKANT INSCHRIJFFORMULIER
    ----------------------------------------------------- */

    .inschrijf-wrapper {
        top: 47%;
        left: 50%;
        transform: translate(-50%, -50%);

        width: 92vw;
        max-width: 600px;
        max-height: calc(100dvh - 90px);

        padding:
            clamp(5px, 0.8dvh, 12px)
            clamp(10px, 2.5vw, 15px);

        overflow-x: hidden;
        overflow-y: auto;
    }

    /* -----------------------------------------------------
       ALGEMENE SCHAAL
    ----------------------------------------------------- */

    .inschrijf-popup {
        width: 100%;
        max-width: none;

        margin: 0;
        padding:
            clamp(10px, 2.2vh, 18px)
            clamp(8px, 3vw, 16px);
    }


    /* -----------------------------------------------------
       TITEL
    ----------------------------------------------------- */

    .inschrijf-popup h2 {
        margin-bottom: clamp(3px, 0.8vh, 8px);

        font-size: clamp(20px, 5.5vw, 27px);
        line-height: 1.08;
    }

    .subtekst {
        margin-bottom: clamp(8px, 1.5vh, 14px);

        font-size: clamp(16px, 4.4vw, 20px);
        line-height: 1.1;
    }


    /* -----------------------------------------------------
       HOOFDDEELNEMER

       Voornaam      | Tussenvoegsel
       Achternaam    | Afstand
       E-mail over volledige breedte
    ----------------------------------------------------- */

    .hoofdblok {
        margin-bottom: clamp(7px, 1.2vh, 12px);
        padding: clamp(8px, 2.2vw, 11px);
    }

    .hoofdblok .rij {
        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(105px, 0.95fr);

        gap: clamp(5px, 1.5vw, 7px);

        margin-bottom: clamp(5px, 1vh, 8px);
    }

    .hoofdblok .rij input,
    .hoofdblok .rij input.extra-smal,
    .hoofdblok .rij select.mini {
        width: 100%;
        min-width: 0;
        max-width: none;
        height: clamp(36px, 5.5vh, 44px);

        flex: none;

        font-size: clamp(15px, 4vw, 18px);
    }

    .hoofdblok input[type="email"] {
        width: 100%;
        height: clamp(36px, 5.5vh, 44px);

        font-size: clamp(15px, 4vw, 18px);
    }


    /* -----------------------------------------------------
       EXTRA DEELNEMERS

       Voornaam      | Tussenvoegsel
       Achternaam    | Afstand | X

       BELANGRIJK:
       nooit breder dan formulier.
    ----------------------------------------------------- */

    .medelopers {
        width: 100%;
        min-width: 0;

        margin-top: clamp(5px, 1vh, 9px);
    }

    .medelopers-kader,
    #medeloper-lijst {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .medeloper-item {
        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(80px, 0.78fr)
            clamp(34px, 9vw, 40px);

        gap: clamp(5px, 1.4vw, 7px);

        width: 100%;
        min-width: 0;
        max-width: 100%;

        margin-bottom: 7px;
        padding: clamp(7px, 2vw, 10px);

        overflow: hidden;
    }

    .medeloper-item input,
    .medeloper-item input.extra-smal,
    .medeloper-item select.mini {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: clamp(35px, 5vh, 42px);

        flex: none;

        font-size: clamp(14px, 3.7vw, 17px);
    }

    /* Voornaam */
    .medeloper-item input:nth-of-type(1) {
        grid-column: 1 / 2;
        grid-row: 1;
    }

    /* Tussenvoegsel */
    .medeloper-item input:nth-of-type(2) {
        grid-column: 2 / 4;
        grid-row: 1;
    }

    /* Achternaam */
    .medeloper-item input:nth-of-type(3) {
        grid-column: 1 / 2;
        grid-row: 2;
    }

    /* Afstand */
    .medeloper-item select.mini {
        grid-column: 2 / 3;
        grid-row: 2;
    }

    /* Verwijderen */
    .medeloper-item .verwijder {
        grid-column: 3 / 4;
        grid-row: 2;

        width: 100%;
        min-width: 0;
        height: clamp(35px, 5vh, 42px);
    }


    /* -----------------------------------------------------
       EXTRA DEELNEMERS KNOP
    ----------------------------------------------------- */

    .plus-btn {
        width: fit-content;
        max-width: 100%;

        margin-top: clamp(4px, 0.8vh, 7px);
        margin-left: auto;

        padding: 7px 10px;

        font-size: clamp(14px, 3.8vw, 17px);

        white-space: nowrap;
    }


    /* -----------------------------------------------------
       LIJN EN TOTAAL
    ----------------------------------------------------- */

    .inschrijf-popup hr {
        margin:
            clamp(8px, 1.3vh, 12px)
            0
            clamp(7px, 1vh, 10px);
    }

    .totaal {
        margin-bottom: clamp(7px, 1.1vh, 11px);

        font-size: clamp(17px, 4.5vw, 20px);
    }


    /* -----------------------------------------------------
       TEKST ONDER FORMULIER
    ----------------------------------------------------- */

    .verplichting {
        margin-bottom: clamp(4px, 0.7vh, 7px);

        font-size: clamp(12px, 3.3vw, 14px);
    }

    .mailinfo {
        margin-bottom: clamp(5px, 0.8vh, 8px);

        font-size: clamp(12px, 3.3vw, 14px);
    }

    .akkoord {
        margin-bottom: clamp(6px, 1vh, 10px);

        font-size: clamp(13px, 3.6vw, 16px);
        line-height: 1.18;
    }


    /* -----------------------------------------------------
       BETAALKNOP
    ----------------------------------------------------- */

    .submit-btn {
        width: auto;
        max-width: calc(100% - 20px);

        margin-top: clamp(8px, 1.4vh, 14px);
        padding:
            clamp(8px, 1.3vh, 11px)
            clamp(18px, 5vw, 28px);

        font-size: clamp(18px, 4.8vw, 22px);
    }
}


/* =========================================================
   14. ZEER SMALLE TELEFOONS

   Alleen breedtebescherming.
   Geen apart toestelontwerp.
========================================================= */

@media (max-width: 360px) {

    .inschrijf-popup {
        padding-left: 7px;
        padding-right: 7px;
    }

    .hoofdblok .rij {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(90px, 0.9fr);
    }

    .medeloper-item {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(72px, 0.75fr)
            34px;
    }

    .plus-btn {
        font-size: 14px;
    }
}