/* =================================================================
   ENGAGEMENT POPUPS - Exit Intent & Scroll Triggered
   ================================================================= */

/* Engagement Popup Overlay */
.engagement-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: popupFadeIn 0.3s ease;
}

.engagement-popup-overlay.active {
    display: flex;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Engagement Popup Content */
.engagement-popup-content {
    background: white;
    border-radius: 15px;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: popupSlideUp 0.4s ease;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

@keyframes popupSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Scroll Popup Specific Width */
.scroll-popup-content {
    max-width: 650px;
}

/* Close Button */
.engagement-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.engagement-popup-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #1a2332;
    transform: rotate(90deg);
}

/* Popup Header */
.engagement-popup-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 2.5rem 2rem 2rem;
    border-radius: 15px 15px 0 0;
    text-align: center;
}

.engagement-popup-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.engagement-popup-header h3 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Green Header Variant for Scroll Popup */
.engagement-header-green {
    background: linear-gradient(135deg, #1eae45 0%, #17a03d 100%);
}

/* Popup Body */
.engagement-popup-body {
    padding: 2rem;
}

.engagement-popup-body p {
    color: #3d4852;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.engagement-popup-body p strong {
    color: #1a2332;
    font-weight: 600;
}

/* Benefits List */
.engagement-popup-benefits {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: #f7f8fa;
    border-radius: 10px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-item i {
    color: #1eae45;
    font-size: 1.15rem;
}

.benefit-item span {
    color: #1a2332;
    font-size: 0.95rem;
    font-weight: 500;
}

/* CTA Button in Popup */
.engagement-popup-body .btn-primary-large {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding: 0.9rem 1.5rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
}

/* Popup Note */
.engagement-popup-note {
    text-align: center;
    font-size: 0.85rem;
    color: #5a6b7d;
    margin: 0;
    font-style: italic;
}

/* Popular Services Grid */
.popular-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.popular-service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f7f8fa;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.popular-service-item:hover {
    background: white;
    border-color: #1eae45;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(30, 174, 69, 0.15);
}

.popular-service-item i {
    font-size: 1.75rem;
    color: #1eae45;
    min-width: 40px;
    text-align: center;
}

.popular-service-item div {
    display: flex;
    flex-direction: column;
}

.popular-service-item strong {
    color: #1a2332;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.popular-service-item span {
    color: #5a6b7d;
    font-size: 0.8rem;
}

/* VIP Service Variant */
.popular-service-vip {
    border-color: #d4af37;
}

.popular-service-vip:hover {
    border-color: #d4af37;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.popular-service-vip i {
    color: #d4af37;
}

/* Responsive Design */
@media (max-width: 768px) {
    .engagement-popup-content {
        max-width: 95%;
        max-height: 85vh;
    }

    .engagement-popup-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .engagement-popup-header i {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .engagement-popup-header h3 {
        font-size: 1.25rem;
    }

    .engagement-popup-body {
        padding: 1.5rem;
    }

    .popular-service-item {
        padding: 0.85rem;
    }

    .popular-service-item i {
        font-size: 1.5rem;
        min-width: 35px;
    }

    .popular-service-item strong {
        font-size: 0.9rem;
    }

    .popular-service-item span {
        font-size: 0.75rem;
    }
}

/* Prevent Body Scroll When Popup Active */
body.popup-active {
    overflow: hidden;
}
