﻿/* Estilos gerais para o Help Desk FÃ¡cil */
.helpdesk-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 20px 0;
    box-sizing: border-box;
    font-family: "Fira Sans Condensed", sans-serif;
    color: #344054;
}

/* FormulÃ¡rio front â€” layout moderno */
.helpdesk-form-page .hd-front-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.helpdesk-form-page .hd-front-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #344054;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.helpdesk-form-page .hd-front-nav-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.helpdesk-form-page .hd-front-nav-btn:hover {
    background: #f2f4f7;
    border-color: #98a2b3;
    color: #101828 !important;
    text-decoration: none !important;
}

.helpdesk-form-page .hd-front-nav-logout:hover {
    border-color: #c82333;
    color: #c82333 !important;
    background: #fef3f2;
}

.helpdesk-form-page .hd-front-header {
    margin-bottom: 18px;
}

.helpdesk-form-page .hd-front-header h2 {
    margin: 0 0 6px;
    padding: 0;
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #101828;
    line-height: 1.25;
}

.helpdesk-form-page .hd-front-subtitle {
    margin: 0;
    font-size: 14px;
    color: #667085;
}

.helpdesk-form-page .hd-alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.45;
}

.helpdesk-form-page .hd-alert a {
    font-weight: 700;
    text-decoration: underline;
}

.helpdesk-form-page .hd-alert-success {
    background: #ecfdf3;
    border: 1px solid #abefc6;
    color: #027a48;
}

.helpdesk-form-page .hd-alert-success a {
    color: #027a48;
}

.helpdesk-form-page .hd-alert-error {
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: #b42318;
}

.helpdesk-form-page .hd-front-card {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    padding: 22px 24px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.helpdesk-form-page .hd-front-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
    margin-bottom: 18px;
}

.helpdesk-form-page .hd-front-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.helpdesk-form-page .hd-front-field-full {
    margin-bottom: 18px;
    gap: 4px;
}

.helpdesk-form-page .hd-front-field label {
    font-size: 12px;
    font-weight: 600;
    color: #344054;
    margin: 0;
}

.helpdesk-form-page .hd-front-field-full > label {
    margin-bottom: 0;
    line-height: 1.3;
}

.helpdesk-form-page .hd-front-editor {
    margin-top: 0;
}

.helpdesk-form-page .hd-front-editor .wp-editor-wrap {
    margin: 0;
}

.helpdesk-form-page .hd-front-editor .wp-editor-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    float: none;
    margin: 0 0 6px;
    padding: 0;
    min-height: 0;
}

.helpdesk-form-page .hd-front-editor .wp-editor-tabs {
    float: none;
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 2px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #f2f4f7;
}

.helpdesk-form-page .hd-front-editor .wp-switch-editor {
    float: none !important;
    margin: 0 !important;
    padding: 5px 12px !important;
    height: auto !important;
    border: none !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #667085 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    cursor: pointer;
}

.helpdesk-form-page .hd-front-editor .wp-switch-editor:hover {
    color: #344054 !important;
    background: rgba(255, 255, 255, 0.7) !important;
}

.helpdesk-form-page .hd-front-editor .tmce-active .switch-tmce,
.helpdesk-form-page .hd-front-editor .html-active .switch-html {
    background: #fff !important;
    color: #101828 !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08) !important;
}

.helpdesk-form-page .hd-front-editor .wp-editor-container {
    border: 1px solid #d0d5dd !important;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: none !important;
}

.helpdesk-form-page .hd-front-editor .mce-toolbar-grp,
.helpdesk-form-page .hd-front-editor .quicktags-toolbar {
    border: none !important;
    border-bottom: 1px solid #e4e7ec !important;
    background: #f9fafb !important;
    padding: 4px 6px !important;
}

.helpdesk-form-page .hd-front-editor .mce-statusbar {
    border-top: 1px solid #e4e7ec !important;
}

.helpdesk-form-page .hd-front-form input[type="text"],
.helpdesk-form-page .hd-front-form input[type="email"],
.helpdesk-form-page .hd-front-form select {
    width: 100% !important;
    max-width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 12px !important;
    margin: 0;
    border: 1px solid #d0d5dd !important;
    border-radius: 8px !important;
    background-color: #fff;
    color: #1d2939;
    font-size: 14px !important;
    line-height: 40px !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s ease;
}

.helpdesk-form-page .hd-front-form input::placeholder {
    color: #c5ccd6 !important;
    opacity: 1;
}

.helpdesk-form-page .hd-front-form input::-webkit-input-placeholder {
    color: #c5ccd6 !important;
    opacity: 1;
}

