/* ============================================
   Exit-Intent Popup
   ============================================ */
.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.exit-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.exit-popup-card {
    background: #fff;
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.exit-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.15s;
}

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

.exit-popup-icon {
    margin-bottom: 0.75rem;
}

.exit-popup-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #e0f2fe;
    color: #0ea5e9;
    font-size: 1.5rem;
}

.exit-popup-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.exit-popup-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.exit-popup-bullets li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
    color: #4b5563;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.exit-popup-bullets li::before {
    content: "\2713";
    color: #0ea5e9;
    font-weight: 700;
    flex-shrink: 0;
}

.exit-popup-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.exit-popup-form input[type="email"] {
    padding: 0.7rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s;
}

.exit-popup-form input[type="email"]:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.exit-popup-form .btn-popup-submit {
    background: #0ea5e9;
    color: #fff;
    border: none;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.exit-popup-form .btn-popup-submit:hover {
    background: #0284c7;
}

.exit-popup-form .btn-popup-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.exit-popup-consent {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
}

.exit-popup-consent a {
    color: #6b7280;
}

/* Success state */
.exit-popup-success {
    text-align: center;
    padding: 1rem 0;
}

.exit-popup-success .success-icon {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 0.75rem;
}

.exit-popup-success h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
}

.exit-popup-success p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 576px) {
    .exit-popup-card {
        padding: 1.75rem;
        margin: 0.5rem;
    }

    .exit-popup-title {
        font-size: 1.15rem;
    }
}
