.estimation-gratuite-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 13;
    &:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        background: #fff;
        z-index: -1;
        height: 100%;
    }
    &:after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        background-image: linear-gradient(180deg, #ffffff, #cfd9f0f2, #e7ecf7f2);
        z-index: -1;
        height: 100%;
    }
    .close-popup {
        color: #0B2766;
        display: inline-flex;
        align-items: center;
        position: absolute;
        right: 40px;
        top: 40px;
        cursor: pointer;
        @media (max-width: 767px) {
            right: 20px;
            top: 20px;
        }
        img {
            margin: 0 0 0 6px;
        }
    }
    .valuation_box {
        display: flex;
        flex-wrap: wrap;
        padding: 68px 0 100px;
        @media (max-width: 1199px) {
            padding: 68px 0 50px;
        }
        .logo-grid {
            width: 100%;
            text-align: center;
            padding: 0 0 115px;
            @media (max-width: 767px) {
                padding: 0 0 30px;
            }
        }
        .heading_box {
            width: 50%;
            @media (max-width: 767px) {
                width: 100%;
                text-align: center;
            }
            .heading {
                max-width: 502px;
                @media (max-width: 767px) {
                    margin: 0 auto;
                }
            }
        }
        .content_box {
            width: 50%;
            padding: 0 0 0 70px;
            @media (min-width: 768px) and (max-width: 991px) {
                padding: 0 0 0 30px;
            }
            @media (max-width: 767px) {
                width: 100%;
                padding: 20px 0 0;
                text-align: center;
            }
            p {
                font-size: 16px;
                line-height: 170%;
                color: #5673B1;
                max-width: 385px;
                padding: 5px 0 0;
                @media (max-width: 767px) {
                    margin: 0 auto;
                }
            }
        }
    }
    .estimation_gratuite_form {
        position: relative;
        padding: 70px 30px 0;
        @media (min-width: 768px) and (max-width: 991px) {
            padding: 50px 30px 0;
        }
        @media (max-width: 767px) {
            padding: 20px 20px 0;
            text-align: center;
        }
        .haed {
            max-width: 904px;
            margin: 0 auto;
            padding: 0 0 0 50px;
            @media (max-width: 767px) {
                padding: 0;
            }
            .subheading {
                font-weight: 800;
                font-size: 12px;
                line-height: 110%;
                letter-spacing: 0.2em;
                text-transform: uppercase;
                color: #0B2766;
            }
            .heading {
                font-size: 24px;
                line-height: 170%;
                color: #0B2766;
                font-weight: normal;
                max-width: 603px;
                padding: 5px 0 0;
                @media (min-width: 768px) and (max-width: 991px) {
                    font-size: 20px;
                    line-height: 150%;
                }
                @media (max-width: 767px) {
                    font-size: 15px;
                    line-height: 150%;
                    padding: 20px 0 0;
                    margin: 0 auto;
                }
            }
        }
        form {
            max-width: 904px;
            background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%), #FBFCFE;
            border: 1px solid #E7EAF3;
            box-sizing: border-box;
            box-shadow: 0px 30px 54px rgb(31 64 150 / 21%);
            border-radius: 20px;
            margin: 20px auto 100px;
            padding: 55px 55px;
            position: relative;
            overflow: hidden;
            @media (min-width: 767px) and (max-width: 1199px) {
                margin: 20px auto 50px;
            }
            @media (max-width: 767px) {
                padding: 30px 20px 50px;
                text-align: left;
                margin: 40px auto 70px;
            }
            .loader {
                position: absolute;
                left: 0;
                right: 0;
                top: 0;
                width: 100%;
                height: 100%;
                display: flex;
                align-items: center;
                justify-content: center;
                background: #0000003d;
                z-index: 100;
                display: none;
                &.active {
                    display: flex;
                }
                img {
                    width: 50px;
                }
            }
            .form_haeding {
                font-weight: 800;
                font-size: 12px;
                line-height: 110%;
                letter-spacing: 0.2em;
                text-transform: uppercase;
                color: rgba(86, 115, 177, 0.5);
                padding: 0 0 20px;
            }
            .tree_input {
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;
                padding: 0 0 18px;
                .box {
                    width: calc(33.3% - 13px);
                    @media (max-width: 767px) {
                        width: 100%;
                        margin: 10px 0 0;
                    }
                }
            }
            .form_inner_wrap {
                padding: 68px 0 0;
                .form_haeding {
                    padding: 0 0 18px;
                }
                .form_grid {
                    display: flex;
                    justify-content: space-between;
                    flex-wrap: wrap;
                    .form_wrap {
                        width: 40%;
                        @media (max-width: 767px) {
                            width: 100%;
                            .box {
                                margin: 10px 0 0;
                            }
                            .flex{
                                .box{
                                    width:100%;
                                }
                                .box-inner{
                                    width:100% !important;
                                }
                            }
                        }
                        &:last-child {
                            width: calc(60% - 20px);
                            @media (max-width: 767px) {
                                width: 100%;
                                margin: 10px 0 0;
                            }
                        }
                    }
                }
            }
            .input__block {
                .box {
                    label {
                        font-weight: 800;
                        font-size: 14px;
                        line-height: 120%;
                        color: #5673B1;
                        width: 100%;
                        display: inline-block;
                    }
                    .estimation_types_dropdown, .sale_rental_dropdown {
                        position: relative;
                        .type_txt {
                            background: #F7F9FF;
                            border: 2px solid #F7F9FF;
                            box-sizing: border-box;
                            border-radius: 5px;
                            font-size: 17px;
                            line-height: 120%;
                            color: #0B2766;
                            padding: 12px 20px 12px 10px;
                            width: 100%;
                            margin: 10px 0 0;
                            min-height: 48px;
                            position: relative;
                            cursor: pointer;
                            &:before {
                                content: "";
                                position: absolute;
                                width: 0px;
                                height: 0px;
                                border-left: 5px solid transparent;
                                border-right: 5px solid transparent;
                                border-top: 6px solid #C5D0E8;
                                right: 10px;
                                top: 20px;
                            }
                        }
                        .type_txt.invalid {
                            border: 2px solid red;
                        }
                        .dropdown_box {
                            position: absolute;
                            display: none;
                            width: 100%;
                            background: #f7f9ff;
                            border-radius: 0 0 5px 5px;
                            margin: -3px 0 0;
                            z-index: 1;
                            overflow: hidden;
                            ul {
                                li {
                                    list-style: none;
                                    padding: 10px 10px;
                                    font-size: 17px;
                                    line-height: 120%;
                                    font-weight: normal;
                                    cursor: pointer;
                                    transition: all 0.5s ease-in-out;
                                    color: #0B2766;
                                    &:hover {
                                        background: #eff4fe;
                                    }
                                }
                            }
                        }
                        &:hover {
                        .dropdown_box {
                                display: block;
                            }  
                        }
                    }
                    input, textarea {
                        background: #F7F9FF;
                        border: 2px solid #F7F9FF;
                        box-sizing: border-box;
                        border-radius: 5px;
                        font-size: 17px;
                        line-height: 120%;
                        color: #0B2766;
                        padding: 12px 10px 12px;
                        width: 100%;
                        margin: 10px 0 0;
                        -webkit-appearance: none;
                        &:focus {
                            border-color : #0B2766;
                        }
                        &:focus-visible {
                            outline: none;
                        }
                        &.invalid{
                            border: 2px solid red;
                        }
                    }
                    textarea {
                        min-height: 212px;
                        resize: none;
                    }
                }
            }
            .checkbox_grid {
                position: relative;
                padding: 38px 0 40px;
                label {
                    display: flex;
                    cursor: pointer;
                    padding-bottom: 12px;
                    @media (max-width: 767px) {
                        justify-content: space-between;
                    }
                    input {
                        display: none;
                        +span {
                            cursor: pointer;
                            display: inline-block;
                            width: 20px;
                            height: 20px;
                            background: #fff100;
                            border-radius: 2px;
                            position: relative;
                            
                        }
                        &:checked {
                            +span {
                                &:before {
                                    content: '';
                                    position: absolute;
                                    width: 11px;
                                    height: 5px;
                                    border-left: 2px solid;
                                    border-bottom: 2px solid;
                                    transform: rotate(-45deg);
                                    left: 3px;
                                    top: 5px;
                                }
                            }
                        }
                    }
                    span{
                        &.invalid{
                            border: 2px solid red;
                        }
                    }
                    p {
                        font-size: 14px;
                        line-height: 160%;
                        color: #5673B1;
                        max-width: 670px;
                        padding: 0 0 0 7px;
                        @media (min-width: 768px) and (max-width: 991px) {
                            max-width: 570px;
                        }
                        @media (max-width: 767px) {
                            font-size: 12px;
                            width: calc(100% - 20px);
                        }
                    }
                }
            }
            .messages{
                position: absolute;
                bottom: 20px;
                left: 0;
                width: 100%;
                text-align: center;
                right: 0;
                .success{
                    display:none;
                    color:green;
                }
                .error{
                    display:none;
                    color:red;
                }
                .recaptcha{
                    display:none;
                    color:red;
                }
            }
        }
    }
    .bottom {
        text-align: center;
        padding: 100px 0 77px;
        @media (min-width: 768px) and (max-width: 1199px) {
            padding: 50px 0 50px;
        }
        @media (max-width: 767px) {
            padding: 0 0 50px;
        }
        .close-popup {
            position: initial;
            display: inline-flex;
            align-items: center;
            justify-content: center;        
        }
    }
}

.form_wrap{
    .flex{
        display:flex;
        gap:10px;
        margin-bottom:10px;
        .box{
            width:30%;
            @media (min-width: 768px) and (max-width: 1024px){
                width:40% !important;
            }
        }
        .box-inner{
            width:70% !important;
            
        }
    }
}