/* Exit Intent Popup Styles */

#exit-intent-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    font-family: Arial, sans-serif;
}

.exit-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#exit-intent-popup.exit-popup-visible .exit-popup-overlay {
    opacity: 1;
}

.exit-popup-content {
    background: linear-gradient(135deg, #000000 0%, #1a0000 100%);
    border: 2px solid #8b0000;
    border-radius: 12px;
    padding: 40px 30px;
    max-width: 500px;
    width: 100%;
    position: relative;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 40px rgba(139, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#exit-intent-popup.exit-popup-visible .exit-popup-content {
    transform: scale(1);
}

.exit-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #999;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
    transition: color 0.2s ease;
}

.exit-popup-close:hover {
    color: #cc0000;
}

.exit-popup-content h2 {
    color: #cc0000;
    font-size: 28px;
    margin: 0 0 20px 0;
    font-weight: bold;
}

.exit-popup-offer {
    background: rgba(139, 0, 0, 0.2);
    border-left: 4px solid #cc0000;
    padding: 20px;
    margin: 20px 0;
}

.exit-popup-offer h3 {
    color: #fff;
    font-size: 32px;
    margin: 0 0 5px 0;
    font-weight: bold;
}

.exit-popup-subtitle {
    color: #aaa;
    font-size: 14px;
    margin: 0;
    font-style: italic;
}

.exit-popup-description {
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
    margin: 20px 0;
}

.exit-popup-description strong {
    color: #fff;
}

.exit-popup-format {
    color: #999;
    font-size: 14px;
    margin: 10px 0 25px 0;
    font-style: italic;
}

.exit-popup-form {
    margin: 25px 0;
}

.exit-popup-form input[type="email"] {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #444;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 5px;
    margin-bottom: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.exit-popup-form input[type="email"]:focus {
    outline: none;
    border-color: #cc0000;
    background: rgba(255, 255, 255, 0.1);
}

.exit-popup-form input[type="email"]::placeholder {
    color: #777;
}

.exit-popup-btn {
    width: 100%;
    padding: 15px;
    background: #8b0000;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
}

.exit-popup-btn:hover {
    background: #cc0000;
}

.exit-popup-btn:active {
    transform: scale(0.98);
}

.exit-popup-btn:disabled {
    background: #555;
    cursor: not-allowed;
}

.exit-popup-bonus {
    color: #aaa;
    font-size: 14px;
    line-height: 1.5;
    margin: 20px 0 15px 0;
}

.exit-popup-decline {
    background: none;
    border: none;
    color: #777;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    padding: 10px;
    transition: color 0.2s ease;
}

.exit-popup-decline:hover {
    color: #999;
}

.exit-popup-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 5px;
    font-size: 14px;
}

.exit-popup-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

.exit-popup-error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #f44336;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .exit-popup-content {
        padding: 30px 20px;
    }

    .exit-popup-content h2 {
        font-size: 24px;
    }

    .exit-popup-offer h3 {
        font-size: 26px;
    }

    .exit-popup-description {
        font-size: 15px;
    }

    .exit-popup-btn {
        font-size: 16px;
        padding: 12px;
    }
}

/* Animation for entrance */
@keyframes slideIn {
    from {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

#exit-intent-popup.exit-popup-visible .exit-popup-content {
    animation: slideIn 0.3s ease forwards;
}
