/* =============================================
   BASE: Estilos comuns a TODOS os formulários
   ============================================= */

.mod-form {
    max-width: 900px;
    margin: 0 auto !important;
    padding: 30px 20px;
    float: none !important;
    display: block !important;
}

.mod-form .area-item {
    padding-bottom: 8px !important;
    margin-bottom: 16px;
}

.mod-form label,
.mod-form label.form-label {
    font-family: 'Noto Sans', Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    padding-bottom: 4px !important;
    margin-bottom: 2px !important;
    color: #00166B !important;
    display: block;
}

/* Inputs text, email, tel, cpf, date */
.mod-form .form-control {
    background: #FFFFFF !important;
    border: 1px solid #D0D5DD !important;
    border-radius: 8px !important;
    font-family: 'Noto Sans', Arial, sans-serif !important;
    font-size: 14px !important;
    letter-spacing: 0 !important;
    color: #333333 !important;
    padding: 12px 16px !important;
    transition: border-color 0.2s ease !important;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.mod-form .form-control::placeholder {
    color: #999999 !important;
    font-size: 14px !important;
}

.mod-form .form-control:focus {
    border-color: #00166B !important;
    box-shadow: 0 0 0 2px rgba(0, 22, 107, 0.1) !important;
    outline: none !important;
}

/* Textarea */
.mod-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Select */
.mod-form .form-select {
    background-color: #FFFFFF !important;
    border: 1px solid #D0D5DD !important;
    border-radius: 8px !important;
    font-family: 'Noto Sans', Arial, sans-serif !important;
    font-size: 14px !important;
    letter-spacing: 0 !important;
    color: #333333 !important;
    padding: 12px 40px 12px 16px !important;
    transition: border-color 0.2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300166B'%3E%3Cpath fill-rule='evenodd' d='M1.646 5.646a.5.5 0 0 1 .708 0L8 11.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 14px 14px !important;
}

.mod-form .form-select:focus {
    border-color: #00166B !important;
    box-shadow: 0 0 0 2px rgba(0, 22, 107, 0.1) !important;
    outline: none !important;
}

/* Checkboxes & Radios */
.mod-form .form-check {
    margin-bottom: 6px;
    padding-left: 28px;
}

.mod-form .form-check.form-check-inline {
    margin-right: 20px !important;
    align-items: center;
}

.mod-form .form-check-input {
    width: 18px !important;
    height: 18px !important;
    margin-top: 1px;
    cursor: pointer;
    background-color: #FFFFFF !important;
    transition: all 0.2s ease !important;
}

.mod-form .form-check-input[type="radio"] {
    border: 2px solid #CCCCCC !important;
}

.mod-form .form-check-input[type="radio"]:hover {
    border-color: #00166B !important;
}

.mod-form .form-check-input[type="radio"]:checked {
    background-color: #00166B !important;
    border-color: #00166B !important;
}

.mod-form .form-check-input[type="checkbox"] {
    border: 1px solid #CCCCCC !important;
    border-radius: 3px !important;
}

.mod-form .form-check-input[type="checkbox"]:hover {
    border-color: #00166B !important;
}

.mod-form .form-check-input[type="checkbox"]:checked {
    background-color: #00166B !important;
    border-color: #00166B !important;
}

.mod-form .form-check-input:focus {
    box-shadow: none !important;
    outline: none !important;
}

.mod-form .form-check-label {
    font-family: 'Noto Sans', Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #333333 !important;
    cursor: pointer;
}

.mod-form .mod-area-radio {
    padding-left: 15px !important;
}

.mod-form .mod-input-8 {
    margin-top: 10px !important;
}

/* File input */
.mod-form input[type="file"].form-control {
    border: 1px dashed #D0D5DD !important;
    border-radius: 8px !important;
    padding: 16px !important;
    text-align: center;
    cursor: pointer;
}

.mod-form input[type="file"].form-control:hover {
    border-color: #00166B !important;
}

/* Date input */
.mod-form input[type="date"].form-control {
    border: 1px solid #D0D5DD !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
}

/* Botão Enviar - padrão dourado/amarelo pill (igual ao manifeste) */
.mod-form .btn-manifeste {
    background: #E8B817 !important;
    border: none !important;
    color: #FFFFFF !important;
    font-family: 'Noto Sans', Arial, sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    letter-spacing: 0.5px !important;
    padding: 12px 50px !important;
    border-radius: 30px !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    min-width: 160px;
    text-transform: none;
}

.mod-form .btn-manifeste:hover {
    background: #D4A70E !important;
    box-shadow: 0 2px 8px rgba(232, 184, 23, 0.4) !important;
    transform: translateY(-1px);
}

.mod-form .btn-manifeste:disabled {
    background: #E8B817 !important;
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

/* Link Aviso de Privacidade */
.mod-form .manifeste-link {
    color: #333333;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.mod-form .manifeste-link:hover {
    color: #8B1A8F;
}

/* Mensagens de erro */
.mod-form .invalid-feedback {
    font-size: 12px !important;
    color: #D32F2F !important;
    padding-top: 4px;
}

.mod-form .text-danger {
    font-size: 12px !important;
    color: #D32F2F !important;
}

/* Interesse em Curso - base */
.mod-form .interesse-curso-wrapper .interesse-tematicas {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: center;
}

.mod-form .interesse-curso-wrapper .interesse-tematicas .form-check {
    margin-bottom: 0;
}

.mod-form .interesse-curso-wrapper .interesse-curso-select {
    margin-top: 16px;
}

.mod-form .interesse-curso-wrapper .interesse-curso-select .form-select {
    border: 1px solid #D0D5DD !important;
    border-radius: 8px !important;
    padding: 12px 40px 12px 16px !important;
    color: #999999 !important;
}

.mod-form .interesse-curso-wrapper .interesse-curso-select .form-select:has(option:checked:not([value=""])) {
    color: #333333 !important;
}

/* Checkbox multipla escolha - base */
.mod-form .mod-area-checkbox .form-check {
    padding-left: 28px;
    margin-bottom: 8px;
}

/* Responsivo - base */
@media (max-width: 768px) {
    .mod-form {
        max-width: 100%;
        padding: 20px 12px;
    }

    .mod-form .form-check.form-check-inline {
        display: block !important;
        margin-right: 0 !important;
        margin-bottom: 8px;
    }

    .mod-form .btn {
        width: 100%;
        padding: 12px 30px !important;
    }
}

/* Tooltip escopado ao modulo para nao colidir com outros tooltips do site */
.mod-form .tooltip,
.mod-form .tooltip-inline {
    cursor: pointer;
    max-width: 300px;
}

.texto-descricao{
    margin-top: -5px;
    margin-left: 10px;
}

.campo-novo {
    margin-top: 10px;
}

.fa.fa-plus-circle {
    cursor: pointer;
}

.mod-form h2 {
    font-family: 'Noto Sans', sans-serif;
    font-size: 28px;
    line-height: 35px;
    letter-spacing: 0;
    color: #00166B;
}

.titulo-campo-custom {
    font-family: 'Noto Sans', sans-serif !important;
    font-weight: 400 !important;
    font-size: 18px !important;
    color: #00166B !important;
}

.label-campo-custom {
    font-family: 'Noto Sans', sans-serif !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    color: #00166B !important;
}

.form-text.text-muted {
    font-family: 'Noto Sans', sans-serif !important;
    opacity: .8;
    font-size: .9em;
    color: darkslategray !important;
}

/* =============================================
   LAYOUT: Manifestar Interesse
   ============================================= */

/* Container geral do formulário manifeste */
.mod-form-manifeste {
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 20px 0 !important;
    max-width: 560px;
    margin: 0 auto !important;
    display: block !important;
    float: none !important;
    height: 100% !important;
}

/* Cabeçalho com título dividido */
.mod-form-manifeste .manifeste-header {
    text-align: center;
    margin-bottom: 30px;
}

.mod-form-manifeste .manifeste-subtitle {
    font-family: 'Noto Sans', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #8B1A8F;
    text-transform: uppercase;
    margin: 0 0 4px 0;
}

.mod-form-manifeste .manifeste-title {
    font-family: 'Noto Sans', Arial, sans-serif;
    font-size: 24px;
    font-weight: 900;
    line-height: 32px;
    color: #1A1A1A !important;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Área dos campos */
.mod-form-manifeste .manifeste-form-body {
    padding: 0;
}

/* Area item dentro do manifeste */
.mod-form-manifeste .area-item {
    padding-bottom: 4px !important;
    margin-bottom: 16px;
}

/* Labels do manifeste - ocultar para inputs (usar placeholder), mostrar para radio/checkbox */
.mod-form-manifeste label.form-label {
    font-family: 'Noto Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #555555 !important;
    letter-spacing: 0 !important;
    padding-bottom: 4px !important;
    margin-bottom: 0 !important;
    display: block;
}

/* Ocultar labels em campos que usam placeholder (text, email, tel, cpf_cnpj) */
.mod-form-manifeste .area-item:has(.form-control:not(textarea)) > .form-label {
    display: none !important;
}

/* Inputs text/email/tel - estilo com borda completa e cantos arredondados */
.mod-form-manifeste .form-control {
    border: 1px solid #D9D9D9 !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    font-family: 'Noto Sans', sans-serif !important;
    font-size: 14px !important;
    color: #333333 !important;
    background: #FFFFFF !important;
    transition: border-color 0.2s ease !important;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.mod-form-manifeste .form-control:focus {
    border-color: #8B1A8F !important;
    box-shadow: none !important;
    background: #FFFFFF !important;
}

.mod-form-manifeste .form-control::placeholder {
    color: #999999 !important;
    font-size: 14px !important;
    font-style: normal;
}

/* Select / combo dentro do manifeste */
.mod-form-manifeste .form-select {
    border: 1px solid #D9D9D9 !important;
    border-radius: 8px !important;
    padding: 14px 40px 14px 16px !important;
    font-family: 'Noto Sans', sans-serif !important;
    font-size: 14px !important;
    color: #333333 !important;
    background-color: #FFFFFF !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23555555'%3E%3Cpath fill-rule='evenodd' d='M1.646 5.646a.5.5 0 0 1 .708 0L8 11.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 14px 14px !important;
    transition: border-color 0.2s ease !important;
    appearance: none !important;
}

.mod-form-manifeste .form-select:focus {
    border-color: #8B1A8F !important;
    box-shadow: none !important;
}

/* Textarea dentro do manifeste */
.mod-form-manifeste textarea.form-control {
    border: 1px solid #D9D9D9 !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    resize: vertical;
    min-height: 100px;
}

.mod-form-manifeste textarea.form-control:focus {
    border-color: #8B1A8F !important;
}

/* Labels de radio/checkbox */
.mod-form-manifeste .area-item .form-check-label,
.mod-form-manifeste .form-check-label {
    font-size: 14px !important;
    font-family: 'Noto Sans', sans-serif !important;
    color: #333333 !important;
    font-weight: 400 !important;
    cursor: pointer;
}

.mod-form-manifeste .area-item .form-check-label-interesse,
.mod-form-manifeste .form-check-label-interesse{
    padding: 0 !important;
    font-size: 14px !important;
    font-family: 'Noto Sans', sans-serif !important;
    color: #333333 !important;
    font-weight: 400 !important;
    cursor: pointer;
    margin-left: 6px;
}

/* Label "Interesse em:" para radio/checkbox groups */
.mod-form-manifeste .area-item:has(.form-check) > .form-label {
    font-size: 14px !important;
    font-family: 'Noto Sans', sans-serif !important;
    color: #333333 !important;
    font-weight: 400 !important;
    display: block !important;
    height: auto;
    overflow: visible;
    margin-bottom: 8px !important;
    padding-bottom: 0 !important;
}

/* Radio buttons - inline */
.mod-form-manifeste .form-check {
    margin-bottom: 6px;
    padding-left: 28px;
}

.mod-form-manifeste .form-check.form-check-inline {
    display: inline-flex !important;
    margin-right: 20px !important;
    align-items: center;
}

.mod-form-manifeste .form-check-input {
    width: 18px !important;
    height: 18px !important;
    margin-top: 1px;
    cursor: pointer;
}

.mod-form-manifeste .form-check-input[type="radio"] {
    border: 2px solid #CCCCCC !important;
    background-color: #FFFFFF !important;
    transition: all 0.2s ease !important;
}

.mod-form-manifeste .form-check-input[type="radio"]:hover {
    border-color: #8B1A8F !important;
}

.mod-form-manifeste .form-check-input[type="radio"]:checked {
    background-color: #8B1A8F !important;
    border-color: #8B1A8F !important;
}

/* Checkboxes */
.mod-form-manifeste .form-check-input[type="checkbox"] {
    border: 1px solid #CCCCCC !important;
    border-radius: 3px !important;
    background-color: #FFFFFF !important;
    transition: all 0.2s ease !important;
    width: 16px !important;
    height: 16px !important;
}

.mod-form-manifeste .form-check-input[type="checkbox"]:hover {
    border-color: #8B1A8F !important;
}

.mod-form-manifeste .form-check-input[type="checkbox"]:checked {
    background-color: #8B1A8F !important;
    border-color: #8B1A8F !important;
}

/* Área de políticas e declarações */
.mod-form-manifeste .manifeste-footer {
    padding: 0;
    margin-top: 10px;
}

.mod-form-manifeste .manifeste-footer .form-check {
    padding-left: 24px;
    margin-bottom: 4px;
}

.mod-form-manifeste .manifeste-footer .form-check-label {
    font-size: 13px !important;
    color: #666666 !important;
}

/* Link "Política de Privacidade" */
.mod-form-manifeste .manifeste-link {
    color: #333333;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.mod-form-manifeste .manifeste-link:hover {
    color: #8B1A8F;
}

/* Botão Enviar - dourado/amarelo pill */
.mod-form-manifeste .btn-manifeste {
    background: #E8B817 !important;
    border: none !important;
    color: #FFFFFF !important;
    font-family: 'Noto Sans', sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    letter-spacing: 0.5px !important;
    padding: 12px 50px !important;
    border-radius: 30px !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    min-width: 160px;
    text-transform: none;
}

.mod-form-manifeste .btn-manifeste:hover {
    background: #D4A70E !important;
    box-shadow: 0 2px 8px rgba(232, 184, 23, 0.4) !important;
    transform: translateY(-1px);
}

.mod-form-manifeste .btn-manifeste:disabled {
    background: #E8B817 !important;
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

/* Área do botão enviar */
.mod-form-manifeste .manifeste-submit {
    padding: 16px 0;
    text-align: center;
}

/* Seção h2 - não exibir seções extras no manifeste */
.mod-form-manifeste h2.text-left {
    display: none;
}

/* Mensagens de erro */
.mod-form-manifeste .invalid-feedback {
    font-size: 12px !important;
    color: #D32F2F !important;
    padding-top: 4px;
}

.mod-form-manifeste .text-danger {
    font-size: 12px !important;
    color: #D32F2F !important;
}

/* File input estilizado */
.mod-form-manifeste input[type="file"].form-control {
    border: 1px dashed #D9D9D9 !important;
    border-radius: 8px !important;
    padding: 16px !important;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease !important;
}

.mod-form-manifeste input[type="file"].form-control:hover {
    border-color: #8B1A8F !important;
}

/* Date input */
.mod-form-manifeste input[type="date"].form-control {
    border: 1px solid #D9D9D9 !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
}

.mod-form-manifeste input[type="date"].form-control:focus {
    border-color: #8B1A8F !important;
}

/* Texto descricao dentro do manifeste */
.mod-form-manifeste .texto-descricao {
    margin-top: -2px;
    margin-left: 0;
    margin-bottom: 6px;
}

.mod-form-manifeste .texto-descricao .form-text {
    font-size: 12px !important;
    color: #888888 !important;
    font-style: italic;
}

/* Interesse em Curso - temáticas radio + select de cursos */
.mod-form-manifeste .interesse-curso-wrapper .interesse-tematicas {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: center;
}

.mod-form-manifeste .interesse-curso-wrapper .interesse-tematicas .form-check {
    margin-bottom: 0;
}

.mod-form-manifeste .interesse-curso-wrapper .interesse-curso-select {
    margin-top: 16px;
}

.mod-form-manifeste .interesse-curso-wrapper .interesse-curso-select .form-select {
    border: 1px solid #D9D9D9 !important;
    border-radius: 8px !important;
    padding: 14px 40px 14px 16px !important;
    color: #999999 !important;
    height: 100% !important;
}

.mod-form-manifeste .interesse-curso-wrapper .interesse-curso-select .form-select:has(option:checked:not([value=""])) {
    color: #333333 !important;
}

/* Responsivo */
@media (max-width: 768px) {
    .mod-form-manifeste {
        max-width: 100%;
        padding: 16px 12px !important;
    }

    .mod-form-manifeste .manifeste-title {
        font-size: 20px;
        line-height: 28px;
    }

    .mod-form-manifeste .manifeste-subtitle {
        font-size: 12px;
    }

    .mod-form-manifeste .form-check.form-check-inline {
        display: block !important;
        margin-right: 0 !important;
    }

    .mod-form-manifeste .btn-manifeste {
        padding: 12px 40px !important;
        font-size: 14px !important;
        width: 100%;
    }
}

/* =============================================
   Telefone internacional — botao de pais + dropdown
   ============================================= */
.telefone-intl-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
}

.telefone-intl-wrapper .telefone-country-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    background: #FFFFFF;
    border: 1px solid #D0D5DD;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    font-family: inherit;
    min-width: 92px;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.telefone-intl-wrapper .telefone-country-btn:hover {
    background: #F9FAFB;
}
.telefone-intl-wrapper .telefone-country-btn:focus {
    outline: 2px solid color-mix(in srgb, var(--ncf-accent, #7a004a) 30%, transparent);
    outline-offset: -1px;
    z-index: 2;
}
.telefone-intl-wrapper .telefone-country-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.telefone-intl-wrapper .telefone-flag-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 18px;
    overflow: hidden;
    border-radius: 2px;
    background: #F3F4F6;
}
.telefone-intl-wrapper .telefone-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    display: block;
}
.telefone-intl-wrapper .telefone-flag-placeholder {
    font-size: 14px;
    line-height: 1;
}

.telefone-intl-wrapper .telefone-dialcode {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: #374151;
    font-size: 14px;
}

.telefone-intl-wrapper .telefone-caret {
    font-size: 10px;
    color: #9CA3AF;
    margin-left: 2px;
}

.telefone-intl-wrapper .telefone-intl {
    border-radius: 0 8px 8px 0 !important;
    flex: 1 1 auto;
    min-width: 0;
}

/* Dropdown */
.telefone-intl-wrapper .telefone-country-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 100;
    background: #FFFFFF;
    border: 1px solid #D0D5DD;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    max-width: 360px;
}

.telefone-intl-wrapper .telefone-country-search {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #E5E7EB;
    padding: 10px 12px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
    color: #374151;
}
.telefone-intl-wrapper .telefone-country-search:focus {
    outline: none;
    background: #F9FAFB;
}

.telefone-intl-wrapper .telefone-country-list {
    list-style: none;
    padding: 4px 0;
    margin: 0;
    max-height: 260px;
    overflow-y: auto;
}
.telefone-intl-wrapper .telefone-country-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13.5px;
    color: #374151;
    transition: background 0.1s ease;
}
.telefone-intl-wrapper .telefone-country-list li:hover {
    background: #F3F4F6;
}
.telefone-intl-wrapper .telefone-country-list li.selected {
    background: color-mix(in srgb, var(--ncf-accent, #7a004a) 10%, transparent);
    font-weight: 500;
}
.telefone-intl-wrapper .telefone-country-list .telefone-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}
.telefone-intl-wrapper .telefone-country-list .cn {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.telefone-intl-wrapper .telefone-country-list .cd {
    color: #6B7280;
    font-variant-numeric: tabular-nums;
    font-size: 12.5px;
    flex-shrink: 0;
}
.telefone-intl-wrapper .telefone-country-empty {
    padding: 16px;
    text-align: center;
    color: #9CA3AF;
    font-size: 13px;
}

/* =============================================
   TEMA CUSTOMIZAVEL — controlado pelos params do modulo
   (theme_color, theme_color_accent, button_color). As variaveis sao
   injetadas via <style> inline no template; este bloco vem por ULTIMO
   no arquivo e usa classes encadeadas (.mod-form.mod-form-themed) para
   bater a especificidade das regras base com !important.
   ============================================= */
.mod-form.mod-form-themed {
    --ncf-theme: #7a004a;
    --ncf-accent: #c7007f;
    --ncf-label: var(--ncf-theme);
    --ncf-button: var(--ncf-theme);
}

/* Titulos e subtitulos de secao */
.mod-form.mod-form-themed h2,
.mod-form.mod-form-themed .form-section-title,
.mod-form.mod-form-themed .titulo-campo-custom {
    color: var(--ncf-theme) !important;
}
.mod-form.mod-form-themed .form-section-description {
    color: var(--ncf-theme) !important;
    opacity: 0.85;
}

/* Labels visiveis acima dos inputs (incluindo legend de fieldset/radio/checkbox) */
.mod-form.mod-form-themed label.form-label,
.mod-form.mod-form-themed .form-label,
.mod-form.mod-form-themed .label-campo-custom,
.mod-form.mod-form-themed .area-item > label,
.mod-form.mod-form-themed .area-item > span.form-label,
.mod-form.mod-form-themed fieldset > legend {
    color: var(--ncf-label) !important;
}

/* Focus em inputs */
.mod-form.mod-form-themed .form-control:focus,
.mod-form.mod-form-themed .form-select:focus,
.mod-form.mod-form-themed input[type="file"].form-control:hover,
.mod-form.mod-form-themed input[type="date"].form-control:focus {
    border-color: var(--ncf-accent) !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--ncf-accent) 20%, transparent) !important;
}

/* Radios e checkboxes */
.mod-form.mod-form-themed .form-check-input[type="radio"]:hover,
.mod-form.mod-form-themed .form-check-input[type="checkbox"]:hover {
    border-color: var(--ncf-accent) !important;
}
.mod-form.mod-form-themed .form-check-input[type="radio"]:checked,
.mod-form.mod-form-themed .form-check-input[type="checkbox"]:checked {
    background-color: var(--ncf-accent) !important;
    border-color: var(--ncf-accent) !important;
}

/* Link da politica */
.mod-form.mod-form-themed .manifeste-link:hover {
    color: var(--ncf-accent) !important;
}

/* Botao Enviar */
.mod-form.mod-form-themed .btn-manifeste,
.mod-form.mod-form-themed .btn-manifeste:disabled {
    background: var(--ncf-button) !important;
    color: #FFFFFF !important;
    border-color: var(--ncf-button) !important;
}
.mod-form.mod-form-themed .btn-manifeste:hover {
    background: color-mix(in srgb, var(--ncf-button) 80%, #000) !important;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--ncf-button) 40%, transparent) !important;
}
.mod-form.mod-form-themed .btn-manifeste:disabled {
    opacity: 0.5;
}

/* Foco com contraste WCAG AA */
.mod-form.mod-form-themed .form-control:focus,
.mod-form.mod-form-themed .form-select:focus,
.mod-form.mod-form-themed textarea.form-control:focus {
    border-color: var(--ncf-accent) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ncf-accent) 30%, transparent) !important;
    outline: none !important;
}

/* =============================================
   LAYOUT REFINAMENTOS — formularios nao-manifeste
   (Aplicam-se a qualquer .mod-form que NAO seja .mod-form-manifeste)
   ============================================= */

/* Tipografia base — usa Inter (Google Fonts) com fallback ao sistema. */
.mod-form:not(.mod-form-manifeste) {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* Padding interno do wrapper .form-body para nao colar nas bordas */
.mod-form:not(.mod-form-manifeste) > .form-body {
    padding: 0 8px;
    margin: 0;
}

/* 1) Separacao visual entre secoes */
.mod-form:not(.mod-form-manifeste) .form-section {
    margin-top: 32px;
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E7EB;
}
.mod-form:not(.mod-form-manifeste) .form-section:first-of-type {
    margin-top: 8px;
}
.mod-form:not(.mod-form-manifeste) .form-section-title {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
    margin: 0 0 6px 0 !important;
}
.mod-form:not(.mod-form-manifeste) .form-section-description {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    color: color-mix(in srgb, var(--ncf-theme, #4B5563) 75%, #555) !important;
    opacity: 0.95;
}

/* 6) Tipografia dos labels: 15px com peso medium */
.mod-form:not(.mod-form-manifeste) label.form-label,
.mod-form:not(.mod-form-manifeste) span.form-label {
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
}

/* Descricao da pergunta (texto-descricao) — um pouco mais discreto */
.mod-form:not(.mod-form-manifeste) .texto-descricao .form-text {
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #6B7280 !important;
    font-style: normal !important;
    margin: 0 0 8px 0 !important;
}

/* Inputs: tipografia mais consistente com labels */
.mod-form:not(.mod-form-manifeste) .form-control,
.mod-form:not(.mod-form-manifeste) .form-select {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 15px !important;
}

/* Espaco entre campos */
.mod-form:not(.mod-form-manifeste) .area-item {
    margin-bottom: 22px;
    padding-bottom: 0 !important;
}

/* 5) Asterisco de obrigatorio em vermelho */
.mod-form .required-mark {
    color: #D32F2F;
    font-weight: 700;
    margin-left: 2px;
}

/* 2) Footer do submit destacado */
.mod-form:not(.mod-form-manifeste) .form-submit-bar {
    margin-top: 32px;
    padding: 24px 0 8px;
    border-top: 2px solid var(--ncf-theme, #E5E7EB);
    background: linear-gradient(to bottom, color-mix(in srgb, var(--ncf-theme, #999) 4%, transparent), transparent);
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.mod-form:not(.mod-form-manifeste) .form-submit-bar .btn-manifeste {
    border-radius: 30px !important;
    padding: 12px 36px !important;
    font-weight: 600 !important;
    text-transform: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* 3) Botao Choose File estilizado (Chromium/Firefox/Safari) */
.mod-form:not(.mod-form-manifeste) input[type="file"].file-input,
.mod-form:not(.mod-form-manifeste) input[type="file"].form-control {
    padding: 8px 12px !important;
    border: 1px dashed #D0D5DD !important;
    background: #FAFAFA !important;
}
.mod-form:not(.mod-form-manifeste) input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 16px;
    border: 0;
    border-radius: 6px;
    background: #F3F4F6;
    color: var(--ncf-theme, #374151);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.mod-form:not(.mod-form-manifeste) input[type="file"]::file-selector-button:hover {
    background: #E5E7EB;
}
.mod-form.mod-form-themed input[type="file"]::file-selector-button {
    background: color-mix(in srgb, var(--ncf-theme) 10%, #F3F4F6) !important;
    color: var(--ncf-theme) !important;
}
.mod-form.mod-form-themed input[type="file"]::file-selector-button:hover {
    background: color-mix(in srgb, var(--ncf-theme) 20%, #E5E7EB) !important;
}

/* 4) Contadores de palavras/caracteres — visiveis e dentro do box */
.mod-form .textarea-wrapper {
    position: relative;
}
.mod-form .textarea-wrapper textarea.form-control {
    padding-bottom: 28px !important;
}
.mod-form .textarea-wrapper .word-counter,
.mod-form .textarea-wrapper .char-counter {
    position: absolute;
    right: 14px;
    bottom: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #6B7280;
    background: rgba(255, 255, 255, 0.85);
    padding: 2px 8px;
    border-radius: 10px;
    pointer-events: none;
    line-height: 1.4;
    z-index: 1;
}
.mod-form .textarea-wrapper .word-counter.text-warning {
    color: #C97700 !important;
    background: rgba(255, 247, 230, 0.95);
}
.mod-form .textarea-wrapper .word-counter.text-danger {
    color: #C0392B !important;
    background: rgba(255, 235, 235, 0.95);
    font-weight: 600;
}

/* =============================================
   #14 — TOC (indice de secoes) + barra de progresso
   ============================================= */

/* Container principal vira flex grid quando ha TOC (desktop) */
.mod-form.mod-form-with-toc {
    max-width: 1100px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: start;
}

/* Sidebar TOC (sticky no desktop) */
.mod-form-with-toc .form-toc {
    position: sticky;
    top: 24px;
    align-self: start;
    grid-column: 1;
    grid-row: 1 / span 99;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 18px 16px;
    background: #FAFAFA;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
    font-size: 13px;
}

.mod-form-with-toc .form-toc-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6B7280;
    margin-bottom: 12px;
}

.mod-form-with-toc .form-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}
.mod-form-with-toc .form-toc-list li {
    counter-increment: toc-counter;
    margin: 0;
}
.mod-form-with-toc .form-toc-list a {
    display: block;
    padding: 6px 10px;
    color: #4B5563;
    text-decoration: none;
    border-left: 2px solid transparent;
    border-radius: 0 4px 4px 0;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    line-height: 1.35;
    font-size: 12.5px;
}
.mod-form-with-toc .form-toc-list a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #111827;
}
.mod-form-with-toc .form-toc-list a.active {
    border-left-color: var(--ncf-theme, #7a004a);
    background: color-mix(in srgb, var(--ncf-theme, #7a004a) 8%, transparent);
    color: var(--ncf-theme, #7a004a);
    font-weight: 600;
}

/* Conteudo do formulario fica na coluna direita */
.mod-form-with-toc > .form-progress { grid-column: 2; }
.mod-form-with-toc > .form-body,
.mod-form-with-toc > .row,
.mod-form-with-toc > .text-center,
.mod-form-with-toc > div:not(.form-toc):not(.form-progress) {
    grid-column: 2;
}

/* Ancora com offset para nao colar no topo */
.mod-form-with-toc .form-section {
    scroll-margin-top: 24px;
}

/* Barra de progresso (visivel em mobile e desktop) */
.mod-form .form-progress {
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    margin-bottom: 24px;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 5;
}
.mod-form .form-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--ncf-theme, #7a004a);
    transition: width 0.2s ease;
    border-radius: 2px;
}

/* Responsivo: mais respiro em mobile e TOC vira lista colapsavel */
@media (max-width: 991px) {
    .mod-form.mod-form-with-toc {
        display: block;
    }
    .mod-form-with-toc .form-toc {
        position: static;
        max-height: none;
        margin-bottom: 16px;
        display: none; /* esconde TOC em telas medias e mobile, usa progress bar */
    }
}

@media (max-width: 768px) {
    .mod-form:not(.mod-form-manifeste) {
        padding: 24px 16px;
    }
    .mod-form:not(.mod-form-manifeste) .form-section-title {
        font-size: 20px !important;
    }
    .mod-form:not(.mod-form-manifeste) .form-submit-bar {
        justify-content: center;
    }
    .mod-form:not(.mod-form-manifeste) .form-submit-bar .btn-manifeste {
        width: 100%;
    }
}

/* =============================================
   PAINEL DE CAMPOS OBRIGATORIOS PENDENTES
   Estilo alinhado ao restante do form: cartao neutro
   (mesmo padrao visual do .form-toc) com acentos do tema.
   ============================================= */
.mod-form .ncf-pending-fields {
    margin: 20px auto 16px;
    background: #FAFAFA;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
    font-family: 'Noto Sans', Arial, sans-serif;
}

.mod-form .ncf-pending-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    color: var(--ncf-label, #00166B);
    transition: background 0.15s ease;
}

.mod-form .ncf-pending-toggle:hover {
    background: rgba(0, 0, 0, 0.025);
}

.mod-form .ncf-pending-toggle:focus-visible {
    outline: 2px solid var(--ncf-theme, #00166B);
    outline-offset: -2px;
}

.mod-form .ncf-pending-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ncf-theme, #00166B) 12%, transparent);
    color: var(--ncf-theme, #00166B);
    font-family: 'Noto Sans', Arial, sans-serif;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
}

.mod-form .ncf-pending-title {
    display: flex;
    flex-direction: column;
    flex: 1;
    line-height: 1.3;
    gap: 2px;
}

.mod-form .ncf-pending-header {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6B7280;
}

.mod-form .ncf-pending-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--ncf-label, #00166B);
}

.mod-form .ncf-pending-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--ncf-label, #00166B);
    transition: transform 0.18s ease;
    flex-shrink: 0;
    opacity: 0.7;
}

.mod-form .ncf-pending-open .ncf-pending-arrow {
    transform: rotate(180deg);
}

.mod-form .ncf-pending-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
    counter-reset: ncf-pending-counter;
    border-top: 1px solid transparent;
}

.mod-form .ncf-pending-open .ncf-pending-list {
    max-height: 320px;
    overflow-y: auto;
    border-top-color: #E5E7EB;
    padding: 6px 0;
}

.mod-form .ncf-pending-list li {
    counter-increment: ncf-pending-counter;
    margin: 0;
}

.mod-form .ncf-pending-link {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 16px 8px 14px;
    color: #4B5563;
    text-decoration: none;
    font-size: 13.5px;
    line-height: 1.4;
    border-left: 2px solid transparent;
    border-radius: 0 4px 4px 0;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mod-form .ncf-pending-link::before {
    content: counter(ncf-pending-counter) ".";
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #9CA3AF;
    min-width: 18px;
    flex-shrink: 0;
}

.mod-form .ncf-pending-link:hover,
.mod-form .ncf-pending-link:focus-visible {
    background: color-mix(in srgb, var(--ncf-theme, #00166B) 6%, transparent);
    border-left-color: var(--ncf-theme, #00166B);
    color: var(--ncf-theme, #00166B);
    outline: none;
}

.mod-form .ncf-pending-link:hover::before,
.mod-form .ncf-pending-link:focus-visible::before {
    color: var(--ncf-theme, #00166B);
}

@media (max-width: 768px) {
    .mod-form .ncf-pending-toggle {
        padding: 12px 14px;
    }
    .mod-form .ncf-pending-link {
        font-size: 13px;
        padding: 8px 14px 8px 12px;
    }
}
