:root {
    --soft-white: #F5F5F5;
    --blush-beige: #f9eedc;
    --maroon: #710100;
    --brown: #643318;
    --soft-pink: #FED2E1;
    --bubblegum-pink: #ffb1b1;
    --passion-red: #DF0714;
    --soft-black: #0A0A0A;

    --font-primary: 'Lobster', cursive;
    --font-secondary: "Barlow Condensed", sans-serif;
    --font-body: 'Montserrat', sans-serif;

}

nav {
    background-color: var(--maroon);
}

header {
    margin-top: 6rem;
    height: 400px;
    width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(../images/contact/header-2200.webp);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    color: var(--soft-white);
}

@media screen and (max-width: 1800px) {
    header {
        background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(../images/contact/header-1800.webp);
    }
}

@media screen and (max-width: 1440px) {
    header {
        background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(../images/contact/header-1440.webp);
    }
}

@media screen and (max-width: 1024px) {
    header {
        background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(../images/contact/header-1024.webp);
    }
}

@media screen and (max-width: 768px) {
    header {
        background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(../images/contact/header-768.webp);
    }
}

header h1 {
    font-size: clamp(4rem, 3.358rem + 2.936vw, 6rem);
    text-shadow: 1px 1px 2px var(--soft-black);
}


header p {
    width: 100%;
    max-width: 450px;
    padding: 1rem;
    text-shadow: 1px 1px 5px var(--soft-black);
    text-align: center;
}


main {
    min-height: 100vh;
    width: 100%;
    background-color: var(--blush-beige);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 1rem;
}

main section {
    width: 100%;
    max-width: 1024px;
    display: flex;
    padding: 2rem 0;
    gap: 1rem;
    justify-content: center;
}

main section h2 {
    font-size: clamp(2.5rem, 2.018rem + 2.202vw, 4rem);
    color: var(--maroon);
}

@media screen and (max-width: 768px) {
    main section {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media screen and (max-width: 1024px) {
    main .section__map {
        flex-wrap: wrap;
    }

    .map__container {
        height: 300px;
    }

    iframe {
        height: 300px;
    }
}

main .section__map {
    width: 100%;
    display: flex;
    border-radius: 2rem;
    background-color: var(--maroon);
    padding: 2rem;
    align-items: center;
    gap: 1rem;
    max-width: 1280px;
}

.section__map h2 {
    color: var(--soft-white);
    line-height: 1;
}

.map__container {
    border-radius: 1rem;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    min-width: 300px;
    height: 100%;
}

.map__container iframe {
    width: 100%;
}

.map__info {
    text-align: left;
    padding: 20px;
    max-width: 600px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 1.5rem;
    color: var(--soft-white);
}

.map__info .address {
    display: block;
    font-size: 1rem;
    font-weight: bold;
}

.map__info .divider {
    display: block;
    margin: 10px auto;
    width: 100%;
    height: 2px;
    background-color: #ccc;
}

.map__info h3 {
    font-size: 1.5rem;
    font-family: var(--font-secondary);
}

.whatsapp-link {
    font-size: clamp(1rem, 0.936rem + 0.294vw, 1.2rem);
    text-decoration: none;
    padding: 1rem;
    color: var(--maroon);
    background-color: var(--soft-white);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

.whatsapp-link:hover {
    color: var(--soft-white);
    background-color: #00ad1c;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}


.whatsapp-link img {
    width: 2rem;
    transition: filter 0.3s ease;
}

.whatsapp-link:hover img {
filter: invert(1);
}


.section__form {
    max-width: 1024px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section__form h2 {
    width: 100%;
    text-align: center;
}

form {
    padding: 2rem 1rem;
    width: 100%;
    background-color: var(--maroon);
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    border-radius: 1rem;
}

.form__group {
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

label,
input,
textarea {
    width: 100%;
    padding: .5rem 1rem;
    border-radius: 8px;
}

label {
    color: var(--soft-white);
}

.form__group:nth-child(3) {
    max-width: initial;
    width: 100%;
    max-width: 850px;
}

.form__group:last-child {
    max-width: 250px;
}

.form__group:last-child button {
    padding: 1rem 3rem;
    font-weight: bold;
    border-radius: 1rem;
    background-color: var(--soft-white);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

.form__group:last-child button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.3);
}

textarea {
    resize: none;
    width: 100%;
}

.overlay {
    position: fixed;
    background-color: #000c;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.message {
    width: 90%;
    max-width: 500px;
    background-color: var(--soft-white);
    text-align: center;display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    position: relative;
    border-radius: 1rem;
    padding: 2rem;
}


.message p:first-child {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--maroon);
}

.message img {
    width: 4rem;
}

.message .close {
    position: absolute;
    right: 0;
    top: 0;
    margin: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color .3s ease-out;
}

.message .close:hover {
    color: red;
}
