.popup_appointment {
    max-height: 360px;
    height: 100%;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 50%;
    display: none;
    z-index: 1000;
    width: 100%;
    max-width: 630px;
    &.active {
        display: block;
    }
    &.open-slots {
        max-height: 509px;
    }
    .close_popup {
        position: absolute;
        width: 40px;
        height: 40px;
        border-radius: 10rem;
        left: 0;
        right: 0;
        margin: 0 auto;
        top: -70px;
        cursor: pointer;
        border: 2px solid #0b2766;
        &:after,
        &:before {
            content: "";
            position: absolute;
            width: 2px;
            height: 20px;
            background: #0b2766;
            left: 17px;
            top: 8px;
        }
        &:after {
            transform: rotate(45deg);
        }
        &:before {
            transform: rotate(-45deg);
        }
    }
    .inner-popup {
        background: linear-gradient(
                180deg,
                #ffffff 0%,
                rgba(255, 255, 255, 0) 100%
            ),
            #fbfcfe;
        border: 1px solid #e7eaf3;
        box-shadow: 0px 30px 54px rgb(31 64 150 / 21%);
        border-radius: 20px;
        padding: 41px 50px 5px;
        height: 100%;
        overflow-y: auto;
        &.no-appointment {
            text-align: center;
            font-size: 20px;
            display: none;
            margin: 0 auto;
            align-items: center;
            justify-content: center;
            padding: 41px 50px;
            &.active {
                display: flex;
            }
        }
        &.formWrapper {
            &.hide {
                display: none;
            }

            .appointment-content {
                h6 {
                    font-weight: 500;
                    font-size: 20px;
                    text-align: center;
                    color: #0b2766;
                    line-height: 34px;
                    padding-bottom: 20px;
                }
            }
            .inner-content {
                display: flex;
                padding: 20px 0px 0 0;
                @media (max-width: 767px) {
                    padding: 20px 0 0;
                }
                .slick-list {
                    // padding: 0 26% 0 0 !important;
                    position: relative;
                    width: 100%;
                    &:before {
                        @media (min-width: 767px) {
                            content: "";
                            position: absolute;
                            right: 0;
                            top: 0;
                            height: 100%;
                            background-image: linear-gradient(
                                265deg,
                                #ffffff 0%,
                                rgba(255, 255, 255, 0) 100%
                            );
                            width: 200px;
                            z-index: 1;
                            pointer-events: none;
                        }
                    }
                    .slick-track {
                        margin: 0 auto;
                    }
                }
                .slick-next {
                    right: -20px;
                    background-image: url(/images/arrow-icon-right.svg);
                    background-repeat: no-repeat;
                    &:before {
                        display: none;
                    }
                }
                .appointment-visit {
                    background: #f7f9ff;
                    border-radius: 5px;
                    width: 33%;
                    text-align: center;
                    color: #0b2766;
                    font-weight: 700;
                    margin: 0 9px;
                    cursor: pointer;
                    input {
                        display: none;
                        &:checked {
                            & + .estimate-box-content {
                                background: linear-gradient(#fafbff, #fafbff)
                                        padding-box,
                                    linear-gradient(
                                            to top,
                                            #fee94b,
                                            10%,
                                            #ccd7e5
                                        )
                                        border-box;
                                box-shadow: 0px 2px 3px rgb(22 30 49 / 8%);
                                &:before {
                                    opacity: 1;
                                }
                            }
                        }
                    }
                    .estimate-box {
                        cursor: pointer;
                        .estimate-box-content {
                            display: flex;
                            flex-direction: column;
                            padding: 15px 10px 20px;
                            position: relative;
                            border: 1px solid transparent;
                            border-radius: 5px;
                            text-transform: capitalize;
                            &:before {
                                content: "";
                                background-image: radial-gradient(
                                    48.54% 45.08% at 50% 117.21%,
                                    rgba(255, 241, 0, 0.5) 0%,
                                    rgba(255, 241, 0, 0) 100%
                                );
                                box-shadow: 0px 2px 3px rgb(22 30 49 / 8%);
                                width: 100%;
                                height: 100%;
                                position: absolute;
                                top: 0;
                                left: 0;
                                opacity: 0;
                                pointer-events: none;
                            }
                            p {
                                font-size: 16px;
                            }
                            span {
                                font-size: 56px;
                            }
                        }
                    }
                }
            }
            .hoursWrapper {
                overflow-y: auto;
                max-height: 245px;
                display: none;
                &.active {
                    display: block;
                }
                .no-slots {
                    color: red;
                    font-size: 18px;
                    text-align: center;
                }
                .hours-content {
                    margin: 0 0 8px 9px;
                    &.booked {
                        display: none;
                    }
                    label {
                        input {
                            display: none;
                            &:checked {
                                & + .checkbox-gradient {
                                    background: linear-gradient(
                                                #fafbff,
                                                #fafbff
                                            )
                                            padding-box,
                                        linear-gradient(
                                                to top,
                                                #fee94b,
                                                10%,
                                                #ccd7e5
                                            )
                                            border-box;
                                    box-shadow: 0px 2px 3px rgb(22 30 49 / 8%);
                                    &:before {
                                        opacity: 1;
                                    }
                                }
                            }
                        }
                        .checkbox-gradient {
                            border: 1px solid transparent;
                            position: relative;
                            border-radius: 5px;
                            background: #f7f9ff;
                            border-radius: 5px;
                            &:before {
                                content: "";
                                background-image: radial-gradient(
                                    48.54% 45.08% at 50% 117.21%,
                                    rgba(255, 241, 0, 0.5) 0%,
                                    rgba(255, 241, 0, 0) 100%
                                );
                                box-shadow: 0px 2px 3px rgb(22 30 49 / 8%);
                                width: 100%;
                                height: 100%;
                                position: absolute;
                                top: 0;
                                left: 0;
                                opacity: 0;
                                pointer-events: none;
                            }
                            h6 {
                                font-weight: 700;
                                font-size: 22px;
                                line-height: 37px;
                                text-align: center;
                                color: #0b2766;
                                padding: 19px 0 15px;
                            }
                        }
                    }
                }
            }
            .contact_form {
                padding-top: 60px;
                display: none;
                .loader {
                    position: absolute;
                    left: 0;
                    right: 0;
                    top: 0;
                    width: 100%;
                    height: 100%;
                    align-items: center;
                    justify-content: center;
                    background: #0000003d;
                    z-index: 100;
                    border-radius: 20px;
                    display: none;
                    text-align: center;
                    &.active {
                        display: flex;
                    }
                    img {
                        max-width: 50px;
                    }
                }
                &.show {
                    display: block;
                }
                .form_block {
                    label {
                        font-weight: 800;
                        font-size: 14px;
                        line-height: 17px;
                        color: #5673b1;
                        width: 100%;
                        display: inline-block;
                        padding-bottom: 9px;
                    }
                    input {
                        background: #f7f9ff;
                        border: 1px solid #f7f9ff;
                        border-radius: 5px;
                        width: 100%;
                        font-weight: 400;
                        font-size: 17px;
                        line-height: 20px;
                        color: #0b2766;
                        padding: 12px 16px;
                        margin-bottom: 27px;
                        outline: none;
                        &:focus {
                            border: 1px solid #ced5e6;
                            box-shadow: 0px 2px 3px rgba(22, 30, 49, 0.08);
                        }
                        &::placeholder {
                            color: #a3b1ce;
                        }
                        &.invalid {
                            border: 1px solid red;
                        }
                    }
                }
                .submit-btn {
                    margin-top: 19px;
                    .appointment-button {
                        width: 100%;
                    }
                }
                .messages {
                    text-align: center;
                    padding: 10px 0;
                    font-size: 18px;
                    margin-bottom: 32px;
                    p {
                        display: none;
                        &.error-red {
                            color: red;
                        }
                        &.success {
                            color: green;
                        }
                        &.active {
                            display: block;
                        }
                    }
                }
                .checkbox {
                    padding: 10px 0 0;
                    label {
                        display: inline-flex;
                        align-items: center;
                        font-size: 14px;
                        line-height: 160%;
                        color: #5673b1;
                        cursor: pointer;
                        gap: 8px;
                        span {
                            display: inline-block;
                            border: 2px solid #4a6cb7;
                            box-sizing: border-box;
                            border-radius: 3px;
                            height: 20px;
                            width: 20px;
                            margin: 0 5px 0 0;
                            position: relative;
                            &:before {
                                content: "";
                                position: absolute;
                                width: 9px;
                                height: 4px;
                                border-left: 3px solid #0b2766;
                                border-bottom: 3px solid #0b2766;
                                transform: rotate(-56deg);
                                top: 3px;
                                left: 2px;
                                display: none;
                            }
                        }
                        input {
                            display: none;
                            &:checked {
                                + span {
                                    background: #fff100;
                                    border: 2px solid #fff100;
                                    border-radius: 3px;
                                    &:before {
                                        display: block;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        &.thankyou {
            display: none;
            &.show {
                display: block;
            }
            .thankyou-content {
                text-align: center;
                line-height: 34px;
                color: #0b2766;
                .thankyou-message {
                    padding-bottom: 50px;
                }

                p {
                    font-weight: 500;
                    font-size: 20px;
                    .light-blue {
                        color: #5673b1;
                    }
                    .ap-time {
                        span {
                            text-transform: capitalize;
                        }
                    }
                }
                h5 {
                    font-size: 36px;
                    font-weight: 700;
                }
                .back-btn {
                    .appointment-button {
                        width: 100%;
                    }
                }
            }
        }
    }
}
