/* Exit Intent Popup - WiLGUARD */
#exitPopupOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

#exitPopupOverlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ✅ Container mai mic */
.exit-popup-container {
    background: white;
    border-radius: 16px;
    max-width: 720px;      /* înainte 900px */
    width: 90%;            /* înainte 95% */
    max-height: 85vh;      /* înainte 90vh */
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    position: relative;
    display: flex;
    flex-wrap: wrap;
}

.exit-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: rgba(0,0,0,0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.exit-popup-close:hover {
    background: #dc3545;
    transform: rotate(90deg);
}

/* ✅ Coloană text mai compactă */
.exit-popup-left {
    flex: 1;
    min-width: 280px;      /* înainte 300px */
    padding: 35px 30px;    /* înainte 50px 40px */
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ✅ Coloană dreapta mai mică */
.exit-popup-right {
    flex: 1;
    min-width: 280px;      /* înainte 300px */
    background: linear-gradient(135deg, #1a4d3e 0%, #0d2821 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="50" cy="50" r="40" fill="%23ff6b35" opacity="0.1"/></svg>');
    background-size: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.exit-popup-sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,107,53,0.3) 0%, transparent 70%);
    animation: pulse 2s infinite;
}

/* ✅ Fonturi reduse puțin */
.exit-popup-title {
    font-size: 2rem;       /* înainte 2.5rem */
    font-weight: 800;
    margin-bottom: 8px;
    color: #1a1a1a;
    line-height: 1.2;
}

.exit-popup-discount {
    font-size: 3.5rem;     /* înainte 4rem */
    font-weight: 900;
    color: #ff6b35;
    margin: 0;
    line-height: 1;
}

.exit-popup-subtitle {
    font-size: 1rem;       /* înainte 1.1rem */
    color: #666;
    margin: 12px 0 20px;   /* înainte 15px 0 25px */
    line-height: 1.5;
}

/* ✅ Input + buton mai mici */
.exit-popup-email {
    width: 100%;
    padding: 14px 18px;    /* înainte 16px 20px */
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;       /* înainte 16px */
    margin-bottom: 12px;   /* înainte 15px */
    transition: border-color 0.3s;
}

.exit-popup-email:focus {
    outline: none;
    border-color: #ff6b35;
}

.exit-popup-submit {
    width: 100%;
    padding: 14px;         /* înainte 16px */
    background: linear-gradient(135deg, #ff6b35 0%, #ff4500 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;       /* înainte 18px */
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.exit-popup-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,107,53,0.4);
}

.exit-popup-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* ✅ Mobile ajustat la noul layout */
@media (max-width: 768px) {
    .exit-popup-container {
        flex-direction: column;
        max-height: 95vh;
        overflow-y: auto;
    }
    .exit-popup-left {
        padding: 30px 24px;   /* puțin mai mic decât desktop */
    }
    .exit-popup-right {
        min-height: 200px;
    }
    .exit-popup-title {
        font-size: 1.7rem;
    }
    .exit-popup-discount {
        font-size: 3rem;
    }
}
