﻿.contactSection {
    width: 100%;
    display: flex;
    padding: 0 10%;
    flex-direction: column;
}

.contact_img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
}

.main {
    padding: 0 10%;
}

.para {
    font-size: 1.3rem;
    text-align: center;
    padding: 3%;
    font-family: 'Hind Madurai';
    color: gray;
}

.ContactCards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 20px;
}

.ContactCard {
    display: grid;
    align-content: center;
    position: relative;
    box-shadow: 0 0 5px grey;
    border-radius: 10px;
    text-align: center;
    height: 160px;
    overflow: hidden;
}

    .ContactCard div {
        width: 90px;
        height: 90px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background-color: #d98400;
        position: absolute;
        left: -15px;
        top: -15px;
        z-index:-1;
        
    }
    .ContactCard p {
        padding: 0 10%;
        color: gray;
    }
.link a {
    color: gray;
}
        .ContactCard  h4 {
            color: #d98400;
            font-family: 'Prompt';
        }
            .ContactCard div i {
                font-size: 1.5rem;
                color: white;
            }

.contactForm {
    margin: 20px 0;
    margin-top: 4%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    grid-gap: 2em;
}

.formSection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 60px 60px 60px 120px;
}

.stretch {
    grid-column: span 2;
}

.formSection .input {
    border: none;
    box-shadow: 0 0 3px gray;
    border-radius: 10px;
    padding-left: 15px;
}

.submit {
    color: white;
    background-color: #d98400;
    text-transform: uppercase;
    font-weight: 700;
    border: 2px solid transparent;
}

    .submit:hover {
        color: #d98400;
        background: transparent;
        border: 2px solid #d98400;
    }
/*========================================================================*/
@media screen and (max-width:800px) {
    .contactSection {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 0 10%;
    }
    .main {
        padding: 0;
        display: grid;
        grid-template-columns: 1fr;
    }
    .contact_img {
        width: 100%;
        height:100%;
        object-fit: cover;
        object-position: center;
    }
    .para {
        font-size: 1.3rem;
        text-align: center;
        padding: 3%;
    }

    .ContactCards {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .input {
        grid-column: span 2;
    }

    .ContactCard {
        display: flex;
        /* padding: 10% 20%; */
        position: relative;
        box-shadow: 0 0 5px grey;
        border-radius: 10px;
        text-align: center;
        height: 160px;
        overflow: hidden;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .submit {
        grid-row: 6/7;
    }

    .ContactCard div {
        width: 90px;
        height: 90px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background-color: #d98400;
        position: absolute;
        left: -15px;
        top: -15px;
        z-index: -1;
    }

        .ContactCard div i {
            font-size: 1.5rem;
            color: white;
        }

    .contactForm {
        margin-top: 4%;
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        grid-gap: 10px;
        width: 95vw;
        justify-content: center;
    }

    .formSection {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 60px 60px 60px;
        align-content: center;
        justify-content: center;
        gap: 20px;
    }
    .formSection .input, textarea {
        border: none;
        box-shadow: 0 0 3px gray;
        border-radius: 10px;
        padding: 15px;
    }

    .submit {
        color: white;
        background-color: #d98400;
        text-transform: uppercase;
        font-weight: 700;
        border: 2px solid transparent;
    }

        .submit:hover {
            color: #d98400;
            background: transparent;
            border: 2px solid #d98400;
        }
}
/*Media Query Section of TABMODE*/
@media (min-width : 800px) and (max-width : 1150px) {
    .ContactCards {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
