/* Popup Overlay */
.elementor-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

/* Popup Content */
.elementor-popup-content {
    position: relative;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    margin: 20px;
    /* Center the popup */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Close Button */
.elementor-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10001;
}

.elementor-popup-close:hover {
    background-color: #f0f0f0;
    color: #000;
}

/* Popup Content Inner */
.popup-content-inner {
    margin-top: 10px;
}

/* Trigger Styles */
.popup-trigger-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007cba;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-trigger-btn:hover {
    background-color: #005a87;
}

.popup-trigger-text {
    color: #007cba;
    text-decoration: underline;
    cursor: pointer;
}

.popup-trigger-text:hover {
    color: #005a87;
}

.popup-trigger-img {
    max-width: 100%;
    height: auto;
    cursor: pointer;
}

/* Body class when popup is open */
body.elementor-popup-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 767px) {
    .elementor-popup-content {
        padding: 20px;
        margin: 10px;
        width: 95% !important; /* Override inline width for mobile */
        max-width: 95% !important;
    }
    
    .elementor-popup-close {
        top: 10px;
        right: 10px;
        font-size: 20px;
        width: 25px;
        height: 25px;
        line-height: 25px;
    }
}

/* Ensure overlay uses flexbox for centering */
.elementor-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

/* Alternative centering method */
.elementor-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

.elementor-popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
}


