:root {
    --labelbreedte: 175px;
    --invoerveld: 375px;
    --radiobutton: 75px;
    --hoverkleur: #f0f0f0;
}

h2 {
	margin-bottom: 15px;
}

/* Labels en invoervelden onder elkaar voor mobiele weergave */
.reparatie_invoerveld label,
.reparatie_invoerveld input,
.reparatie_invoerveld textarea {
    display: block;
    margin-bottom: 5px;
}

.invoer_garantie, .invoer_backup, .invoer_spoed, .invoer_prijsopgave {
	border: 1px solid #aaa;
	width: 100%;
	margin: 5px 0 5px 0;
}

.reparatie_invoerveld {
    display: flex;
    flex-direction: row;
    align-items: top;
    margin-bottom: 5px;
}

/* Labels */
.reparatie_invoerveld label {
    font-weight: bold;
    color: #0000FF;
    width: var(--labelbreedte);
}

/* Tekstvelden */
.reparatie_invoerveld input[type="text"], .reparatie_invoerveld input[type="email"] {
    width: 30%;
    font-size: 14px;
    padding: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.reparatie_invoerveld input[type="text"]:hover {
    border-color: lightblue;
}

.reparatie_invoerveld input[type="text"]:focus, .reparatie_invoerveld input[type="email"]:focus, textarea:focus {
    background-color: #CAE1FF;
    color: black;
}

/* Specifieke breedtes */
#telefoon, #gsm, #factuur, #wachtwoord {
    width: 150px;
}

#postcode {
    width: 100px;
}

/* Textarea */
.probleembeschrijving {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.textarea-wrapper {
    width: 100%;
    box-sizing: border-box;
    margin-top: 5px;
}

/* Radio buttons */
.radio-options {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.radiobutton {
    display: flex;
    align-items: center;
    width: var(--radiobutton);
}

.radio-options input {
    margin-right: 5px;
    width: auto;
}

.radio-options input:checked + label {
    font-weight: bold;
    color: #0000FF;
}

/* Hover-effecten */
.reparatie_invoerveld:hover,
.probleembeschrijving:hover,
.radiobutton:hover {
    background-color: var(--hoverkleur);
}

/* Knop */
.reparatie_invoerveld form button {
    display: block;
    margin-top: 15px;
}

/* Section titels */
section h2 {
    margin-bottom: 10px;
}

/* Responsieve styling */
@media screen and (max-width: 768px) {
    :root {
        --labelbreedte: 125px;
    }

    .reparatie_invoerveld input {
        width: calc(100% - var(--labelbreedte));
        font-size: 12px;
    }

    #telefoon, #gsm, #factuur, #wachtwoord {
        width: 150px;
    }
}
