
/* ======================== Contact Us Layout =========================== */

.contact-us {
    width: 90vw;
    margin-inline: auto;
    align-items: center;
    gap: 4rem;
    margin-block: 3rem;
    grid-auto-columns: 1fr;
    grid-template-areas: 'one'
                        'two';
}

.contact-us:nth-child(1) {
    grid-area: one;
}

.contact-us:nth-child(2) {
    grid-area: two;
}

.contact-form {
    /* margin-inline: 2rem; */
    margin-block: 1rem;
    grid-gap: 1rem;
}

.contact-us input {
    border: 0;
    padding: 1rem 2rem;
    border-radius: 2rem;
}

.contact-us input:focus {
    outline: none;
}

.contact-us textarea {
    width: 100%;
    border: none;
    padding: 1rem 2rem;
    border-radius: 2rem;
    resize: none;
}

.contact-us textarea:focus {
    outline: none;
}

.contact-us button{
    padding: 1rem 3rem;
    font-size: 1rem;
    margin-top: 1.5rem;
}

.map {
    background: hsl(var(--clr-red) / 0.3); /* semi-transparent background */
    position: relative;
    width: 100%;
    max-width: 1200px; /* keeps it inside container */
    margin-inline: auto;
    border-radius: 1rem; /* optional rounded corners */
    overflow: hidden; /* prevent iframe from overflowing */
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.map::before {
    content: '';
    width: 5px;
    top: 0;
    left: 0;
    height: 100%;
    background: hsl(var(--clr-red));
    position: absolute;
}

/* Make iframe fill the .map container */
.map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* ================== Media Quaries ======================= */

@media (min-width: 45em) {
    .contact-us {
        grid-template-areas: 'one two';
    }
    .contact-us h1 {
        font-size: 1rem;
    }
    .map h4 {
        font-size: 1rem;
    }
}

/* ============== Support ========================== */

.support-container {
    width: 90vw;
    margin-inline: auto;
    margin-bottom: 7rem;
    place-items: center;
    gap: 3rem;
    grid-auto-columns: 1fr;
    grid-template-areas: 'one'
                          'two'
                          'three';
}

.support-container:nth-child(1) {
    grid-area: one;
}

.support-container:nth-child(2) {
    grid-area: two;
}

.support-container:nth-child(3) {
    grid-area: three;
}

.support-info {
    grid-gap: 1rem;
    place-items: center;
}

.support-img {
    place-items: center;
}

/* ================= Media Quaries =========== */

@media (min-width: 45em) {
    .support-container {
        grid-template-areas:  'one two three';
    }
    .support-info > p, 
    .support-info span{
        font-size: 1rem;
    }
}