/* Exit Intent Popup */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 14, 26, 0.8);
    align-items: center;
    justify-content: center;
    padding: var(--container-padding);
}

.popup-overlay.is-visible {
    display: flex;
}

.popup {
    background: var(--color-white);
    border-radius: var(--radius-card);
    max-width: 480px;
    width: 100%;
    padding: 40px;
    position: relative;
    animation: popupIn 200ms ease;
}

@keyframes popupIn {
    from {
        transform: scale(0.95) translateY(-10px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition-fast);
}

.popup__close:hover {
    background: var(--color-off-white);
}

.popup h3 {
    font-size: 22px;
    color: var(--color-navy);
    margin-bottom: 12px;
}

.popup p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
    font-size: 15px;
}

.popup .form-input {
    margin-bottom: 16px;
}

.popup .btn {
    width: 100%;
    margin-bottom: 12px;
}

.popup__disclaimer {
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: center;
}

/* Video Modal */
.video-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 14, 26, 0.9);
    align-items: center;
    justify-content: center;
    padding: var(--container-padding);
}

.video-modal-overlay.is-visible {
    display: flex;
}

.video-modal {
    width: 100%;
    max-width: 900px;
    position: relative;
}

.video-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-white);
    font-size: 24px;
}

.video-modal__embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-card);
}

.video-modal__embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal__embed video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-card);
    background: #000;
}

.video-modal__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-navy);
    color: var(--color-text-muted);
    font-size: 16px;
    border-radius: var(--radius-card);
}
