/* ========================================
   BASE
   ======================================== */
body {
    font-family: "Red Hat Display", sans-serif;
    margin: 0;
    background-color: var(--color-1);
    image-rendering: optimizeSpeed;
}

/* ========================================
   PAGE CONTACT
   ======================================== */
#contact-page {
    height: calc(100svh);
    inset: 0;
    z-index: 100;
    display: flex;
    overflow-y: auto;
    transition: transform 1s cubic-bezier(0.4, 0, 0.05, 0.94);
}

#contact-page.active {
    transform: translateY(0%);
}

#bg-contact {
    position: absolute;
    height: auto;
    width: 70%;
    opacity: 7%;
    z-index: 1;
    left: 0;
    bottom: 0;
    pointer-events: none;
}

/* ========================================
   COLONNE GAUCHE - INFOS
   ======================================== */
.content-contact {
    flex: 1;
    min-width: 0;
    padding: 15vmin;
    padding-top: calc(var(--header-height) + 15vmin);
    background-color: var(--color-1);
    color: var(--color-2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.content-contact p {
    max-width: 350px;
}

.content-contact .info-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.content-contact a {
    color: var(--color-2) !important;
    width: fit-content;
    display: flex;
    align-items: baseline;
    gap: 10px;
    transition: opacity var(--transition-smooth);
}

.content-contact a:hover {
    opacity: 0.8;
    transition: opacity var(--transition-smooth);
}


.content-contact img {
    height: 15px;
}

/* ========================================
   COLONNE DROITE - FORMULAIRE
   ======================================== */
.expert-form {
    flex: 1;
    min-width: 0;
    padding: 15vmin;
    padding-top: calc(var(--header-height) + 15vmin);
    background-color: var(--color-2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
    position: relative;
    z-index: 2;
}

/* ========================================
   CHAMPS DU FORMULAIRE
   ======================================== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
    width: 100%;
}

.input-group {
    width: 100%;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    margin-bottom: 10px;
    opacity: 0.5;
    font-weight: 500;
    color: var(--color-1);
}

#axe, #structure {
    cursor: pointer !important;
}


input,
select,
textarea {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--color-1);
    color: var(--color-1);
    font-family: 'Red Hat Display', sans-serif;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    outline: none;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-bottom-color: #ffb700;
    padding-left: 10px;
}

textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 30vmin;
}

.full-width {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
}

/* ========================================
   BOUTON SUBMIT
   ======================================== */
.btn-form {
    color: var(--color-1) !important;
    background-color: transparent !important;
    border: 1px solid var(--color-1);
    padding: 1rem 2rem;
    font-family: 'Red Hat Display', sans-serif;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    transition: all 0.3s ease;
    width: fit-content;
}

.btn-form:hover {
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* ========================================
   VALIDATION
   ======================================== */
.expert-form.submitted input:invalid,
.expert-form.submitted textarea:invalid,
.expert-form.submitted select:invalid {
    border-bottom-color: #ff0000;
}

/* ========================================
   RESPONSIVE CONTACT
   ======================================== */
@media (max-width: 1000px) {
    #contact-page {
        display: unset;
        height: 100%;
        padding-top: 45px;
    }

    .content-contact {
        padding-top: var(--header-height);
        background-color: var(--color-1);
        color: var(--color-2);
        display: flex;
        flex-direction: column;
        align-items: baseline;
        justify-content: space-between;
        width: 100%;
        min-height: 70%;
        padding: 15vh 15vmin;
    }

    .expert-form {
        width: 100%;
        height: fit-content;
        margin: 0;
        padding: 15vmin;
        background-color: var(--color-2);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: baseline;
        padding-bottom: calc(45px + 15vmin);
    }

    .form-row {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }


    #bg-contact {
        position: absolute;
        height: auto;
        width: 30vmax;
        opacity: 7%;
        z-index: 1;
        left: unset;
        right: 0;
        bottom: 0;
        pointer-events: none;
    }

}

/* ========================================
   FIX AUTOFILL - Chrome + Safari
   ======================================== */

/* Chrome */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--color-2) inset !important;
    -webkit-text-fill-color: var(--color-1) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Safari */
input:autofill,
select:autofill,
textarea:autofill {
    background-color: transparent !important;
    background-image: none !important;
    color: var(--color-1) !important;
}

input,
select,
textarea {
    -webkit-appearance: none;
    appearance: none;
    background-clip: padding-box !important;
    border-radius: 0;
}