/**
 * Exit Intent Popup Styles
 * Hadra Home Theme
 */

.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.exit-popup.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.exit-popup-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.exit-popup-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.exit-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
    z-index: 1;
}

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

.exit-popup-body {
    padding: 48px 32px 32px;
    text-align: center;
}

.exit-popup-icon {
    margin: 0 auto 24px;
    color: #D4AF37;
}

.exit-popup-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.3;
}

.exit-popup-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

.exit-popup-text strong {
    color: #D4AF37;
    font-weight: 700;
}

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

.exit-popup-input {
    padding: 14px 18px;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.exit-popup-input:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.exit-popup-button {
    padding: 14px 32px;
    background: linear-gradient(135deg, #D4AF37 0%, #B8941E 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exit-popup-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.exit-popup-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.exit-popup-message {
    min-height: 24px;
    margin-bottom: 8px;
}

.exit-popup-message .success {
    color: #4CAF50;
    font-weight: 600;
    padding: 12px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
}

.exit-popup-message .error {
    color: #f44336;
    font-weight: 600;
    padding: 12px;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 8px;
}

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

/* Mobile adjustments */
@media (max-width: 640px) {
    .exit-popup-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .exit-popup-body {
        padding: 40px 24px 24px;
    }
    
    .exit-popup-title {
        font-size: 24px;
    }
    
    .exit-popup-text {
        font-size: 15px;
    }
}

