/* ========================================
   POPUP OVERLAY
   ======================================== */
.mj-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: none; /* Handled by JS */
    overflow-x: hidden;
    overflow-y: auto; /* Allow scrolling if content is tall */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.mj-popup-overlay.show {
    opacity: 1;
}
.mj-form-container {
    box-shadow: 0 20px 42px 0 rgb(0 0 0 / .1) !important;
}
.mj-form-container input.wpcf7-form-control.has-spinner.wpcf7-submit.primary {
    width: 100%;
    max-width: 100% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    margin-top: 10px;
    padding: 0 50px;
    border-radius: 50px;
    text-transform: capitalize;
    letter-spacing: .5px;
    background: linear-gradient(135deg, var(--accent-color), #2563eb);
    border: 2px solid transparent !important;
    color: #fff;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all .3s ease;
    height: 48px;
    line-height: inherit;
}
.popup-website-form .form-heading {
    font-size: 18px;
    margin-bottom: 9px;
    font-weight: 600;
}
.popup-website-form .form-heading span{
        color: #2196f3;
}
.popup-website-form label textarea, .popup-website-form label input {
    border: 1px solid #c1bfbf !important;
    border-radius: 4px !important;
}
.popup-website-form label input ,.popup-website-form .select2-container--default .select2-selection--single {
    height: 48px;
}
.popup-website-form label span,.popup-website-form label  {
        font-weight: 500;
        font-size: 14.5px;
}
.mj-popup-container .slick-list.draggable .slick-track {
    display: flex;
    align-items: center;
}
p.red-sub-heading {
    font-size: 14px;
    margin-bottom: 5px;
    margin-top: 5px;
    color: #ed1f24;
}
.popup-website-form label,.popup-website-form label textarea,.popup-website-form label input {
    width: 100% !important;
}
.popup-website-form textarea {
    height: 100px;
}
/* ========================================
   POPUP CONTAINER (Bootstrap Modal Adaptation)
   ======================================== */
.mj-popup-container {
     /* Bootstrap handles width/positioning */
     margin: 1.75rem auto; 
     height: auto;
     overflow: visible;
}

.mj-popup-content.modal-content {
    background: radial-gradient(75.99% 262.53% at 95.73% 108.2%, rgb(0 102 255 / .2) 0, #fff0 100%), radial-gradient(30.61% 75.99% at 3.39% 9.41%, #e6f4ed 0, #fff0 100%), #f5f5fc;
    background-blend-mode: normal, normal, darken, normal;
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 30px;
}

/* Ensure full width on mobile */
@media (max-width: 576px) {
    .mj-popup-container {
        margin: 10px;
        width: auto;
        max-width: none;
    }
    
    .mj-popup-content.modal-content {
        padding: 20px;
    }
}

/* ========================================
   CLOSE BUTTON
   ======================================== */
.mj-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: #ff4d4d;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    z-index: 100;
    transition: all 0.3s ease;
    padding: 0;
}

.mj-popup-close:hover {
    transform: rotate(180deg) scale(1.1);
    background: #e60000;
}

/* ========================================
   TOP SECTION
   ======================================== */
.mj-popup-top {
    margin-bottom: 25px;
}

.mj-popup-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0;
}
.mj-popup-title span.small-text {
    font-weight: 400;
    font-size: 26px;
}

.mj-features-list {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.mj-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 8px !important;
    border-bottom: 1px solid #ebebeb;
    padding-bottom: 8px;

}

.mj-feature-item:last-child {
    margin-bottom: 0 !important;
    border-bottom: 1px solid #ebebeb !important;
}

.mj-feature-icon {
    width: 24px;
    height: 24px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 3px;
}

.mj-feature-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 4px;
}

.mj-feature-description {
    font-size: 14px;
    color: #718096;
    margin-bottom: 0;
}

/* Sub Info Grid */
.mj-sub-info-grid {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
}

.mj-sub-heading {
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
}

.mj-sub-list li,
.mj-contact-list li {
    font-size: 13.5px;
    color: #4a5568;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.mj-sub-list i {
    color: #ff4d4d;
    font-size: 16px;
    font-weight: 900;
}

.mj-contact-list i {
    color: #007bff;
    font-size: 14px;
}

/* Trust Section */
.mj-trust-heading {
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.mj-partner-logos-mini {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.mj-partner-logos-mini img {
    max-height: 35px;
    width: auto;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.mj-partner-logos-mini img:hover {
    opacity: 1;
}

/* Slider Styles */
.mj-partner-logos-slider {
    margin-top: 10px;
    padding: 0 10px; /* Space for arrows */
}

.mj-logo-slide {
    padding: 0 15px;
    text-align: center;
}

.mj-logo-slide img {
    max-height: 40px;
    width: auto;
    margin: 0 auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.mj-logo-slide img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Slick Arrows Customization */
.mj-partner-logos-slider .slick-prev,
.mj-partner-logos-slider .slick-next {
    width: 30px;
    height: 30px;
    z-index: 10;
}

.mj-partner-logos-slider .slick-prev:before,
.mj-partner-logos-slider .slick-next:before {
    color: #4a5568;
    font-size: 24px;
}

/* ========================================
   RIGHT FORM BOX
   ======================================== */
.mj-popup-form-box {
    background: #fff;
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* ========================================
   FOOTER RATING
   ======================================== */
.mj-popup-footer-rating {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.mj-rating-stars {
    color: #fbbf24;
    font-size: 24px;
    margin-bottom: 5px;
}

.mj-rating-content p {
    color: #4a5568;
    font-size: 14px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .mj-popup-content {
        padding: 30px;
    }
    .mj-popup-form-box {
        margin-top: 20px;
    }
}
@media (max-width: 576px) {
    .mj-popup-close {
    top: 0px !important;
    right: 4px !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 14px !important;
}
    .mj-popup-title,.mj-popup-title span.small-text {
        font-size: 22px !important;
    }
    .mj-feature-title {
        font-size: 16px;
    }
    .mj-sub-info-grid .row > div {
        width: 100%;
        margin-bottom: 15px;
    }
}
