.bg-dermatologia {
    background-color: rgba(232, 77, 80, .5) !important;
    color: #fff !important;
}

.bg-oncologia {
    background-color: rgba(106, 27, 154, .5) !important;
    color: #fff !important;
}

.bg-medicina-interna {
    background-color: rgba(21, 101, 192, .5) !important;
    color: #fff !important;
}


.colored-text{
    text-decoration: underline;
    color: rgb(255, 122, 0);
}

.bg-ematologia {
    background-color: rgba(145, 6, 6, 0.5) !important;
    color: rgb(255, 255, 255) !important;
}

.bg-cardiologia {
    background-color: rgba(240, 3, 15, .5) !important;
    color: #fff !important;
}

.bg-infettivologia {
    background-color: rgba(46, 125, 50, .5) !important;
    color: #fff !important;
}

#modal-qa .select2-container {
    width: 100% !important;
}

#modal-qa .select2-container--default .select2-selection--multiple {
    min-height: 48px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: #fff;
    padding: 7px 10px 4px;
}

#modal-qa .select2-container--default.select2-container--focus .select2-selection--multiple,
#modal-qa .select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: 0;
}

#modal-qa .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 0;
    margin: 0;
}

#modal-qa .select2-container--default .select2-selection--multiple .select2-selection__choice {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 0;
    padding: 4px 10px 4px 28px;
    border: 0;
    border-radius: 4px;
    background-color: #e84d50;
    color: #fff;
    font-size: 0.92rem;
    line-height: 1.2;
}

#modal-qa .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    position: absolute;
    left: 8px;
    top: 50%;
    border: 0;
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    transform: translateY(-50%);
}

#modal-qa .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,
#modal-qa .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus {
    background: transparent;
    color: #fff;
}

#modal-qa .select2-container--default .select2-search--inline .select2-search__field {
    min-width: 220px;
    height: 30px;
    margin: 0;
    color: #212529;
    font: inherit;
}

#modal-qa .select2-container--default .select2-search--inline .select2-search__field::placeholder {
    color: #6c757d;
    opacity: 1;
}

#modal-qa .select2-dropdown {
    border-color: #ced4da;
    border-radius: 6px;
    overflow: hidden;
}

#modal-qa .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #e84d50;
    color: #fff;
    margin-inline-start:0 !important;
}
.select2-results__option {
   margin-inline-start:0 !important;
}
#modal-qa .select2-container--default .select2-results__option--selected {
    background-color: rgba(232, 77, 80, 0.12);
    color: #212529;
}

.qa-form-flash-bar {
    position: fixed;
    top: 16px;
    left: 50%;
    z-index: 2000;
    width: min(920px, calc(100vw - 32px));
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.qa-form-flash-bar.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.qa-form-flash-bar .alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 14px 46px 14px 16px;
    border: 0;
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(33, 37, 41, 0.18);
    font-size: 0.95rem;
}

.qa-form-flash-bar .alert p,
.qa-form-flash-bar .alert ul,
.qa-form-flash-bar .alert h4 {
    margin: 0;
}

.qa-form-flash-bar .alert ul {
    padding-left: 18px;
}

.qa-form-flash-bar .close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.4rem;
    line-height: 1;
    opacity: 0.65;
}

.qa-form-flash-bar .close:hover,
.qa-form-flash-bar .close:focus {
    opacity: 1;
}

/* //modal */
@media (max-width: 767.98px) {
    #modal-qa {
        padding: 0 !important;
        overflow: hidden;
    }

    #modal-qa .modal-dialog {
        margin: 0;
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        height: 100vh;
    }

    #modal-qa .modal-content {
        height: 100%;
        max-height: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    #modal-qa form {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    #modal-qa .modal-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }

    #modal-qa .modal-header,
    #modal-qa .modal-footer {
        flex-shrink: 0;
    }
}