/* ==============================================
   EXIT INTENT POPUP — Lead Generation
   ============================================== */

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .6);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all .4s cubic-bezier(.4,0,.2,1);
    padding: 20px;
}

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

.popup-card {
    background: #fff;
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .18);
    transform: translateY(30px) scale(.94);
    transition: all .4s cubic-bezier(.4,0,.2,1);
}

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

.popup-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #94a3b8;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.popup-close:hover {
    background: #f3f4f6;
    color: #0f172a;
}

.popup-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, .1), rgba(168, 85, 247, .1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #6366f1;
}

.popup-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.popup-card > p {
    font-size: .95rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 28px;
}

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

.popup-form input,
.popup-form select {
    width: 100%;
    padding: 13px 18px;
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: .92rem;
    color: #0f172a;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.popup-form input:focus,
.popup-form select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .1);
}

.popup-form input::placeholder { color: #94a3b8; }

.popup-form select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.popup-form .btn {
    margin-top: 4px;
    padding: 14px 24px;
    font-size: .95rem;
}

.popup-trust {
    font-size: .78rem;
    color: #94a3b8;
    margin-top: 16px;
}

/* Success State */
.popup-success {
    text-align: center;
    padding: 20px 0;
}

.popup-success .check-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 1.8rem;
}

.popup-success h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.popup-success p {
    font-size: .92rem;
    color: #64748b;
}

@media (max-width: 480px) {
    .popup-card {
        padding: 36px 24px;
    }
    
    .popup-card h3 {
        font-size: 1.3rem;
    }
}
