/* ============================================================
   Werkgeversverklaring opstellen - Module stylesheet
   ============================================================ */

.wgv-module {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    color: #222;
    max-width: 720px;
}

/* ---- Secties ------------------------------------------------ */

.wgv-sectie {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 16px;
    padding: 16px 20px;
}

.wgv-sectie-titel {
    font-size: 14px;
    font-weight: 700;
    color: #1a5276;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #1a5276;
}

.wgv-toelichting {
    font-size: 13px;
    color: #666;
    margin: 0 0 14px 0;
}

/* ---- Formulierrijen ----------------------------------------- */

.wgv-rij {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.wgv-rij:last-child {
    margin-bottom: 0;
}

.wgv-rij-radio {
    align-items: flex-start;
}

.wgv-label {
    flex: 0 0 300px;
    font-size: 14px;
    color: #333;
    line-height: 1.3;
    padding-top: 7px;
}

.wgv-rij-radio .wgv-label {
    padding-top: 2px;
}

.wgv-hint {
    display: block;
    font-size: 11px;
    color: #777;
    font-weight: normal;
    margin-top: 2px;
}

.wgv-veld {
    flex: 1;
    min-width: 0;
}

/* ---- Veldtoelichting ------------------------------------------ */
/* Korte uitleg direct onder een rij, uitgelijnd onder het invoerveld
   (niet onder het label) zodat het duidelijk bij dat veld hoort. */

.wgv-veldhulp {
    margin: -6px 0 10px 312px;
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}

.wgv-sectie-legenda {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
    font-size: 12px;
    color: #777;
    line-height: 1.6;
}

@media (max-width: 560px) {
    .wgv-veldhulp {
        margin-left: 0;
    }
}

/* ---- Invoervelden ------------------------------------------ */

.wgv-input {
    width: 100%;
    padding: 7px 10px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    color: #222;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.wgv-input:focus {
    outline: none;
    border-color: #1a5276;
    box-shadow: 0 0 0 2px rgba(26, 82, 118, 0.15);
}

.wgv-input-euro {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wgv-euro-teken {
    font-size: 14px;
    color: #555;
    flex-shrink: 0;
}

.wgv-input-euro .wgv-input {
    flex: 1;
    min-width: 0;
}

.wgv-input-suffix {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wgv-input-suffix .wgv-input {
    flex: 0 0 100px;
}

.wgv-suffix {
    font-size: 13px;
    color: #555;
    flex-shrink: 0;
}

/* ---- Radiogroepen -------------------------------------------- */

.wgv-radiogroep {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 2px;
}

.wgv-radio-optie {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.wgv-radio-optie input[type="radio"] {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    accent-color: #1a5276;
}

/* ---- Conditionele velden -------------------------------------- */

.wgv-conditioneel {
    display: none;
}

/* .wgv-conditioneel wordt op twee soorten elementen gebruikt: losse
   formulierrijen (die flex nodig hebben, zoals .wgv-rij) en hele secties
   (die gewoon blok-opmaak nodig hebben, zoals .wgv-sectie). Daarom hier
   per elementtype de juiste "actief"-weergave, in plaats van universeel
   display:flex (dat duwde bij secties de titel/toelichting/rijen naast
   elkaar in plaats van eronder). */
.wgv-rij.wgv-conditioneel.wgv-actief {
    display: flex;
}

.wgv-sectie.wgv-conditioneel.wgv-actief {
    display: block;
}

/* ---- Subtotaal ------------------------------------------------ */

#wgv-subtotaal-blok {
    margin: -4px 0 16px 0;
}

.wgv-tabel {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.wgv-tabel td {
    padding: 9px 12px;
}

.wgv-tabel td:last-child {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

.wgv-tabel-resultaat td {
    background: #eaf0f6;
    color: #1a5276;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
}

/* ---- Actieknop -------------------------------------------------- */

.wgv-actie-rij {
    margin-top: 4px;
}

.wgv-knop {
    display: inline-block;
    padding: 11px 28px;
    background: #1a5276;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.wgv-knop:hover,
.wgv-knop:focus {
    background: #123a56;
    outline: none;
}

/* ---- Responsive -------------------------------------------- */

@media (max-width: 560px) {
    .wgv-rij {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .wgv-label {
        flex: none;
        width: 100%;
        padding-top: 0;
    }

    .wgv-veld {
        width: 100%;
    }
}
