section.contact {
    padding: 3rem 0;
}

.contact h1 {
    margin-bottom: 2rem;
}

section.contact .intro {
    display: flex;
    gap: 1rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    margin-top: 3rem;
    width: 100%;
}

.row.fields,
.field {
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    padding-right: 1rem!important;
}

label {
    margin-bottom: 0.25rem;
}

input {
    border: 1px solid var(--color-neutral);
    background: var(--color-main);
    height: 3rem;
    border-radius: 0.375rem;
    padding: 0.5rem;
    font-family: var(--text-main-font);
    font-size: var(--text-body-m-size);
    width: 25rem;
}

textarea {
    border: 1px solid var(--color-neutral);
    background: var(--color-main);
    border-radius: 0.375rem;
    padding: 0.5rem;
    font-family: var(--text-main-font);
    font-size: var(--text-body-m-size);
    width: 51rem;
}

.checkbox-group label,
.checkbox-group label a {
    /* Paragraph 1 */
    font-family: var(--text-main-font);
    font-size: var(--text-body-m-size);
    --text-body-m-weight: 400;
    line-height: 121%;
    /* 1.5125rem */
    letter-spacing: 0;
}


/* 1. HIDE the original checkbox */

.custom-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}


/* 2. Style the text and make room for the custom box */

.custom-checkbox-label {
    position: relative;
    padding-left: 2.188rem;
    padding-top: 0.375rem;
    cursor: pointer;
    display: inline-block;
    user-select: none;
    flex-grow: 1;
}


/* 3. DRAW the custom box (the square) using ::before */

.custom-checkbox-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #ccc;
    /* Hardcoded light gray border */
    background-color: white;
    border-radius: 3px;
    transition: all 0.2s ease;
}


/* 4. DRAW the checkmark (the V shape) using ::after (initially hidden) */

.custom-checkbox-label::after {
    content: '';
    position: absolute;
    left: 0.5rem;
    /* 8px */
    top: 0.4375rem;
    /* 7px */
    width: 0.375rem;
    /* 6px */
    height: 0.75rem;
    border: solid white;
    /* Hardcoded white checkmark */
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}


/* 5. THE MAGIC: When the input IS CHECKED */

.custom-checkbox-input:checked+.custom-checkbox-label::before {
    /* Hardcoded #6B4F35 background and matching border */
    background-color: #6B4F35;
    border-color: #6B4F35;
}


/* 6. SHOW the checkmark when checked */

.custom-checkbox-input:checked+.custom-checkbox-label::after {
    transform: rotate(45deg) scale(1);
}


/* 7. Focus for accessibility (keyboard users) */

.custom-checkbox-input:focus+.custom-checkbox-label::before {
    /* Hardcoded #6B4F35 for the focus outline */
    outline: 2px solid #6B4F35;
    outline-offset: 1px;
}

.contact footer.site-footer {
    border-top: 1.067px solid var(--color-border);
}


/* -------------------- Media Queries -------------------- */


/* First breakpoint: 1200px / 50rem */

@media (max-width: 75rem) {
    .row.fields,
    .field {
        gap: 1rem;
    }
    section.contact>div {
        gap: 3rem;
    }
    textarea {
        width: 100%;
    }
    .custom-checkbox-label {
        max-width: 300px;
    }
    .row.fields,
    .field {
        flex-direction: column;
    }
    .form-group {
        width: 100%;
    }
}


/* Second breakpoint: 375px / 23.4375rem */

@media (max-width: 37rem) {}