/* ================================== */
/*     ESTILOS DO MODAL CUSTOMIZADO   */
/* ================================== */
.modal-overlay {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.is-visible {
    visibility: visible;
    opacity: 1;
}

.modal-box {
    background-color: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.modal-overlay.is-visible .modal-box {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}
.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}
.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    opacity: 0.5;
}
.modal-close-btn:hover { opacity: 1; }

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}
.modal-body h4 { font-weight: bold; margin-top: 1.5rem; }
.modal-body h5 { font-weight: bold; margin-top: 1rem; font-size: 1.1rem; }
.modal-body ul { padding-left: 20px; }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
}
.modal-footer .btn-secondary,
.modal-footer .btn-primary {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
}

.modal-footer.btn-primary:hover,
.modal-footer .btn-secondary {    
    border: 1px solid #1f0404;
    background-color: rgb(107, 20, 17)231F;
    
}

.modal-footer .btn-secondary { background-color: #6c757d; color: #fff; }
.modal-footer .btn-primary { background-color: #A7231F; color: #fff; border-color: #A7231F; }

/* Estilos adicionais para modais com iframe */
.modal-box.modal-xl { max-width: 90%; }
.modal-iframe-body { padding: 0; height: 80vh; }
.modal-iframe-body iframe { width: 100%; height: 100%; border: none; }

