.custom-popup {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-popup.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: white;
    width: 90%;
    height: 90%;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.modal-header,
.modal-footer {
    padding: 15px;
    background: #f5f5f5;
    text-align: center;
}

.modal-body {
    flex: 1;
    position: relative;
    padding: 0;
    overflow: hidden;
}

#myIframe {
    width: 100%;
    height: 100%;
    border: none;
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: #000;
    z-index: 1;
}

.close-popup {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        height: 95%;
        border-radius: 5px;
    }

    .modal-header,
    .modal-footer {
        padding: 10px;
    }

    .close-popup {
        padding: 8px 16px;
        font-size: 14px;
    }

    .loader {
        font-size: 16px;
    }
}
