/* Modal de agendamento */

.modal-container {
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, .5);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-container.mostrar {
    display: flex;
}

.modalg {
    background: white;
    width: 40%;
    min-width: 300px;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px;
    border: 10px solid #2F4F4F;
    box-shadow: 0 0 0 10px white;
    position: relative;
}

@keyframes modalAgendamento {
    from {
        opacity: 0;
        transform: translate3d(0, -60px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.mostrar .modalg {
    animation: modalAgendamento .3s;
}

.fechar {
    position: absolute;
    font-size: 1.2em;
    top: 5px;
    right: 5px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 4px solid white;
    background: #2F4F4F;
    color: white;
    font-family: monospace;
    cursor: pointer;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, .3);
}

.mensagem-disponibilidade {
    font-size: .9rem;
    line-height: 1.45;
    background: #f4f2ec;
}

@media (max-width: 767px) {

    .modalg {
        width: 95%;
        min-width: 0;
        padding: 20px;
    }

}


/* Garante que os selects do modal mantenham o mesmo tamanho e alinhamento */
.modalg select.form-control {
    width: 100%;
    height: calc(1.8125rem + 2px);
    line-height: 1.5;
}

#bloco-convenio {
    width: 100%;
}
