/* Exit Intent Popup - Captura de Leads */

/* Overlay */
.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.exit-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.exit-popup {
    background: linear-gradient(135deg, #1a1f3a 0%, #0f1629 100%);
    border-radius: 20px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8) translateY(30px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.exit-popup::-webkit-scrollbar {
    width: 6px;
}

.exit-popup::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.exit-popup::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 3px;
}

.exit-popup-overlay.active .exit-popup {
    transform: scale(1) translateY(0);
}

/* Decorative Elements */
.exit-popup::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.exit-popup::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

.exit-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Content */
.exit-popup-content {
    padding: 35px 30px 30px;
    position: relative;
    z-index: 1;
}

/* Icon */
.exit-popup-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
    }
}

/* Text */
.exit-popup-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.3;
}

.exit-popup-subtitle {
    font-size: 15px;
    color: #cbd5e1;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Benefits List */
.exit-popup-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: grid;
    gap: 8px;
}

.exit-popup-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0e7ff;
    font-size: 14px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid #8b5cf6;
    transition: all 0.3s ease;
}

.exit-popup-benefit:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateX(5px);
}

.exit-popup-benefit i {
    color: #8b5cf6;
    font-size: 18px;
    flex-shrink: 0;
}

/* CTA Buttons */
.exit-popup-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Primary Button */
.exit-popup-submit {
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.exit-popup-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.exit-popup-submit:hover::before {
    left: 100%;
}

.exit-popup-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.6);
}

.exit-popup-submit:active {
    transform: translateY(0);
}

/* Secondary Button */
.exit-popup-secondary {
    width: 100%;
    padding: 13px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.exit-popup-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Responsive */
@media (max-width: 640px) {
    .exit-popup {
        max-height: 85vh;
    }

    .exit-popup-content {
        padding: 30px 20px 25px;
    }

    .exit-popup-title {
        font-size: 20px;
    }

    .exit-popup-subtitle {
        font-size: 14px;
    }

    .exit-popup-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        margin-bottom: 15px;
    }

    .exit-popup-benefit {
        font-size: 13px;
        padding: 8px 12px;
    }

    .exit-popup-input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .exit-popup-submit {
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* Prevent body scroll when popup is open */
body.exit-popup-open {
    overflow: hidden;
}
