/* Algemene instellingen */
:root {
    --border-radius: 10px;
    --box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Specifieke container styling binnen de contact-sectie */
.contact-sections .container {
    padding: var(--container-padding);
    display: flex;
    gap: calc(var(--gap) * 20);
}


.contact-sections {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: calc(var(--gap) * 10);
    width: 100%;
    padding: var(--container-padding);
}

.form-section {
    flex: 2;
    background-color: var(--text-dark-background);
    padding: var(--container-padding);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

form{
    display: flex;
    flex-direction: column;
    gap: calc(5 * var(--gap));
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: 1rem;
    font-weight: bold;
}

.form-control {
    width: 100%;
    border: 2px solid #2b4a4f;
    background-color: var(--primary);
    color: white;
    border-radius: 10px;
    outline: none;
    padding: var(--text-padding);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form select{
    border-radius: 10px;
}

.form-control::placeholder {
    color: #d3d3d3;
}

.form-control:focus {
    border: 2px solid #3b82f6;
    box-shadow: 0 0 5px rgba(43, 74, 79, 0.5);
}

/* Checkbox container styling met extra ruimte boven de checkbox */
.form-section .input-group .background {
    display: flex;
    align-items: center;
    gap: var(--gap);
    padding-bottom: 1.5rem; /* Padding behouden */
    margin-top: 2rem; /* Extra ruimte boven de checkbox */
}


/* Checkbox styling */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 10px; /* Padding in plaats van margin */
    width: 20px;
    height: 20px;
    border: 2px solid #2b4a4f;
    border-radius: 3px;
    outline: none;
    background-color: var(--primary);
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Checkbox aangevinkt */
input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: #2b4a4f;
}

/* Checkbox indicator (checkmark) */
input[type="checkbox"]::before {
    content: '\2713'; /* Unicode checkmark */
    font-size: 16px;
    color: var(--text-dark-background);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Weergeven van checkmark bij selectie */
input[type="checkbox"]:checked::before {
    opacity: 1;
}

/* Checkbox label styling */
.checkbox-label {
    font-size: 16px;
    margin-left: 8px;
    cursor: pointer;
    user-select: none;
}

/* Tekst naast de checkbox */
.input-group .background label {
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
}

/* Verzenden-knop */
.btn {
    transition: 200ms ease-in-out;
    background-color: var(--accent);
    color: var(--text-dark-background);
    font-family: var(--font-family-CTA);
    font-size: calc(var(--font-size-general) * 1.5);
    border: none;
}

.btn:hover {
    background-color: var(--highlight);
    color: var(--primary);
}

form > div:last-of-type{
    display: grid;
    grid-template-columns: min-content 1fr;

}
form > div:last-of-type > p{
    grid-column: 1 / -1;
}


/* Media Queries */
@media (max-width: 768px) {
    .contact-sections {
        flex-direction: column;
    }

    .form-section{
        width: 100%;
        padding: 1rem;
    }

    .header-text h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 500px) {
    .contact-sections {
        flex-direction: column;
    }

    .form-section{
        width: 100%;
        padding: 1rem;
    }

    .header-text h1 {
        font-size: 1.5rem;
    }
}

/* Algemene sectie styling */
section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    background-color: var(--primary) !important;
    color: var(--text-dark-background) !important;
    border: 1px solid #2b4a4f !important;
    -webkit-box-shadow: 0 0 0 1000px var(--primary) inset !important;
    box-shadow: 0 0 0 1000px var(--primary) inset !important;
    -webkit-text-fill-color: var(--text-dark-background) !important;
    caret-color: var(--text-dark-background) !important;
}
