/* ========================================
   EXIT INTENT MODAL (DONATION FORMS)
   ======================================== */

.hm-exit-intent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.hm-exit-intent-popup {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px 30px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hm-exit-intent-overlay.active .hm-exit-intent-popup {
    transform: scale(1);
}

.hm-exit-intent-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hm-exit-intent-close:hover {
    color: #333;
}

.hm-exit-intent-content {
    width: 100%;
}

/* Ensure Gravity Forms styling works inside modal */
.hm-exit-intent-popup .gform_wrapper {
    margin: 0 !important;
}

.hm-exit-intent-popup .gform_body {
    padding: 0 !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hm-exit-intent-popup {
        width: 95%;
        padding: 30px 20px 20px;
        max-height: 95vh;
    }
}