/* retireinarg.com — Exit Intent Popup Styles */

#ria-exit-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
    pointer-events: none;
}

#ria-exit-overlay.ria-exit-visible {
    opacity: 1;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: auto;
}

.ria-exit-popup {
    background: linear-gradient(145deg, #1a2332 0%, #0d1b2a 100%);
    border: 1px solid rgba(78, 205, 196, 0.2);
    border-radius: 20px;
    padding: 2.8rem 2.5rem 2.2rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(78, 205, 196, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#ria-exit-overlay.ria-exit-visible .ria-exit-popup {
    transform: scale(1) translateY(0);
}

.ria-exit-close {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    background: none;
    border: none;
    color: #556;
    font-size: 1.6rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
}

.ria-exit-close:hover {
    color: #e4e4e4;
    background: rgba(255, 255, 255, 0.06);
}

.ria-exit-icon {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    line-height: 1;
}

.ria-exit-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #e4e4e4;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}

.ria-exit-sub {
    color: #889;
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1.2rem;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.ria-exit-proof {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.ria-exit-proof span {
    font-size: 0.75rem;
    color: #4ecdc4;
    background: rgba(78, 205, 196, 0.08);
    border: 1px solid rgba(78, 205, 196, 0.15);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.ria-exit-form {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 12px;
    padding: 0.45rem;
    margin-bottom: 0.5rem;
}

.ria-exit-form input[type="email"] {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #e4e4e4;
    font-size: 0.92rem;
    padding: 0.5rem 0.75rem;
    font-family: inherit;
}

.ria-exit-form input::placeholder {
    color: #556;
}

.ria-exit-form button {
    background: linear-gradient(135deg, #4ecdc4, #44bd9e);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.15s;
    font-family: inherit;
}

.ria-exit-form button:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.ria-exit-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.ria-exit-msg {
    min-height: 1.2em;
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
    transition: color 0.2s;
}

.ria-exit-msg.ok {
    color: #4ecdc4;
}

.ria-exit-msg.err {
    color: #e74c3c;
}

.ria-exit-note {
    font-size: 0.72rem;
    color: #556;
    margin-top: 0.3rem;
}

/* Mobile adjustments */
@media (max-width: 520px) {
    .ria-exit-popup {
        padding: 2.2rem 1.5rem 1.8rem;
        border-radius: 16px;
    }

    .ria-exit-title {
        font-size: 1.35rem;
    }

    .ria-exit-sub {
        font-size: 0.85rem;
    }

    .ria-exit-form {
        flex-direction: column;
    }

    .ria-exit-form button {
        width: 100%;
        padding: 0.75rem;
    }

    .ria-exit-proof {
        gap: 0.5rem;
    }

    .ria-exit-proof span {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
}
