@media screen {

    @charset "UTF-8";

    /* ------------------------------
       FONTS
    ------------------------------ */
    @font-face {
        font-family: "Roboto";
        src: url("/fonts/roboto/Roboto-Regular.ttf") format("truetype");
        font-weight: 400;
        font-style: normal;
    }

    @font-face {
        font-family: "Roboto";
        src: url("/fonts/roboto/Roboto-Bold.ttf") format("truetype");
        font-weight: 700;
        font-style: normal;
    }

    @font-face {
        font-family: "Roboto";
        src: url("/fonts/roboto/Roboto-Italic.ttf") format("truetype");
        font-weight: 400;
        font-style: italic;
    }

    body {
        font-family: "Roboto", sans-serif;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* ------------------------------
       LAYOUT
    ------------------------------ */
    .container {
        display: flex;
        gap: 20px;
        padding: 20px;
        align-items: flex-start;
    }

    section {
        margin-top: 0;
        padding-top: 0;
    }

    .content {
        flex: 1;
    }

    /* ------------------------------
       TITELS
    ------------------------------ */
    h1 {
        width: 60%;
        margin: 3% auto 1% auto;
        text-align: left;
        color: #C62828;
        font-style: italic;
        font-size: 18px;
        font-weight: normal;
    }

    /* ------------------------------
       FIELDSETS
    ------------------------------ */
    fieldset {
        display: block;
        width: 60%;
        margin: 0 auto 10px auto;
        padding: 10px 12px;
        border: 1px solid #C62828;
        border-radius: 3px;
    }

    legend {
        text-align: left;
        color: #C62828;
        font-style: italic;
        font-size: 16px;
    }
	 
    /* ------------------------------
       INPUT GROUPS
    ------------------------------ */
    .input-group {
        display: flex;
        justify-content: flex-end;
        margin-left: auto;
        margin-bottom: 8px;
        width: 75%;
        gap: 10px;
    }

    .input-group label {
        width: 120px;
        text-align: right;
        color: #C62828;
        font-size: 14px;
        margin-top: 5px;
    }

    .input-group input,
    .input-group select {
        flex: 2;
        padding: 8px;
        width: 50%;
        border: 1px solid #C62828;
        border-radius: 3px;
    }

    .input-group input:focus {
        border: 2px solid #C62828;
        outline: none;
    }

    /* ------------------------------
       TEXTAREA
    ------------------------------ */
    textarea {
        width: 100%;
        resize: none;
        font-size: 15px;
        display: block;
        margin: 0 auto;
    }

    .fieldset-textarea {
        height: 150px;
        border: none;
        outline: none;
        box-shadow: none;
    }

    /* ------------------------------
       CHECKBOXES
    ------------------------------ */
    input[type="checkbox"],
    input[type="radio"] {
        transform: scale(1.2);
        margin-right: 8px;
        margin-left: 50%;
    }

    /* ------------------------------
       CUSTOM GRIDS
    ------------------------------ */
    .custom-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5em 2em;
        padding: 1em;
        width: 100%;
    }

    .left { background-color: #eef7fb; }
    .right { background-color: #eef7fb; }

    .custom-grid-bp {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 12px 20px;
    }

    /* ------------------------------
       BUTTONS
    ------------------------------ */
    button {
        border: none;
        border-radius: 3px;
        background-color: #C62828;;
        color: white;
        font-size: 14px;
        padding: 10px;
        width: 100px;
        height: 35px;
        float: right;
        margin-top: 2%;
    }

    .button-bp {
        margin-top: 5px;
        margin-bottom: 5px;
        height: 50px;
    }

    .button-bp:hover {
        background-color: #B71C1C;
    }

    .button[type="submit"]:active {
    background-color: #8E0000; /* nog donkerder rood */
}

    .print-only {
        display: none;
    }
	
	/* ----------------------------------
   FOUT- EN SUCCESMELDINGEN
---------------------------------- */

.error {
    background: #ffe6e6;
    border-left: 4px solid #cc0000;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #C62828;
}

.success {
    background: #e6ffe6;
    border-left: 4px solid #009900;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #C62828;
}


}

/* ============================================================
   📱 RESPONSIVE: MOBIEL & TABLET
   ============================================================ */
@media (max-width: 768px) {

    .container {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }

    section {
        padding: 0 10px;
    }

    /* Fieldsets full width */
    fieldset {
        width: 100%;
        padding: 15px;
        margin-left: 0;
        margin-right: 0;
    }

    /* Titel centreren */
    h1 {
        width: 100%;
        text-align: center;
        font-size: 20px;
        margin: 20px 0;
    }

    /* Input-groepen onder elkaar */
    .input-group {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        margin-left: 0;
    }

    .input-group label {
        width: 100%;
        text-align: left;
        margin: 0 0 5px 0;
    }

    .input-group input,
    .input-group select {
        width: 100%;
        margin-left: 0;
    }

    /* Checkboxes */
    input[type="checkbox"],
    input[type="radio"] {
        margin-left: 0;
    }

    /* Textarea */
    textarea {
        width: 100%;
        min-height: 140px;
    }

    /* Grids → één kolom */
    .custom-grid,
    .custom-grid-bp {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .left,
    .right,
    .left-bp,
    .right-bp {
        grid-column: 1;
    }

    /* Buttons */
    button,
    .button-bp {
        width: 100%;
        float: none;
        margin-top: 15px;
        font-size: 16px;
        padding: 14px;
    }
}