.popupBookADemoContainer {
    .popup-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 10;
        display: none;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.25s ease;
        &.active {
            display: flex;
            opacity: 1;
            .popup-modal {
                transform: translateY(0);
                opacity: 1;
            }
        }
        .popup-modal {
            position: relative;
            display: flex;
            width: 95%;
            margin: 0 auto;
            max-width: 900px;
            min-height: 563px;
            background: #fff;
            transform: translateY(24px);
            opacity: 0;
            transition: transform 0.3s ease, opacity 0.3s ease;
            .popup-close-btn {
                position: absolute;
                top: 10px;
                right: 10px;
                z-index: 11;
                background: none;
                border: none;
                cursor: pointer;
                padding: 4px;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .left-content {
                width: 50%;
                position: relative;
                display: none;
                .image {
                    width: 100%;
                    height: 100%;
                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }
                .left-desc {
                    color: #162950;
                    font-family: 'Manrope';
                    font-size: 26px;
                    font-style: normal;
                    font-weight: 500;
                    line-height: 110%;
                    letter-spacing: -0.52px;
                    text-transform: capitalize;
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    padding: 24px;
                }
                &.active {
                    display: flex;
                }
            }

            .right-content {
                width: 50%;
                padding: 24px;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                display: none;
                gap: 32px;
                .form-title {
                    color: #141414;
                    font-family: 'Manrope';
                    font-size: 32px;
                    font-style: normal;
                    font-weight: 500;
                    line-height: 110%; /* 35.2px */
                    letter-spacing: -0.64px;
                    text-transform: capitalize;
                }

                .book-a-demo-popup-form-container {
                    width: 100%;
                    .book-a-demo-popup-form {
                        width: 100%;
                        display: flex;
                        flex-direction: column;
                        gap: 24px;
                        h2 {
                            display: none;
                        }
                        .custom-select-wrapper {
                            position: relative;
                            width: 100%;
                            .custom-select-trigger {
                                display: flex;
                                align-items: center;
                                justify-content: space-between;
                                cursor: pointer;
                                padding-bottom: 8px;
                                border-bottom: 0.5px solid #C2C2C2;
                                .trigger-text {
                                    color: #858585;
                                    font-family: 'Manrope';
                                    font-size: 14px;
                                    font-weight: 500;
                                    line-height: 130%;
                                    letter-spacing: -0.42px;
                                    &.has-value {
                                        color: #141414;
                                    }
                                }
                                svg {
                                    flex-shrink: 0;
                                    transition: transform 0.2s ease;
                                }
                            }
                            &.open .custom-select-trigger svg {
                                transform: rotate(180deg);
                            }
                            .custom-select-options {
                                display: none;
                                position: absolute;
                                top: calc(100% + 2px);
                                left: 0;
                                width: 100%;
                                background: #fff;
                                border: 1px solid #E2E2E2;
                                box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
                                z-index: 50;
                                max-height: 200px;
                                overflow-y: auto;
                                .custom-option {
                                    padding: 7px 8px;
                                    cursor: pointer;
                                    font-family: 'Manrope';
                                    font-size: 14px;
                                    font-weight: 500;
                                    line-height: 130%;
                                    letter-spacing: -0.42px;
                                    color: #141414;
                                    &:hover {
                                        background-color: #F0F5FF;
                                    }
                                    &.selected {
                                        background-color: #F0F5FF;
                                    }
                                }
                            }
                            &.open .custom-select-options {
                                display: block;
                            }
                        }
                        .form-columns-2 {
                            max-width: unset;
                            display: flex;
                            gap: 24px;
                            align-items: flex-start;
                            .hs-form-field {
                                width: 50%;
                                position: relative;
                                .input {
                                    width: 100%;
                                    &.required-field {
                                        position: relative;
                                        &::before {
                                            content: '*';
                                            color: #ef6b51;
                                            position: absolute;
                                            left: -8px;
                                            bottom: 8px;
                                            font-family: 'Manrope';
                                            font-size: 14px;
                                            font-weight: 500;
                                            visibility: visible;
                                        }
                                        &.has-value::before {
                                            visibility: hidden;
                                        }
                                    }
                                    input, select, textarea {
                                        width: 100%;
                                        border: none;
                                        outline: none;
                                        padding-bottom: 8px;
                                        border-bottom: 0.5px solid #C2C2C2;
                                        color: #141414;
                                        font-family: 'Manrope';
                                        font-size: 14px;
                                        font-style: normal;
                                        font-weight: 500;
                                        line-height: 130%;
                                        letter-spacing: -0.42px;
                                        &::placeholder {
                                            color: #858585;
                                        }
                                    }
                                    select {
                                        &:invalid {
                                            color: #858585;
                                        }
                                        option[disabled] {
                                            color: #858585;
                                        }
                                    }
                                    textarea {
                                        // max-height: 80px;
                                        // resize: vertical;
                                        margin-top: 5px;
                                    }
                                    &.focused {
                                        input, select, textarea {
                                            border-bottom-color: #1075DC;
                                        }
                                        .custom-select-trigger {
                                            border-bottom-color: #1075DC;
                                        }
                                    }
                                    &.error-border:not(.focused) {
                                        input, textarea {
                                            border-bottom-color: #E32D2D;
                                        }
                                        .custom-select-trigger {
                                            border-bottom-color: #E32D2D;
                                        }
                                    }
                                }
                                .hs-error-msgs {
                                    width: 100%;
                                    margin-top: 6px;
                                    li {
                                        list-style-type: none;
                                        label {
                                            display: block;
                                            a {
                                                font-size: 10px;
                                                font-family: 'Manrope';
                                                font-style: normal;
                                                font-weight: 400;
                                                line-height: 150%;
                                                color: #E32D2D;
                                            }
                                        }
                                        .hs-error-msg {
                                            font-size: 10px;
                                            font-family: 'Manrope';
                                            font-style: normal;
                                            font-weight: 400;
                                            line-height: 150%;
                                            color: #E32D2D;
                                        }
                                    }
                                }
                                label {
                                    display: none;
                                }
                            }
                        }
                        .form-columns-1 {
                            max-width: unset;
                            .hs-form-field {
                                width: 100%;
                                position: relative;
                                .input {
                                    width: 100%;
                                    input, select, textarea {
                                        width: 100%;
                                        border: none;
                                        outline: none;
                                        padding-bottom: 8px;
                                        border-bottom: 0.5px solid #C2C2C2;
                                        color: #141414;
                                        font-family: 'Manrope';
                                        font-size: 14px;
                                        font-style: normal;
                                        font-weight: 500;
                                        line-height: 130%;
                                        letter-spacing: -0.42px;
                                        &::placeholder {
                                            color: #858585;
                                        }
                                    }
                                    textarea {
                                        // max-height: 80px;
                                        // resize: vertical;
                                        margin-top: 5px;
                                    }
                                }
                                .hs-error-msgs {
                                    margin-top: 6px;
                                    width: 100%;
                                    li {
                                        list-style-type: none;
                                        label {
                                            display: block;
                                            a {
                                                font-size: 10px;
                                                font-family: 'Manrope';
                                                font-style: normal;
                                                font-weight: 400;
                                                line-height: 150%;
                                                color: #E32D2D;
                                            }
                                        }
                                        .hs-error-msg {
                                            font-size: 10px;
                                            font-family: 'Manrope';
                                            font-style: normal;
                                            font-weight: 400;
                                            line-height: 150%;
                                            color: #E32D2D;
                                        }
                                    }
                                }
                                label {
                                    color: #858585;
                                    font-family: 'Manrope';
                                    font-size: 14px;
                                    font-style: normal;
                                    font-weight: 500;
                                    line-height: 130%;
                                    letter-spacing: -0.42px;
                                    text-transform: capitalize;
                                }
                            }
                        }
                        .btn_submit_book_demo_popup_form {
                            width: 100%;
                            padding: 12px 0;
                            text-align: center;
                            background: #1075DC;
                            color: #fff;
                            font-family: 'Manrope';
                            font-size: 16px;
                            font-style: normal;
                            font-weight: 600;
                            line-height: 150%;
                            border: none;
                            outline: none;
                            cursor: pointer;
                            &.disabled {
                                opacity: 0.3;
                                cursor: not-allowed;
                            }
                        }
                        .hs_error_rollup {
                            display: none;
                        }
                    }
                }
                &.active {
                    display: flex;
                }

            }
            .book-a-demo-popup-thankyou {
                display: none;
                opacity: 0;
                transform: translateY(24px);
                transition: transform 0.3s ease, opacity 0.3s ease;
                .thankyou-left-content {
                    width: 50%;
                }
                .thankyou-right-content {
                    width: 50%;
                    display: flex;
                    flex-direction: column;
                    gap: 24px;
                    z-index: 10;
                    justify-content: center;
                    padding: 24px;
                    .top-message {
                        color: #162950;
                        font-family: 'Manrope';
                        font-size: 48px;
                        font-style: normal;
                        font-weight: 600;
                        line-height: 100%; /* 48px */
                        letter-spacing: -0.96px;
                        text-transform: capitalize;
                    }
                    .small-message {
                        color: #162950;
                        font-family: 'Manrope';
                        font-size: 16px;
                        font-style: normal;
                        font-weight: 500;
                        line-height: 130%; /* 20.8px */
                        letter-spacing: -0.48px;
                    }
                }
                .thankyou-background-image {
                    position: absolute;
                    width: 100%;
                    height: 100%;
                    top: 0;
                    left: 0; 
                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }
                &.active {
                    width: 100%;
                    display: flex;
                    justify-content: flex-end;
                    opacity: 1;
                    transform: translateY(0);
                }
            }
        }
    }
    @media screen and (max-width: 600px) {
        .popup-overlay {
            .popup-modal {
                .left-content {
                    width: 100%;
                    &.active {
                        display: none;
                    }
                }
                .right-content {
                    width: 100%;
                    .form-title {
                        font-size: 32px;
                    }
                    .book-a-demo-popup-form-container {
                        .book-a-demo-popup-form {
                            .custom-select-wrapper {
                                .custom-select-options {
                                    max-height: 150px;
                                }
                            } 
                        } 
                    }
                }
                .book-a-demo-popup-thankyou {
                    padding-left: 75px;
                    .thankyou-left-content {
                        display: none;
                    }
                    .thankyou-right-content {
                        width: 100%;
                        .top-message {
                            font-size: 32px;
                        }
                    }
                }
            }
        }
    }
    @media screen and (min-width: 600px) and (max-width: 1023px) {
        .popup-overlay {
            .popup-modal {
                .book-a-demo-popup-thankyou {
                    .thankyou-right-content {
                        width: 70%;
                    }
                }
            }
        }
    }
}
