.exit-intent-popup {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 1000000;
    background: rgba(33, 33, 33, 0.85); /* Slightly darker for better contrast */
    transform: translateY(20px) scale(0.95); /* More subtle animation start */
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.4s;
    display: flex; /* Use flexbox for perfect centering */
    align-items: center;
    justify-content: center;
}

.exit-intent-popup.visible {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.newsletter {
    background: #FFF;
    padding: 20px;
    border-radius: 8px; /* Modern slightly rounded corners */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); /* Add depth */
    position: relative; /* For absolute positioning of close button */
    max-width: 90%;
    width: 600px; /* Max width for desktop */
    max-height: 90vh; /* Prevent it from being taller than the screen */
    overflow-y: auto; /* Allow scrolling inside if form is too tall */
}

/* Modern SVG close button */
.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px; /* Larger clickable area */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s ease;
    border-radius: 50%;
}

.close-popup:hover, .close-popup:focus {
    color: #000;
    background-color: #f0f0f0;
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

.exit-intent-popup-form {
    padding: 20px;
}
