/* ============================================================
   equimario-front.css  –  EquiMario Score stijlen
   ============================================================ */

/* ── META-FORMULIER (bovenaan pagina) ─────────────────────── */
#ems-meta {
    background: #f0f5e8;
    border: 1px solid #c0d490;
    border-radius: 10px;
    padding: 20px 22px;
    margin: 0 0 28px;
    transition: border-color .2s, box-shadow .2s;
}

#ems-meta h3 {
    margin: 0 0 14px;
    color: #4a6620;
    font-size: 1.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ems-meta-rij {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.ems-meta-rij label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1 1 160px;
    font-size: .88em;
    font-weight: 600;
    color: #4a5a30;
}

.ems-input {
    padding: 9px 11px;
    border: 1.5px solid #b8d080;
    border-radius: 6px;
    font-size: .97em;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
    color: #333;
}

.ems-input:focus {
    border-color: #5a7a2e;
    box-shadow: 0 0 0 3px rgba(90,122,46,.15);
    outline: none;
}

.ems-input-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231,76,60,.12) !important;
}

#ems-validatie-msg {
    display: none;
    color: #c0392b;
    font-size: .88em;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fdecea;
    border-radius: 5px;
}

/* ── OPMERKING-VELDEN (geïnjecteerd in widget) ────────────── */
.ems-opmerking-veld {
    margin: 14px 0 18px;
    padding: 10px 14px 12px;
    background: #fafff5;
    border-left: 3px solid #a8c870;
    border-radius: 0 6px 6px 0;
}

.ems-opmerking-label {
    display: block;
    font-size: .82em;
    font-weight: 700;
    color: #5a7a2e;
    margin-bottom: 6px;
    letter-spacing: .01em;
}

.ems-opmerking-label em {
    font-weight: 400;
    color: #6a7a50;
}

.ems-opmerking {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid #d0e4a8;
    border-radius: 5px;
    font-size: .88em;
    resize: vertical;
    box-sizing: border-box;
    background: #fff;
    color: #333;
    line-height: 1.5;
    transition: border-color .2s;
    font-family: inherit;
}

.ems-opmerking:focus {
    border-color: #5a7a2e;
    outline: none;
}

/* ── CF7 FORMULIER ONDERAAN ───────────────────────────────── */
.ems-cf7-wrap {
    margin-top: 30px;
    padding: 22px 24px;
    background: #f8faee;
    border: 1px solid #c0d490;
    border-radius: 10px;
}

.ems-cf7-sectie {
    margin-bottom: 20px;
}

.ems-cf7-sectie h4 {
    color: #4a6620;
    margin: 0 0 12px;
    font-size: .98em;
    padding-bottom: 7px;
    border-bottom: 1px solid #d8eaa8;
}

/* Mail-opties grid */
.ems-mail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ems-mail-kaart {
    background: #fff;
    border: 1.5px solid #d0e4a8;
    border-radius: 8px;
    padding: 14px;
    transition: border-color .2s;
}

.ems-mail-kaart:focus-within {
    border-color: #5a7a2e;
}

.ems-mail-kaart > label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: .92em;
    cursor: pointer;
    margin-bottom: 0;
    user-select: none;
}

.ems-mail-kaart input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #5a7a2e;
    cursor: pointer;
    flex-shrink: 0;
}

.ems-coach-email-wrap,
.ems-student-email-wrap {
    margin-top: 10px;
}

/* Verbergen/tonen via JS */
.ems-verborgen {
    display: none !important;
}

.ems-coach-email-wrap input,
.ems-student-email-wrap input {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid #c0d490;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: .9em;
}

/* Wedstrijd-toggle */
.ems-wedstrijd-kaart {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: #fffbf0;
    border: 1.5px solid #f0d080;
    border-radius: 8px;
    cursor: pointer;
    font-size: .95em;
    font-weight: 600;
    user-select: none;
}

.ems-wedstrijd-kaart input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #d4a010;
    cursor: pointer;
    flex-shrink: 0;
}

