.contact {
    max-width: 40rem;
    margin: 3rem auto;
}

.contact h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form {
    background-color: var(--header-footer-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px oklch(0 0 0 / 0.08);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    font-family: inherit;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid oklch(0 0 0 / 0.15);
    font-size: 1rem;
    background-color: var(--bg);
    color: var(--txt);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--link);
    box-shadow: 0 0 0 3px oklch(0.398 0.123 255.206 / 0.2);
}

.checkbox-group {
    margin-bottom: 1.5rem;
    border: none;
    padding: 0;
}

.checkbox-group legend {
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: var(--link);
}

.checkbox-item label {
    cursor: pointer;
    font-weight: 400;
}

button[type="submit"] {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background-color: var(--link);
    color: var(--bg);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
    margin: 0 auto;
}

button[type="submit"]:hover {
    background-color: var(--link-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px oklch(0 0 0 / 0.15);
}

.lijn {
    height: 3px;
    width: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--link), var(--link-hover));
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}


@media (min-width: 40em) {
    .lijn {
        grid-column: 1 / -1;
        grid-row: 2 / 3;
        margin-top: 1rem;
    }

    button[type="submit"] {
        margin: 0;
    }
}
