.feedback-geral {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, .45);

    animation: feedback-overlay-entrada .15s ease-out;
}

.feedback-geral-conteudo {
    width: 420px;
    /* max-width: calc(100% - 30px); */
    max-width: 100%;

    padding: 40px 35px 30px;

    background: #fff;
    border-radius: 14px;

    text-align: center;

    box-shadow: 0 20px 50px rgba(0, 0, 0, .20);

    animation: feedback-modal-entrada .2s ease-out;
}


/*
 * TEXTO
 */

.feedback-geral-texto {
    margin-top: 5px;

    font-size: 21px;
    font-weight: 600;

    color: #333;
}

.feedback-geral-mensagem {
    margin-top: 10px;
    white-space: pre-line;

    font-size: 14px;
    line-height: 1.6;

    color: #666;
}


/*
 * SPINNER
 */

.loading-spinner {
    width: 45px;
    height: 45px;

    margin: 0 auto 20px;

    border: 4px solid #eee;
    border-top-color: var(--cor-primaria);

    border-radius: 50%;

    animation: feedback-spinner .8s linear infinite;
}

@keyframes feedback-spinner {

    to {
        transform: rotate(360deg);
    }

}


/*
 * RESULTADO
 */

.feedback-resultado {
    width: 72px;
    height: 72px;

    margin: 0 auto 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    font-size: 30px;

    animation: feedback-resultado-entrada .35s ease-out;
}

.feedback-sucesso {
    color: #198754;
    background: #eaf7ef;
}

.feedback-erro {
    color: #dc3545;
    background: #fdeeee;
}

@keyframes feedback-resultado-entrada {

    from {
        opacity: 0;
        transform: scale(.7);
    }

    70% {
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}

.feedback-pergunta {
    color: var(--cor-primaria);
    background: color-mix(in srgb, var(--cor-primaria) 10%, white);
}

/*
 * CONFIRMAÇÃO: campo de motivo e botões lado a lado
 */

.feedback-entrada {
    margin-top: 20px;
    text-align: left;
}

.feedback-entrada label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cor-rotulo);
}

/* campos de texto / select do diálogo ocupam a largura toda */
.feedback-entrada input.consulta-input,
.feedback-entrada select.consulta-input {
    width: 100%;
}

.feedback-entrada textarea {
    width: 100%;
    height: auto;
    resize: vertical;
}

.feedback-entrada-erro {
    margin-top: 6px;
    font-size: 13px;
    color: #dc3545;
}

.feedback-botoes {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.feedback-botoes .btn {
    flex: 1;
    min-width: 0;
    white-space: normal; /* texto longo quebra em vez de vazar do modal */
}

/*
 * BOTÃO
 */

.feedback-botao {
    margin-top: 25px;

    min-width: 160px;
}

/*
 * ENTRADA DO MODAL
 */

 @keyframes feedback-overlay-entrada {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes feedback-modal-entrada {

    from {
        opacity: 0;
        transform: translateY(10px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/*
 * MOBILE
 */

@media (max-width: 480px) {

    .feedback-geral-conteudo {
        /* width: calc(100% - 30px); */
        width: 100%;
        padding: 35px 25px 30px;
    }

    .feedback-geral-texto {
        font-size: 19px;
    }

}