/*__________CONTACT PAGE_________*/
.contact-body {
    position: relative;
    background-color: #BECBD2;
}

.contact-body img {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.contact-hero {
    position: relative;
    z-index: 1;
    background-color: #f2e0c3e1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.contact-hero h1 {
    text-wrap: nowrap;
    font-size: clamp(2rem, 5vw, 6rem);
    font-weight: 400;
    margin: 0;
    padding: 0 3rem;
}

.contact-hero p {
    font-size: clamp(1rem, 2vw, 4rem);
    font-weight: 400;
    margin: 0;
    line-height: normal;
}

.contact-body-flex {
    position: relative;
    z-index: 1;
    display: flex;
    padding-top: 15vw;
    padding-bottom: 3rem;
    width: 100%;
    justify-content: space-evenly;
    align-items: start;
}

.contact-form-section {
    background-color: #f2e0c3e1;
    padding: 1rem;
    flex-basis: clamp(400px, 30%, 800px);
    flex-grow: 0;
}

.contact-form-section .error-message {
    color: red;
}

.contact-form-section h3 {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 400;
    margin: 0;
    margin-bottom: 1rem;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 70px;
    grid-template-areas: 
    "first last"
    "email email"
    "phone phone"
    "message message"
    "message message"
    "submit capatcha";
    gap: 1rem;
    padding-bottom: 1rem;
}

.contact-form .text-box::placeholder {
    font-family: "Afacad", serif;
    font-weight: 400;
    font-size: 24px;
}

.contact-form .fname { grid-area: first; }
.contact-form .lname { grid-area: last; }
.contact-form .email { grid-area: email; }
.contact-form .phone { grid-area: phone; }
.contact-form .message { grid-area: message; }
.contact-form .cap { grid-area: capatcha; }
.contact-form .submit-button { 
    grid-area: submit; 
    border-radius: 0;
    border: none;
    font-family: "Aboreto", serif;
    font-weight: 400;
}

.contact-card-section {
    font-style: normal;
}
.contact-card-section h3 {
    font-size: 2rem;
    font-weight: 400;
}

/*_________CONTACT PARTIAL_______*/
.contact-partial {
    width: 100%;
    background-color: #BECBD2;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 1rem;
    padding: 10vh 0;
}

.contact-partial .left-side {
    display: flex;
    flex-direction: column;
    justify-content: baseline;
    align-items: flex-end;
}

.contact-partial .main-text {
    font-weight: 400;
    font-size: clamp(3rem, 4vw, 6rem);
}

/*__________CONTACT CARD_________*/
.contact-card {
    position: relative;
    background-color: #F2F1EC;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.4);
    aspect-ratio: 2 / 1;
    padding: 1vw 2vw;
}

.contact-card ul {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    list-style: none;
}
.contact-card li {
    display: inline-flex;
    align-items: center;
    font-size: clamp(.9rem, 2vw, 1.5rem);
    font-style: normal;
    text-wrap: nowrap;
}
.contact-card a {
    color: rgb(1,1,1);
    text-decoration: none;
}
.contact-card .logo {
    position: absolute;
    top: 1vw;
    left: 2vw;
    width: 80px;
}
.contact-card li:first-child {
    align-self: flex-end;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 1024px) {
    .contact-partial {
        flex-direction: column-reverse;
        gap: 3vw;
    }

    .contact-hero {
        flex-direction: column;
    }

    .contact-body-flex {
        flex-direction: column;
        align-items: center;
        gap: 3vh;
    }

    .contact-card-section {
        display: flex;
        width: 100%;
        align-items: center;
        flex-direction: column-reverse;
    }

    .contact-form-section {
        width: clamp(390px, 80%, 900px);
    }
}

@media (max-width: 600px) {
    .contact-form {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .contact-form input {
        flex-basis: 50px;
        width: 100%;
    }
}