.contact {
    width: 100%;
    background: var(--primary);
    position: relative;

    .contact_sub_container {
        width: 80%;
        @include Flex;
        flex-direction: column;
        margin-inline: auto;
        padding-block: 80px;

        .header {
            @include Flex;
            flex-direction: column;
            padding-bottom: 50px;

            h1 {
                color: var(--secondary);
                font-size: 1.5vw;
                letter-spacing: 4px;
            }

            h4 {
                font-weight: bold;
                font-size: 3vw;
                color: var(--white);
            }
        }

        .body {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;

            .contact_info {
                width: 40%;

                .contact_details {
                    display: flex;
                    justify-content: center;
                    flex-direction: column;

                    div {
                        display: flex;
                        align-items: center;
                        margin-bottom: 10px;
                    }

                    svg {
                        font-size: 1.6vw;
                        margin-right: 15px;
                        color: var(--secondary);
                    }

                    span {
                        font-size: 1.2vw;
                        font-weight: 600;
                        transition: ease-in-out .2s;
                        color: var(--white);
                    }
                }
            }

            .contact_map {
                width: 100%;

                img {
                    z-index: 99 !important;
                    width: 96%;
                }

                &::before {
                    content: "";
                    background-image: url('../../../public/Home/settingIcon.png');
                    position: absolute;
                    background-size: cover;
                    bottom: 8.5%;
                    left: 8.5%;
                    width: 40px;
                    height: 40px;
                }
            }

            .contact_form {
                width: 50%;
                display: flex;
                align-items: center;
                flex-direction: column;
                background: var(--white);
                padding-block: 20px;
                border-radius: 14px;

                &::after {
                    content: "";
                    background-image: url('../../../public/Home/settingIcon.png');
                    position: absolute;
                    background-size: cover;
                    top: 24%;
                    right: 7%;
                    width: 90px;
                    height: 90px;
                }

                .title_container {
                    width: 100%;
                    @include Flex;
                    margin-bottom: 20px;
                    border-bottom: 1px solid var(--darkGray);

                    h3 {
                        text-align: center;
                        width: 27%;
                        border-bottom: 3.5px solid var(--primary);
                        font-weight: 550;
                        color: var(--primary);
                        font-size: 1.4vw;
                        margin-bottom: -2px;
                        padding-bottom: 10px;
                    }
                }

                .input_form {
                    width: 90%;
                    margin-inline: auto;
                    display: flex;
                    flex-direction: column;

                    div {
                        width: 100%;
                        display: flex;
                        justify-content: space-between;
                    }

                    .text_area {
                        width: 100% !important;

                        .field {
                            padding: 10px 10px 70px 20px !important;

                        }
                    }

                    .input_container {
                        width: 48%;
                        margin-bottom: 15px;

                        .field {
                            font-size: 1.2vw;
                            padding: 10px 20px;
                            border-radius: 15px;
                            background: var(--whiteOpacity);
                            border-color: var(--whiteOpacity);
                        }
                    }

                    .button_container{
                        width: 50%;
                        // @include Flex;
                        margin-inline: auto;
                        .contact_button{
                            display: flex !important;justify-content: center !important;align-items: center !important;
                            text-align: center;
                            width: 100%;
                            border-radius: 30px;
                            background: var(--primary);
                            color: var(--white);
                            padding: 20px 20px;
                            font-size: 18px;
                        }
                    }
                }
            }
        }
    }
}

@media screen and (max-width:800px) {
    .contact {
        .contact_sub_container {
            width: 90%;
            padding-block: 40px;
    
            .header {
                padding-bottom: 50px;   
                text-align: center; 
                h1 {
                    font-size: 16px;
                }
    
                h4 {
                    font-size: 20px;
                }
            }
    
            .body {
                flex-direction: column;
                .contact_info {
                    width: 90%;
                    padding-bottom: 40px;
                    .contact_details {
                        svg {
                            font-size: 30px;
                        }
    
                        span {
                            font-size: 14px;
                        }
                    }
                    img{
                        width: 100%;
                    }
                }
    
                .contact_map {    
                    &::before {
                        bottom: 2.5%;
                        left: 6.5%;
                    }
                }
                .contact_form {
                    width: 90%;
                    padding-block: 20px;
    
                    &::after {
                        display: none;
                        top: 22%;
                        right: 5%;
                        width: 70px;
                        height: 70px;
                    }
    
                    .title_container {
                        h3 {
                            width: 50%;
                            font-size: 16px;
                        }
                    }
                    .input_form {
                        .input_container {
                            .field {
                                font-size: 12px;
                            }
                        }
                        .button_container {
                            .contact_button {
                                padding: 5px 10px;
                                font-size: 12px;
                            }
                        }
                    }
                }
            }
        }
    }
}