/* Hero - section */

.contact-hero {
    width: 100%;
    height: 300px;
    margin: 0 auto;
    display: flex;
    background: linear-gradient(to right,
    rgba(0,0,0,0.2), 
    rgba(0,0,0,0.2)), url('../assets/contact_us.jpg') no-repeat  center center/ cover;
    filter: brightness(1.3);
}
.hero-section {
    margin: 0 auto;
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

}

.hero-section h1 {
    color: var(--white-color);
    
}

/* Contact section */

.contact-section-banner {
    background-color: #eceef0;
    padding: 2rem 0;
}

.contact-section {
    display:flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 2px 4px 20px rgb(26, 27, 31, 0.1);
   
}

/* Contact details */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: var(--primary-color);
    padding: 45px 1rem;
    box-shadow: 0 4px 20px rgb(26, 27, 31, 0.2);
    color: var(--white-color);

}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;

}

.contact {
    display: flex;
    gap: 1rem;
    align-items: center;
    
}

.icon-logo {
    background-color: rgb(236, 238, 240);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.icon-logo i {
    font-size: 1.25rem;
    color: var(--secondary-color);
}

.contact-details {

    /* Note to self the width of 80% was added to maintain a fixed width and prevent it from squishing the remaining content on the page */
    width: 80%;
}

.contact-details h4{
    /* font-size: 1rem; */
    font-weight: 600;
    line-height: 30px;
}

.contact-details p{
    color: rgb(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

/* Get in Touch */
.message-form {
    background-color: var(--white-color);
    width: 100%;
  
}

form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.top {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}


.input-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.message-form input,
textarea {
    font-size: 0.875rem;
    padding: 0.75rem;
    border-radius: 5px;
    border: 1px solid #dcdedf;
    background-color: rgb(236, 238, 240, 0.3);
}

.message-form input:focus {
    outline: 2px solid var(--secondary-color);
}

textarea {
    resize: none;
}

textarea:focus {
    outline: 2px solid var(--secondary-color);
}

.content button {
    font-weight: 600;
    background-color: var(--secondary-color);
    color: var(--white-color);
}

/* Maps Section */

.mobile-maps-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-maps {
    display: flex;
    align-items: center;
    height: 200px;
    overflow: hidden;
}

.maps-section {
    display: none;
}

.maps {
    display: none;
}

iframe {
    width: 110%;
    height: 300px;
    margin-top: -65px;
    margin-left: -10px;
}



/* xs */
/* @media (min-width: 475px) {

} */

/* sm */
/* @media (min-width: 640px) {

} */

/* md */
@media (min-width: 768px) {

    /* Hero - section */

    .contact-hero {
        height: 600px;
    }

    /* Contact details */
    .contact-info {
    width: 100%;
    }

    .maps-section {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
    }

    .maps {
        display: flex;
        align-items: center;
        width: 100%;
        height: 400px;
        overflow: hidden;
    }

    .mobile-maps-section {
        display: none;
    }

    iframe {
        width: 100%;
        height: 500px;
        margin-top: -110px;
    }

}

/* lg */
@media (min-width: 1024px) {

    /* Hero - section */

    .contact-hero {
        height: 95vh;
    }

    /* Contact section */

    .contact-section {
        flex-direction: row;
        gap: 0;
    }

    /* Contact details */
    .contact-info {
        width: 40%;
        display: flex;
        align-self: stretch;
        padding: 6rem 1.5rem;
    }

    .contact-details h4{
        font-weight: 600;
        line-height: 30px;
    }

    .contact-details p{
        color: rgb(255, 255, 255, 0.7);
    }

    /* Get in Touch */
    .message-form {
        background-color: var(--white-color);
        width: 60%;  
    }

    form {
        padding: 6rem 1.5rem;
    }

    .top {
        flex-direction: row;
        justify-content: space-between;
    }

    .top1, .top2 {
        width: 49%;
    }
}
