.heading::before {
    background-image: url("../images/contact-us/cover.jpg");
    filter: blur(2px);
}

.grid-3 h3 {
    padding: 10px 0;
    font-size: 1rem;
    font-weight: 400;
}

.grid-3 p {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.5);
}

.section-1 i {
    cursor: pointer;
    transition: all 0.3s ease-out;
}

h3 {
    font-size: 1.4rem;
    font-weight: 400;
}

h3.phone {
    padding-bottom: 0px;
}

.phone strong {
    color: rgba(0, 0, 0, 0.5);
}

.section-1 i:hover {
    transform: scale(1.1);
}

.section-2 .grid-2 {
    column-gap: 25px;
    row-gap: 0;
}

form {
    width: 565px;
}

.flex {
    gap: 25px;
}

input[type="text"],
input[type="email"],
textarea {
    padding: 6px 12px 6px 12px;
    font-size: 1rem;
    border: 1px solid #E0DEDE;
    border-radius: 3px;
    box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, 0.05);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"],
input[type="email"] {
    width: 270px;
    height: 40px;
    box-sizing: border-box;
}

textarea {
    width: 565px;
    min-height: 40px;
    height: 206px;
    box-sizing: border-box;
}

label,
input,
textarea {
    display: block;
    flex-direction: column;
}

form>input,
form>label {
    display: inline;
}

label {
    font-size: 0.8rem;
    line-height: 2.5;
}

.submit-btn {
    display: block;
    width: 130px;
    height: 40px;
    border: none;
    border-radius: 3px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

input:focus,
textarea:focus {
    box-shadow: inset 0 0 4px 4px rgba(0, 0, 0, 0.08);
}

.map-container {
    position: relative;
    width: 600px;
    height: 485px;
    padding: 10px 0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-card {
    position: absolute;
    top: 20px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    max-width: 250px;
}

.map-card h3 {
    padding: 0 0 5px;
    font-size: 16px;
    font-weight: bold;
}


/* *************mobile queries*************** */

@media (max-width: 768px) {
    .section-1.grid-3 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-2.grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .section-2 .grid-2 {
        grid-template-columns: 1fr;
    }

    main {
        padding-top: 108px;
    }

    .heading {
        margin-top: 0;
        padding: 4.5rem 1rem;
    }

    .section-2 {
        padding: 1rem;
    }

    form {
        width: 100%;
    }

    input[type="text"],
    input[type="email"] {
        width: 100%;
        height: 40px;
    }

    textarea {
        width: 100%;
        min-height: 40px;
        height: 206px;
    }

    .section-2>div:first-child {
        padding-bottom: 3rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    }

    .map-container {
        width: 100%;
        height: 300px;
        justify-self: center;
    }
}