.newsletter_form_wrapper {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 17, 52, 0.5);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
    // @media #{$tab} {
    //   display: none !important;
    // }
    &.newsletter_active {
        opacity: 1;
        visibility: visible;
    }
    .newsletter_form_inner {
        width: 848px;
        background: #ffffff;
        border-radius: 10px;
        overflow: hidden;
        // height: 448px;
        display: grid;
        grid-template-columns: 327px auto;
        position: relative;
        max-height: 90vh;
        @media #{$medium_device} {
            width: 70%;
        }
        @media #{$tab2} {
            grid-template-columns: 1fr;
            position: relative;
            z-index: 1;
            justify-content: center;
            align-items: center;
            width: 60%;
        }
        .close_modal {
            position: absolute;
            left: 15px;
            z-index: 10;
            top: 15px;
            cursor: pointer;
            width: 30px;
            height: 30px;
            text-align: center;
            line-height: 30px;
            font-size: 15px;
            border-radius: 50%;
            transition: 0.3s;
            display: inline-block;
            i {
                line-height: 30px;
                font-size: 14px;
            }
            &:hover {
                background: var(--base_color);
                color: #fff;
                transform: rotate(90deg);
            }
        }
        @media #{$tab} {
            grid-template-columns: auto;
            // height: 450px;
            overflow: auto;
            width: 80%;
        }
        @media #{$small_mobile}{
            width: 90%;
        }
        .newsletter_form_thumb {
            height: 100%;
            background-image: url(../img/newsletter_bg.png);
            background-size: cover;
            background-position: center center;
            background-repeat: no-repeat;
            @media #{$tab2} {
                position: absolute;
                right: 0;
                top: 0;
                width: 100%;
                height: 100%;
                z-index: -1;
            }
        }
        .newsletter_form {
            padding: 50px;
            @media #{$tab} {
                padding: 30px;
            }
            .primary_input3 {
                border-radius: 5px;
            }
            h3 {
                font-size: 30px;
                font-weight: 700;
                color: var(--text_color);
                margin-bottom: 0;
            }
            p {
                font-size: 14px;
                font-weight: 500;
                line-height: 26px;
                color: #676e8b;
                margin: 15px 0 25px 0;
            }
        }
    }
    .popup_image{
        width: 100%;
        height: auto;
    }
}
