/* FX Custom Popup Styles */
.fx-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 999999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    pointer-events: none;
}

.fx-popup-container {
    background: #1e3a5f;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    position: relative;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease-out;
    color: white;
    pointer-events: auto;
    padding: 0;
}

.fx-popup-container.fx-popup-animate-in {
    transform: translateY(0);
    opacity: 1;
}

.fx-popup-container.fx-popup-animate-out {
    transform: translateY(100px);
    opacity: 0;
}

.fx-popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: #fff;
    border: none;
    color: #1e3a5f;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(30,58,95,0.08);
    transition: background 0.2s, color 0.2s;
    z-index: 10;
}

.fx-popup-close:hover {
    background: #f4d03f;
    color: #1e3a5f;
}

.fx-popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.fx-popup-image {
    flex-shrink: 0;
}

.fx-popup-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.fx-popup-text {
    width: 100%;
    text-align: center;
    padding-top: 20px;
}

.fx-popup-text h3 {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    text-align: center;
}

.fx-popup-description {
    margin: 0 0 22px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #fff;
    text-align: center;
}

.fx-popup-download-btn {
    background: #f4d03f;
    color: #1e3a5f;
    border: none;
    padding: 16px 0;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: block;
    width: 90%;
    margin: 0 auto 10px auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(244, 208, 63, 0.10);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.fx-popup-download-btn:hover {
    background: #ffe066;
    color: #1e3a5f;
    box-shadow: 0 4px 16px rgba(244, 208, 63, 0.25);
}

.fx-popup-download-btn:active {
    background: #f4d03f;
    color: #1e3a5f;
}

.fx-popup-download-btn::after {
    content: "→";
    font-size: 20px;
    font-weight: bold;
    margin-left: 12px;
    vertical-align: middle;
}

/* Prevent body scroll when popup is open */
body.fx-popup-open {
    overflow: hidden;
}

/* Hide AO Form container by default */
#fx-ao-form-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

#fx-ao-form-inner {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    padding: 32px 24px 24px 24px;
    min-width: 320px;
}

.fx-ao-form-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 100000;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Style 4 - Popup Data Style Module */
.custom-modules--wrapper.style-4.popup-data-style {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #1e3a5f;
}

.custom-modules--wrapper.style-4.popup-data-style:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.custom-modules--wrapper.style-4.popup-data-style .image-wrapper {
    flex-shrink: 0;
}

.custom-modules--wrapper.style-4.popup-data-style .image-wrapper img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.custom-modules--wrapper.style-4.popup-data-style .custom-modules-content {
    flex: 1;
}

.custom-modules--wrapper.style-4.popup-data-style .module-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #1e3a5f;
    font-weight: 600;
}

.custom-modules--wrapper.style-4.popup-data-style .button {
    background: #1e3a5f;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.custom-modules--wrapper.style-4.popup-data-style .button:hover {
    background: #2c5282;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .fx-popup-overlay {
        padding: 15px;
        align-items: center; /* Center popup instead of bottom */
    }
    
    .fx-popup-container {
        max-width: 100%;
        margin-bottom: 0; /* Remove bottom margin since we're centering */
    }
    
    .fx-popup-content {
        text-align: center;
        padding: 20px;
    }
    
    .fx-popup-text h3 {
        font-size: 18px;
    }
    
    .fx-popup-description {
        font-size: 13px;
        margin-bottom: 18px;
    }
    
    .fx-popup-download-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* Style 4 mobile */
    .custom-modules--wrapper.style-4.popup-data-style {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        gap: 15px;
    }

    .custom-modules--wrapper.style-4.popup-data-style .image-wrapper img {
        width: 60px;
        height: 60px;
    }

    .custom-modules--wrapper.style-4.popup-data-style .module-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .fx-popup-overlay {
        padding: 10px;
        align-items: center; /* Ensure centering on smaller screens too */
    }
    
    .fx-popup-container {
        margin-bottom: 0; /* Remove bottom margin */
    }
    
    .fx-popup-content {
        padding: 15px;
    }
    
    .fx-popup-close {
        top: 10px;
        right: 10px;
        font-size: 20px;
        width: 25px;
        height: 25px;
    }

    .fx-popup-text h3 {
        font-size: 16px;
    }

    .fx-popup-download-btn {
        font-size: 12px;
        padding: 8px 16px;
    }

    .custom-modules--wrapper.style-4.popup-data-style {
        padding: 12px;
    }
}

/* Strong specificity to prevent theme/global overrides */
.fx-popup-container .fx-popup-download-btn {
    background: #f4d03f !important;
    color: #1e3a5f !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    width: 60% !important;
    margin: 0 auto 10px auto !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 8px rgba(244, 208, 63, 0.10) !important;
    display: block !important;
}

.fx-popup-container .fx-popup-download-btn:hover {
    background: #ffe066 !important;
    color: #1e3a5f !important;
    box-shadow: 0 4px 16px rgba(244, 208, 63, 0.25) !important;
}

.fx-popup-container .fx-popup-close {
    position: absolute;
    background: #fff !important;
    color: #1e3a5f !important;
    border-radius: 50% !important;
    right: 10px !important;
    left: auto !important;
    z-index: 10 !important;
    width: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    aspect-ratio: 1 / 1 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin: 0 !important;
    vertical-align: middle !important;
    font-family: Arial, Helvetica, sans-serif !important;
} 