/* Exit Intent Popup Styles */

#exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

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

.exit-popup-modal {
    background: white;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s ease;
}

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

.exit-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
    line-height: 1;
}

.exit-popup-close:hover {
    background: #f5f5f5;
    color: #333;
}

.exit-popup-content {
    padding: 48px 40px 40px;
    text-align: center;
}

.exit-popup-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.exit-popup-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
    line-height: 1.2;
}

.exit-popup-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0 0 32px;
}

.exit-popup-subtitle strong {
    color: #2563eb;
    font-weight: 600;
}

.exit-popup-benefits {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: left;
}

.benefit {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 15px;
    color: #333;
}

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

.benefit .check {
    color: #10b981;
    font-weight: 700;
    margin-right: 12px;
    font-size: 18px;
    flex-shrink: 0;
}

.exit-popup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.exit-popup-form input[type="email"] {
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: border-color 0.2s;
    font-family: inherit;
}

.exit-popup-form input[type="email"]:focus {
    outline: none;
    border-color: #2563eb;
}

.exit-popup-cta {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.exit-popup-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

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

.exit-popup-privacy {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* Success state */
.exit-popup-success {
    padding: 20px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    margin: 0 auto 24px;
}

.exit-popup-success h2 {
    font-size: 28px;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.exit-popup-success p {
    font-size: 16px;
    color: #666;
    margin: 0 0 8px;
}

.success-sub {
    color: #10b981 !important;
    font-weight: 500;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .exit-popup-content {
        padding: 40px 24px 32px;
    }
    
    .exit-popup-title {
        font-size: 26px;
    }
    
    .exit-popup-subtitle {
        font-size: 16px;
    }
    
    .benefit {
        font-size: 14px;
    }
    
    .exit-popup-form input[type="email"],
    .exit-popup-cta {
        font-size: 16px; /* Prevent iOS zoom */
    }
}
