/* afmelden.css – layout van afmelden.php (geladen via $extra_css in menu.php) */

.afm { margin-bottom: 32px; }
.afm-uitleg { margin: 0 0 12px; }

.afm-kaart {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}

.afm-rij { margin-bottom: 12px; }
.afm-rij label { display: block; font-weight: bold; margin-bottom: 4px; }

.afm select,
.afm textarea,
.afm input[type=text] {
    font-size: 16px;            /* voorkomt inzoomen op de iPhone */
    padding: 6px 8px;
    border: 1px solid #bbb;
    border-radius: 4px;
    box-sizing: border-box;
    max-width: 100%;
    font-family: inherit;
}
.afm-rij select,
.afm-rij textarea { width: 100%; }

.afm fieldset {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin: 0 0 12px;
    padding: 4px 12px;
}
.afm legend { font-weight: bold; padding: 0 4px; }

/* één keuze = één grote aanraakbare regel */
.afm-keuze {
    display: block;
    padding: 9px 2px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}
.afm-keuze:last-child { border-bottom: 0; }
.afm-keuze input[type=radio] {
    transform: scale(1.3);
    margin: 0 10px 0 2px;
    vertical-align: middle;
}
.afm-keuze select,
.afm-keuze input[type=text] {
    display: block;
    margin: 6px 0 0 28px;
    width: calc(100% - 28px);
}

.afm-knop {
    background: #FF8080;
    color: #fff;
    border: 0;
    border-radius: 15px;
    font-size: 18px;
    padding: 10px 24px;
    cursor: pointer;
}
.afm-knop:hover { background: #f06060; }

.melding.fout {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* de lijst */
.afm-kop {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-bottom: 8px;
}
.afm-kop span { color: #666; font-size: 90%; }

.afm-lijst { width: 100%; border-collapse: collapse; }
.afm-lijst th { text-align: left; background: #ddd; padding: 6px; }
.afm-lijst td { padding: 6px; border-top: 1px solid #eee; vertical-align: top; }
.afm-lijst tbody tr:nth-child(even) { background: #f5f5f5; }
.afm-tijd { white-space: nowrap; color: #555; font-size: 90%; }
.afm-opm { color: #444; font-style: italic; margin-top: 2px; }
.afm-weg { color: #c00; font-size: 18px; padding: 4px 8px; }
.afm-klein { font-size: 85%; color: #666; margin-top: 8px; }

@media (max-width: 480px) {
    .afm-kaart { padding: 12px; }
    .afm-tijd { white-space: normal; width: 3.5em; font-size: 80%; }
    .afm-lijst th:first-child { font-size: 80%; }
}

/* ---- breed scherm: compacter, formulier en lijst naast elkaar ---- */
@media (min-width: 700px) {
    .afm-keuze { padding: 5px 2px; }
    .afm-keuze input[type=radio] { transform: none; margin: 0 8px 0 2px; }
    /* clublid- en invallerveld achter de tekst in plaats van eronder */
    .afm-keuze select,
    .afm-keuze input[type=text] {
        display: inline-block;
        margin: 0 0 0 8px;
        width: auto;
        max-width: 220px;
        padding: 3px 6px;
        font-size: 14px;
    }
    .afm-rij { margin-bottom: 8px; }
    .afm-rij label { display: inline-block; width: 7em; margin: 0; }
    .afm-rij select { width: auto; max-width: calc(100% - 7.5em); }
    .afm fieldset { margin-bottom: 8px; padding: 2px 10px 4px; }
    .afm-knop { font-size: 16px; padding: 7px 20px; }
}

/* Formulier en lijst naast elkaar zodra er ruimte is voor twee kolommen van 360 px;
   dat hangt af van de echte breedte van de inhoud, niet van het venster. */
.afm-kolommen {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}
.afm-kolommen > .afm-kaart {
    flex: 1 1 360px;
    min-width: 0;
    margin-bottom: 0;
}
