
.custom-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.modal-header {
    padding: 14px 18px;
    background-color: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #111827;
}
.close {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}
.close:hover { color: #111827; }

.modal-body {
    padding: 0;
    background: #fff;
}
.modal-body iframe {
    display: block;
    width: 100%;
    height: 70vh;
    border: 0;
}

.modal-trigger-btn {
    background-color: #2271b1;
    color: #fff;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: filter .2s ease;
}
.modal-trigger-btn:hover { filter: brightness(0.95); }

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 80vh;
    }
    .modal-body iframe {
        height: 65vh;
    }
}
