/* ==========================================================
   MHDS — SUBMIT TICKET
   ========================================================== */


/* ==========================================================
   TÍTULO PRINCIPAL
   ========================================================== */

.card-title {
    color: #173a59;
    font-weight: 850;
}

h3.card-title {
    margin-bottom: 10px;

    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
}

.text-muted {
    color: #82909d !important;
}


/* ==========================================================
   STEP ONE — DEPARTAMENTOS
   ========================================================== */

.mb-4 + .row .col-sm-10 {
    display: grid;
    gap: 14px;
}

.mb-4 + .row .h5 {
    margin: 0;
}

.mb-4 + .row .h5 a {
    display: flex;

    min-height: 58px;

    align-items: center;
    gap: 12px;

    padding: 16px 18px;

    border: 1px solid #dce5ed;
    border-radius: 16px;

    background: #ffffff;

    color: #173a59;

    font-size: 11px;
    font-weight: 850;

    text-decoration: none;

    box-shadow:
        0 10px 28px
        rgba(16, 47, 77, .04);

    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.mb-4 + .row .h5 a:hover,
.mb-4 + .row .h5 a:focus {
    border-color: rgba(14, 73, 126, .28);

    background: #f8fafc;

    color: #0e497e;

    text-decoration: none;

    transform: translateY(-2px);

    box-shadow:
        0 16px 34px
        rgba(16, 47, 77, .08);
}

.mb-4 + .row .h5 a i {
    display: inline-flex;

    width: 38px;
    height: 38px;

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

    border-radius: 11px;

    background: rgba(14, 73, 126, .09);

    color: #0e497e;
}

.mb-4 + .row .h5 + .text-muted {
    margin: -6px 0 4px 50px;

    font-size: 9px;
    line-height: 1.55;
}


/* ==========================================================
   STEP TWO — FORMULÁRIO
   ========================================================== */

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: #173a59;

    font-size: 9px;
    font-weight: 850;
}

.form-control {
    min-height: 46px;

    border: 1px solid #d7e1e9;
    border-radius: 11px;

    background: #ffffff;

    color: #173a59;

    font-size: 10px;

    box-shadow: none;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.form-control:focus {
    border-color: #0e497e;

    background: #ffffff;

    box-shadow:
        0 0 0 3px
        rgba(14, 73, 126, .08);
}


/* ==========================================================
   INPUTS DESABILITADOS
   ========================================================== */

.form-control.disabled,
.form-control:disabled {
    background: #f4f7f9;

    color: #82909d;

    cursor: not-allowed;
}


/* ==========================================================
   SELECTS
   ========================================================== */

select.form-control {
    cursor: pointer;
}


/* ==========================================================
   MENSAGEM
   ========================================================== */

#inputMessage {
    min-height: 220px;

    resize: vertical;

    padding: 14px 15px;

    line-height: 1.65;
}


/* ==========================================================
   ANEXOS
   ========================================================== */

.attachment-group {
    overflow: hidden;

    border: 1px solid #d7e1e9;
    border-radius: 11px;

    background: #ffffff;
}

.attachment-group .custom-file {
    min-width: 0;
}

.attachment-group .custom-file-label {
    min-height: 44px;

    display: flex;

    align-items: center;

    margin: 0;
    padding: 0 14px;

    border: 0;

    background: #ffffff;

    color: #68798a;

    font-size: 9px;
}

.attachment-group .custom-file-input {
    min-height: 44px;
}

.attachment-group .input-group-append .btn {
    min-height: 44px;

    border: 0;
    border-left: 1px solid #dce5ed;

    background: #f5f8fb;

    color: #0e497e;

    font-size: 9px;
    font-weight: 850;
}

.attachment-group .input-group-append .btn:hover {
    background: #eef4f8;
}

#fileUploadsContainer {
    display: grid;

    gap: 8px;

    margin-top: 8px;
}

.form-group > .text-muted small {
    display: block;

    margin-top: 7px;

    font-size: 8px;
    line-height: 1.5;
}


/* ==========================================================
   CAMPOS PERSONALIZADOS
   ========================================================== */

#customFieldsContainer {
    margin-top: 10px;
}


/* ==========================================================
   SUGESTÕES AUTOMÁTICAS DA KB
   ========================================================== */

#autoAnswerSuggestions {
    margin: 20px 0;

    padding: 18px;

    border: 1px solid #dce5ed;
    border-radius: 16px;

    background: #f8fafc;

    color: #52677b;

    font-size: 9px;
    line-height: 1.6;
}


/* ==========================================================
   CAPTCHA
   ========================================================== */

.text-center.margin-bottom {
    margin-top: 20px;
    margin-bottom: 20px;
}


/* ==========================================================
   BOTÕES
   ========================================================== */

#openTicketSubmit {
    min-height: 48px;

    padding: 0 20px;

    border: 0;
    border-radius: 11px;

    background: #0e497e;

    color: #ffffff;

    font-size: 10px;
    font-weight: 850;

    box-shadow:
        0 10px 22px
        rgba(14, 73, 126, .16);

    transition:
        background-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

#openTicketSubmit:hover,
#openTicketSubmit:focus {
    background: #082f53;

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 14px 30px
        rgba(14, 73, 126, .22);
}

p.text-center .btn-default {
    min-height: 48px;

    padding: 0 18px;

    border: 1px solid #d7e1e9;
    border-radius: 11px;

    background: #ffffff;

    color: #68798a;

    font-size: 10px;
    font-weight: 800;
}

p.text-center .btn-default:hover {
    border-color: #0e497e;

    color: #0e497e;
}


/* ==========================================================
   ALERTAS
   ========================================================== */

.alert {
    border-radius: 14px;

    font-size: 9px;
    line-height: 1.6;
}

.alert-danger {
    border-color: rgba(179, 59, 59, .18);

    background: rgba(179, 59, 59, .07);

    color: #8b2d2d;
}

.alert-info {
    border-color: rgba(14, 73, 126, .16);

    background: rgba(14, 73, 126, .06);

    color: #0e497e;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .mb-4 + .row .col-sm-10 {
        display: block;
    }

    .mb-4 + .row .h5 {
        margin-bottom: 10px;
    }

    .mb-4 + .row .h5 + .text-muted {
        margin:
            -2px
            0
            16px;
    }

    #inputMessage {
        min-height: 180px;
    }

}