.helpdesk-form-page .hd-front-form input::-moz-placeholder {
    color: #c5ccd6 !important;
    opacity: 1;
}

.helpdesk-form-page .hd-front-form input:-ms-input-placeholder {
    color: #c5ccd6 !important;
    opacity: 1;
}

.helpdesk-form-page .hd-front-form select {
    padding-right: 36px !important;
    line-height: normal !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667085' d='M2.2 4.2a.75.75 0 0 1 1.06 0L6 6.94l2.74-2.74a.75.75 0 1 1 1.06 1.06L6.53 8.53a.75.75 0 0 1-1.06 0L2.2 5.26a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer;
}

.helpdesk-form-page .hd-front-form select::-ms-expand {
    display: none;
}

/* Nice Select do tema â€” igualar altura/estilo dos inputs */
.helpdesk-form-page .nice-select {
    width: 100% !important;
    max-width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 36px 0 12px !important;
    margin: 0 !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    color: #1d2939 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 40px !important;
    box-sizing: border-box !important;
    float: none !important;
    display: block !important;
}

.helpdesk-form-page .nice-select span.current {
    display: block;
    line-height: 40px !important;
    color: #1d2939 !important;
    font-size: 14px !important;
}

.helpdesk-form-page .nice-select:after {
    top: 50% !important;
    right: 14px !important;
    margin-top: 0 !important;
    font-size: 10px !important;
    line-height: 1 !important;
    color: #667085 !important;
    -webkit-transform: translateY(-50%) !important;
    -moz-transform: translateY(-50%) !important;
    -ms-transform: translateY(-50%) !important;
    transform: translateY(-50%) !important;
}

.helpdesk-form-page .nice-select .list {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 8px !important;
    border: 1px solid #d0d5dd !important;
    margin-top: 4px !important;
    box-shadow: none !important;
}

.helpdesk-form-page .nice-select .option {
    line-height: 36px !important;
    min-height: 36px !important;
    font-size: 14px !important;
    color: #344054 !important;
}

.helpdesk-form-page .nice-select:focus,
.helpdesk-form-page .nice-select.open {
    border-color: #12b76a !important;
}

.helpdesk-form-page .hd-front-form input:focus,
.helpdesk-form-page .hd-front-form select:focus {
    border-color: #12b76a;
    outline: none;
    box-shadow: none;
}

.helpdesk-form-page .hd-front-form input[readonly] {
    background: #f9fafb;
    color: #667085;
}

.helpdesk-form-page .hd-front-dropzone {
    margin-bottom: 20px;
}

.helpdesk-form-page .hd-dropzone-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #344054;
}

.helpdesk-form-page .hd-dropzone-title .dashicons {
    color: #667085;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.helpdesk-form-page .hd-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 120px;
    padding: 28px 20px;
    border: 2px dashed #d0d5dd;
    border-radius: 10px;
    background: #f9fafb;
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.helpdesk-form-page .hd-dropzone:hover,
.helpdesk-form-page .hd-dropzone.is-dragover {
    border-color: #98a2b3;
    background: #f2f4f7;
}

.helpdesk-form-page .hd-dropzone-main {
    font-size: 15px;
    font-weight: 700;
    color: #344054;
}

.helpdesk-form-page .hd-dropzone-sub {
    font-size: 13px;
    color: #667085;
}

.helpdesk-form-page .hd-dropzone-browse {
    color: #12b76a;
    font-weight: 600;
    text-decoration: underline;
}

.helpdesk-form-page .hd-dropzone-hint {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #667085;
}

.helpdesk-form-page .hd-front-submit {
    margin-top: 4px;
}

.helpdesk-form-page .hd-btn-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 24px;
    border: none;
    border-radius: 8px;
    background: #12b76a;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.15s ease;
}

.helpdesk-form-page .hd-btn-send .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
}

@keyframes be-btn-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.bolsa-estudos-form .hd-btn-send.is-loading .be-btn-icon {
    animation: be-btn-spin 0.75s linear infinite;
}

.bolsa-estudos-form .hd-btn-send:disabled {
    cursor: not-allowed;
    opacity: 0.92;
}

.helpdesk-form-page .hd-btn-send:hover {
    background: #0e9f5a;
    color: #fff;
}

@media (max-width: 782px) {
    .helpdesk-form-page .hd-front-grid {
        grid-template-columns: 1fr;
    }

    .helpdesk-form-page .hd-front-header h2 {
        font-size: 22px !important;
    }
}

@media (max-width: 991px) {
    .helpdesk-form-page .hd-front-grid {
        grid-template-columns: 1fr;
    }
}
.required {
    color: #F44336;
}
/* Modal de avisos (admin e frontend) */
body.hd-modal-open {
    overflow: hidden;
}