/* Algemene opmerkingen */
.ems-cf7-sectie textarea.ems-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #c0d490;
    border-radius: 6px;
    font-size: .92em;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
    color: #333;
    line-height: 1.55;
}

.ems-cf7-sectie textarea.ems-textarea:focus {
    border-color: #5a7a2e;
    outline: none;
}

/* Submit-knop */
.ems-submit-knop,
.wpcf7 .wpcf7-submit {
    display: block;
    width: 100%;
    padding: 14px;
    background: #5a7a2e;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 1.05em;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .02em;
    transition: background .2s, transform .1s;
    margin-top: 8px;
}

.ems-submit-knop:hover,
.wpcf7 .wpcf7-submit:hover {
    background: #4a6620;
}

.ems-submit-knop:active {
    transform: scale(.98);
}

/* Succes/fout berichten CF7 */
.wpcf7-response-output {
    border-radius: 6px !important;
    padding: 12px 16px !important;
    margin-top: 12px !important;
}

/* ── LEADERBOARD ──────────────────────────────────────────── */
.ems-leaderboard {
    margin: 20px 0 40px;
}

.ems-lb-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ems-filter {
    padding: 8px 20px;
    border: 2px solid #5a7a2e;
    background: #fff;
    color: #5a7a2e;
    border-radius: 20px;
    cursor: pointer;
    font-size: .88em;
    font-weight: 700;
    transition: all .2s;
    font-family: inherit;
}

.ems-filter.active,
.ems-filter:hover {
    background: #5a7a2e;
    color: #fff;
}

.ems-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.ems-lb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92em;
    background: #fff;
    min-width: 460px;
}

.ems-lb-table thead {
    background: #5a7a2e;
    color: #fff;
}

.ems-lb-table th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.ems-lb-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.ems-lb-rij:hover {
    background: #f5faee;
}

.ems-lb-rij.ems-officieel {
    background: #fffdf2;
}

.ems-rank {
    font-size: 1.15em;
    text-align: center;
    width: 48px;
    font-weight: 700;
}

/* Score-badges */
.ems-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 800;
    font-size: .97em;
    min-width: 38px;
    text-align: center;
}

.ems-fantastisch  { background: #e67e22; color: #fff; }
.ems-goed         { background: #27ae60; color: #fff; }
.ems-voldoende    { background: #95a5a6; color: #fff; }
.ems-onvoldoende  { background: #e74c3c; color: #fff; }

.ems-video-btn {
    display: inline-block;
    padding: 4px 11px;
    background: #5a7a2e;
    color: #fff !important;
    border-radius: 5px;
    text-decoration: none;
    font-size: .82em;
    font-weight: 700;
    transition: background .2s;
}

.ems-video-btn:hover {
    background: #4a6620;
}

.ems-lb-leeg {
    padding: 20px;
    color: #888;
    text-align: center;
}

/* Print pdf alleen de relevante info */

@media print {
    /* Verberg alles */
    body * {
        visibility: hidden;
    }

    /* Toon enkel de gewenste div en zijn inhoud */
    #ems-print-zone,
    #ems-print-zone * {
        visibility: visible;
    }

    /* Positioneer die div bovenaan */
    #ems-print-zone {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    /* Verberg de printknop zelf */
    .ems-print-btn {
        display: none;
    }
}

/* ── MOBIEL ───────────────────────────────────────────────── */
@media (max-width: 600px) {
    .ems-meta-rij {
        flex-direction: column;
    }

    .ems-mail-grid {
        grid-template-columns: 1fr;
    }

    .ems-hide-xs {
        display: none;
    }

    .ems-lb-filters {
        justify-content: center;
    }

    .ems-lb-table {
        font-size: .82em;
    }

    .ems-lb-table th,
    .ems-lb-table td {
        padding: 8px 10px;
    }

    .ems-cf7-wrap {
        padding: 16px;
    }
}
