/**
 * Exit-Intent Pop-up Styles
 * 
 * @package SalesFunnelPro
 * @since 3.0.0
 */

.sfp-exit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sfpFadeIn 0.3s ease;
}

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

.sfp-exit-popup {
    background: white;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    position: relative;
    animation: sfpSlideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.sfp-exit-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #9CA3AF;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 10;
}

.sfp-exit-close:hover {
    background: #F3F4F6;
    color: #1F2937;
    transform: rotate(90deg);
}

.sfp-exit-content {
    padding: 40px 32px 24px;
    text-align: center;
}

.sfp-exit-icon {
    font-size: 56px;
    margin-bottom: 16px;
    animation: sfpPulse 2s infinite;
}

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

.sfp-exit-headline {
    font-size: 26px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.sfp-exit-subheadline {
    font-size: 15px;
    color: #6B7280;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* Timer */
.sfp-exit-timer {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 2px solid #F59E0B;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 24px;
}

.sfp-timer-label {
    font-size: 12px;
    color: #92400E;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.sfp-timer-display {
    font-size: 40px;
    font-weight: 800;
    color: #D97706;
    font-family: 'Courier New', monospace;
}

.sfp-timer-minutes,
.sfp-timer-seconds {
    display: inline-block;
    min-width: 50px;
}

/* Form */
.sfp-exit-form {
    margin-bottom: 24px;
}

#sfp-exit-email {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

#sfp-exit-email:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sfp-exit-button {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sfp-exit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.sfp-exit-button:active {
    transform: translateY(0);
}

/* Coupon Display */
.sfp-exit-coupon {
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border: 2px solid #86EFAC;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.sfp-coupon-success {
    font-size: 14px;
    color: #166534;
    font-weight: 600;
    margin-bottom: 8px;
}

.sfp-coupon-code {
    font-size: 28px;
    font-weight: 800;
    color: #166534;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    margin-bottom: 8px;
    user-select: all;
    background: white;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px dashed #86EFAC;
}

.sfp-coupon-instructions {
    font-size: 13px;
    color: #15803D;
    margin: 0;
}

/* Features */
.sfp-exit-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.sfp-feature {
    font-size: 13px;
    color: #4B5563;
    display: flex;
    align-items: center;
}

/* Footer */
.sfp-exit-footer {
    background: #F9FAFB;
    padding: 16px;
    text-align: center;
    border-top: 1px solid #E5E7EB;
    border-radius: 0 0 16px 16px;
}

.sfp-exit-decline {
    font-size: 12px;
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.2s;
}

.sfp-exit-decline:hover {
    color: #6B7280;
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .sfp-exit-popup {
        width: 95%;
        max-height: 95vh;
    }
    
    .sfp-exit-content {
        padding: 32px 20px 20px;
    }
    
    .sfp-exit-headline {
        font-size: 22px;
    }
    
    .sfp-exit-subheadline {
        font-size: 14px;
    }
    
    .sfp-timer-display {
        font-size: 32px;
    }
    
    .sfp-coupon-code {
        font-size: 22px;
    }
}

/* Bonus Info (Extra savings) */
.sfp-exit-bonus-info {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    color: #1E40AF;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid #93C5FD;
}

.sfp-exit-bonus-info strong {
    color: #1D4ED8;
}

/* Success State (Lead Capture Mode) */
.sfp-exit-success {
    text-align: center;
    padding: 20px;
}

.sfp-success-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.sfp-success-text {
    font-size: 20px;
    font-weight: 700;
    color: #166534;
    margin-bottom: 8px;
}

.sfp-success-instructions {
    font-size: 14px;
    color: #15803D;
    margin: 0;
}

/* Loading State */
.sfp-exit-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}