.hd-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.hd-modal[hidden] {
    display: none !important;
}

.hd-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, 0.45);
}

.hd-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    padding: 28px 24px 22px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e4e7ec;
    text-align: center;
}

.hd-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
}

.hd-modal-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    line-height: 1;
}

.hd-modal-icon.is-success {
    background: #ecfdf3;
    color: #12b76a;
}

.hd-modal-icon.is-error {
    background: #fef3f2;
    color: #d92d20;
}

.hd-modal-title {
    margin: 0 0 8px;
    padding: 0;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #101828;
}

.hd-modal-message {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #667085;
}

.hd-modal-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hd-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.hd-modal-btn-cancel[hidden],
.hd-modal-btn.is-hidden {
    display: none !important;
}

.hd-modal-btn-ok {
    border: none;
    background: #12b76a;
    color: #fff;
}

.hd-modal-btn-ok:hover {
    background: #0e9f5a;
    color: #fff;
}

.hd-modal-btn-ok.is-danger {
    background: #d92d20;
}

.hd-modal-btn-ok.is-danger:hover {
    background: #b42318;
}

.hd-modal-btn-cancel {
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #344054;
}

.hd-modal-btn-cancel:hover {
    background: #f2f4f7;
    border-color: #98a2b3;
    color: #101828;
}

.hd-modal.is-error .hd-modal-btn-ok:not(.is-danger) {
    background: #d92d20;
}

.hd-modal.is-error .hd-modal-btn-ok:not(.is-danger):hover {
    background: #b42318;
}

.hd-field-invalid,
.helpdesk-form-page .hd-front-form input.hd-field-invalid,
.helpdesk-form-page .hd-front-form select.hd-field-invalid,
.helpdesk-form-page .nice-select.hd-field-invalid,
.mce-tinymce.hd-field-invalid {
    border-color: #d92d20 !important;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.18) !important;
    outline: none;
}

.helpdesk_page_helpdesk-settings #setting-error-settings_updated {
    display: none !important;
}

/* Bolsa de Estudos — largura total e responsivo */
.bolsa-estudos-form.helpdesk-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 20px 0 !important;
    margin: 0 !important;
}

.bolsa-estudos-closed.helpdesk-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 20px 0 !important;
    margin: 0 !important;
}

.bolsa-estudos-form .hd-front-header,
.bolsa-estudos-form .hd-front-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.bolsa-estudos-form .hd-front-header {
    text-align: left;
}

.bolsa-estudos-form .be-form-heading {
    margin: 0 0 6px;
    padding: 0;
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #032e42
    line-height: 1.25;
    text-transform: none;
}

.bolsa-estudos-form .hd-front-submit {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.bolsa-estudos-form .hd-front-submit .hd-btn-send {
    width: auto;
    max-width: 100%;
}

/* Aviso — inscrições encerradas */
.bolsa-estudos-closed {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.bolsa-estudos-closed .be-closed-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    text-align: center !important;
    padding: 36px 24px;
    box-sizing: border-box;
}

.bolsa-estudos-closed .be-closed-body {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center !important;
}

.bolsa-estudos-closed .be-closed-card p,
.bolsa-estudos-closed .be-closed-lead,
.bolsa-estudos-closed .be-closed-text {
    width: 100%;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    float: none !important;
}

.bolsa-estudos-closed .be-closed-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: #b42318;
}

.bolsa-estudos-closed .be-closed-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    line-height: 1;
}

.bolsa-estudos-closed .be-closed-title {
    margin: 0 0 12px;
    padding: 0;
    width: 100%;
    text-align: center !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #101828;
    line-height: 1.3;
}

.bolsa-estudos-closed .be-closed-lead {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.55;
    color: #344054;
}

.bolsa-estudos-closed .be-closed-lead strong {
    font-weight: 700;
    color: #101828;
}

.bolsa-estudos-closed .be-closed-text {
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.55;
    color: #667085;
}

@media (max-width: 782px) {
    .bolsa-estudos-form .hd-front-card,
    .bolsa-estudos-closed .be-closed-card {
        padding: 20px 16px;
    }

    .helpdesk-form-page .hd-front-header h2,
    .bolsa-estudos-closed .be-closed-title {
        font-size: 20px !important;
    }

    .bolsa-estudos-form .hd-front-submit .hd-btn-send {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .bolsa-estudos-closed .be-closed-icon {
        width: 56px;
        height: 56px;
    }

    .bolsa-estudos-closed .be-closed-lead {
        font-size: 14px;
    }

    .bolsa-estudos-closed .be-closed-text {
        font-size: 13px;
    }
}
