/* Exit Intent Popup Modal Styles */
.exit-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    animation: fadeIn 0.3s ease-in-out;
}

.exit-popup-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.exit-popup-modal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    padding: 0;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
    overflow-y: auto;
}

.exit-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
    padding: 0;
}

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

.exit-popup-content {
    padding: 45px 30px 30px;
    color: white;
    text-align: center;
}

.exit-popup-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: bounce 1s ease-in-out;
}

.exit-popup-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 12px;
    line-height: 1.3;
}

.exit-popup-description {
    font-size: 15px;
    margin-bottom: 20px;
    opacity: 0.95;
    line-height: 1.5;
}

.exit-popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.exit-popup-input {
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

.exit-popup-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.exit-popup-input::placeholder {
    color: #999;
}

.exit-popup-submit {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    background: white;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.exit-popup-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

.exit-popup-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.exit-popup-message.success {
    background: rgba(76, 175, 80, 0.9);
    color: white;
    display: block;
}

.exit-popup-message.error {
    background: rgba(244, 67, 54, 0.9);
    color: white;
    display: block;
}

.exit-popup-benefits {
    text-align: left;
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
}

.exit-popup-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exit-popup-benefits li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
    font-size: 15px;
}

.exit-popup-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 18px;
    color: #4caf50;
}

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

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .exit-popup-modal {
        max-width: 95%;
        max-height: 90vh;
        margin: 10px;
    }
    
    .exit-popup-content {
        padding: 50px 20px 25px;
    }
    
    .exit-popup-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 24px;
        z-index: 100;
    }
    
    .exit-popup-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .exit-popup-description {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .exit-popup-icon {
        font-size: 40px;
        margin-bottom: 10px;
    }
    
    .exit-popup-benefits {
        margin: 12px 0;
        padding: 12px;
    }
    
    .exit-popup-benefits li {
        padding: 6px 0;
        padding-left: 25px;
        font-size: 14px;
    }
    
    .exit-popup-input {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .exit-popup-submit {
        padding: 12px 25px;
        font-size: 16px;
    }
}
