/* --- Cores de Alerta para Data de Conclusão --- */
.limite-conclusao-warning {
    color: orange !important;
    font-weight: bold;
}
.limite-conclusao-danger {
    color: red !important;
    font-weight: bold;
}

/* --- Reset Básico e Fontes --- */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Franklin Gothic Book', Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* --- Cabeçalho Superior --- */
.main-header {
    grid-area: header;
    background-color: #36738C;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 60px;
    border-bottom: 3px solid #36738C;
    flex-direction: row; /* agora logo à esquerda e Home à direita */
}

.header-left { display: flex; align-items: center; }
.header-left .logo { font-weight: bold; font-size: 1.2em; margin-right: 20px; }
.header-left img {
    width: 150px;
    height: auto;
}

/* --- Barra Lateral --- */
.sidebar {
    grid-area: sidebar;
    background-color: #36738C;
    padding-top: 20px;
}
.sidebar-nav { list-style: none; padding: 0; margin: 0; text-align: center; }
.sidebar-nav li { padding: 15px 0; color: white; font-size: 1.5em; cursor: pointer; }

/* --- Conteúdo Principal --- */
.main-content {
    grid-area: main;
    padding: 25px 10px;
    overflow-y: auto;
    padding-bottom: 60px; /* Espaço para o rodapé fixo */
}

.content-header h1 { margin: 0 0 20px 0; font-size: 1.8em; color: #444; }

/* --- Bloco de estilo para o cabeçalho de informações --- */
.student-info {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}
.info-item {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-basis: 200px;
}
.info-item .label {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 6px;
}
.info-item .value,
.info-item input[type="text"],
.info-item input[type="email"],
.info-item input[type="tel"],
.info-item select,
.info-item textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Franklin Gothic Book', Arial, sans-serif;
    font-size: 1em;
    min-height: 40px;
}
.info-item input[readonly],
.info-item textarea[readonly],
.info-item div.value[readonly] {
    background-color: #e9ecef;
    cursor: not-allowed;
    /* font-weight: bold; */ /* LINHA REMOVIDA */
}
#cnae.value[readonly] {
    height: 105px;
    overflow-y: auto;
}

/* --- Rodapé --- */
.main-footer-bottom {
    text-align: center;
    padding: 15px;
    background-color: #36738C;
    color: white;
    font-size: 0.9em;
    width: calc(100% - 60px);
    box-sizing: border-box;
    border-top: 1px solid #4a8a9c;
    position: fixed;
    bottom: 0;
    left: 60px;
    z-index: 1000;
}

/* --- Botão de Ação --- */
.action-button {
    padding: 8px 16px;
    font-size: 1em;
    font-weight: bold;
    color: white;
    background-color: #d32f2f;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: auto;
    height: 38px;
    transition: background-color 0.3s ease;
}
.action-button:hover:not(:disabled) { background-color: #b71c1c; }
.action-button:disabled { background-color: #ccc; cursor: not-allowed; }

/* --- Estilos para Conteúdo de Instruções (Página de Cadastro) --- */
.instructions-container {
    background-color: #fff;
    padding: 12px 14px 6px 14px !important;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 8px !important;
    line-height: 1.28 !important;
}
.instructions-container h1, .instructions-container h2, .instructions-container h3 {
    font-size: 1.6em;
    color: #333;
    margin-top: 4px !important;
    margin-bottom: 6px !important;
    line-height: 1.15 !important;
}
.instructions-container h2 { font-size: 1.3em; color: #333; }
.instructions-container p { margin: 4px 0 !important; }
.instructions-container ul, .instructions-container ol {
    padding-left: 20px;
    margin: 4px 0 4px 18px !important;
}
.instructions-container li { margin: 2px 0 !important; }
.instructions-container strong { color: #333; }
.instructions-container summary { cursor: pointer; list-style: none; padding: 5px 0; margin: 0 !important; }
.instructions-container summary::-webkit-details-marker { display: none; }
.instructions-container summary h1, .instructions-container summary h2 { display: inline-block; position: relative; padding-left: 25px; margin: 0; }
.instructions-container summary h1::before, .instructions-container summary h2::before {
    content: '►'; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%); font-size: 0.6em; transition: transform 0.2s ease-in-out;
}
.instructions-container details[open] > summary h1::before, .instructions-container details[open] > summary h2::before { transform: translateY(-50%) rotate(90deg); }
.instructions-container .instructions-content { padding-top: 15px; }
.instructions-table { width: 100%; border-collapse: collapse; margin: 6px 0 !important; }
.instructions-table th, .instructions-table td {
    border: 1px solid #ddd;
    padding: 4px 6px !important;
    text-align: left;
    vertical-align: middle;
    line-height: 1.2 !important;
}
.instructions-table thead th { background-color: #e9ecef; font-weight: bold; }
.form-dados-cadastrais { gap: 0; }
.form-dados-cadastrais .info-item .label { margin-bottom: 0; }
.form-dados-cadastrais .info-row:nth-child(odd) { margin-bottom: 2px; }
.form-dados-cadastrais .info-row:nth-child(even) { margin-bottom: 10px; }
.form-dados-cadastrais .info-row:last-child { margin-bottom: 0; }
.form-elegibilidade { gap: 0; margin: 4px 0 !important; }

/* --- Termos e Condições --- */
#terms-agreement-section {
    margin-top: 10px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
}
#terms-agreement-section p {
    font-size: 0.9em;
    line-height: 1.3;
    color: #333;
    margin-top: 8px;
    margin-bottom: 8px;
}
.terms-checkbox {
    margin-bottom: 10px;
}
#terms-agreement-section .terms-buttons {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}
#concordo-btn {
    background-color: #36738C;
}
#nao-concordo-btn {
    background-color: #8C3636;
}

/* --- Tabela de Responsáveis --- */
#responsavel-section-content {
    padding: 20px 20px 10px 20px;
}
.responsavel-table-controls { margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.table-control-btn {
    width: 34px; height: 34px; background-color: #f0f0f0; border: 1px solid #c5c5c5;
    border-radius: 4px; cursor: pointer; font-size: 20px; color: #555;
    display: inline-flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0;
}
.table-control-btn:hover { background-color: #e5e5e5; }
.table-control-btn svg { fill: #555; }
#responsaveis-table td, #responsaveis-table th { vertical-align: middle; }
#responsaveis-table tbody tr:hover { background-color: #f7f9fc; }
#responsaveis-table input[type="checkbox"] { cursor: pointer; transform: scale(1.2); }
#responsaveis-table tr[data-autofill="header"] td { vertical-align: middle; }
#responsaveis-table td:first-child, #responsaveis-table th:first-child { text-align:center; }
#responsaveis-table tr[data-autofill="header"] input,
#responsaveis-table tr[data-autofill="header"] select {
  border:none !important; background:transparent !important; box-shadow:none !important;
  outline:none !important; font:inherit; color:inherit; width:100%; padding:0; margin:0;
}
.table-responsavel-badge { font-weight:700; color:#d32f2f; margin-left:6px; }
#responsaveis-table #auto-senha-mask { text-align: center; letter-spacing: 1px; }
#responsaveis-table td.col-responsavel, #responsaveis-table tr[data-autofill="header"] td.auto-responsavel { text-align: center; }
#responsaveis-table td.col-responsavel input[type="checkbox"],
#responsaveis-table tr[data-autofill="header"] td.auto-responsavel input[type="checkbox"]{ display: block; margin: 0 auto; }
.th-responsavel-select { width: 5%; }
.th-responsavel-nome { width: 20%; }
.th-responsavel-resp { width: 10%; }
.th-responsavel-cargo { width: 14%; }
.th-responsavel-email { width: 18%; }
.th-responsavel-senha { width: 8%; }
.th-responsavel-tel { width: 12%; }
.th-responsavel-area { width: 13%; }


/* --- Popups --- */
.popup-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.7);
  z-index: 9999; display: none; justify-content: center; align-items: center;
}
.popup-content {
  position: relative; width: 90%; max-width: 800px; background: white; border-radius: 8px;
  overflow: hidden; box-shadow: 0 0 20px rgba(0,0,0,0.5); display: flex; flex-direction: column;
}
.popup-header {
    background-color: #f7f9fc; padding: 15px 20px; border-bottom: 1px solid #e0e6f1;
    display: flex; justify-content: space-between; align-items: center;
}
.popup-header h3 { margin: 0; font-size: 1.2em; color: #34495e; }
.popup-close-btn { background: none; border: none; font-size: 24px; line-height: 1; cursor: pointer; color: #888; }
#responsavel-form .popup-body { padding: 25px; display: flex; flex-direction: column; gap: 18px; }
#responsavel-form .info-item .label { margin-bottom: 6px; font-size: 0.85em; font-weight: bold; color: #555; }
#responsavel-form .info-row { align-items: flex-start; }
.popup-footer {
    background-color: #f7f9fc; padding: 15px 20px; border-top: 1px solid #e0e6f1;
    text-align: right; display: flex; justify-content: flex-end; gap: 10px;
}

/* --- Placeholders e Foco --- */
#cnpj::placeholder, #cep::placeholder, #numero::placeholder, #complemento::placeholder,
#nomeidentificacao::placeholder, #nomeresponsavel::placeholder, #cargo::placeholder, #website::placeholder {
    color: #9aa3a5; opacity: 1; font-style: italic;
}
#cnpj, #nomeidentificacao, #nomeresponsavel, #cargo, #website, #tipo-avaliacao { background-color: #fff; }
#cnpj:focus, #cep:focus, #numero:focus, #complemento:focus,
#nomeidentificacao:focus, #nomeresponsavel:focus, #cargo:focus, #website:focus, #tipo-avaliacao:focus {
    border-color: #36738C;
    outline: none;
    box-shadow: none; /* CORRIGIDO: Remove o brilho azul para deixar o fundo branco */
}

/* ==== Mantém o fundo branco mesmo após preenchido/autofill ==== */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
    box-shadow: 0 0 0px 1000px #fff inset !important;
    -webkit-text-fill-color: inherit !important;
    caret-color: inherit !important;
    transition: background-color 9999s ease-in-out 0s !important;
}


/* Ajuste específico de altura para campos "Número" e "Complemento" */
.info-item:has(#numero) .label, .info-item:has(#complemento) .label{ margin-bottom: 4px !important; }
#numero, #complemento{ padding-top: 4px !important; padding-bottom: 4px !important; line-height: 1.1 !important; /* font-weight: bold !important; */ }
#numero::placeholder, #complemento::placeholder{ /* font-weight: 700 !important; */ }
.info-row:has(#numero), .info-row:has(#complemento){ gap: 10px !important; }

/* --- Layouts de Grid para Seções de Perfil Organizacional --- */
.setor-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}
.setor-column {
    flex: 1;
    min-width: 200px;
    padding-left: 15px;
}
.setor-column:not(:first-child) {
     border-left: 1px solid #e0e6f1;
}
.setor-column p {
    font-size: 0.9em;
    margin-top: 5px;
    margin-bottom: 10px;
}
.setor-column ul {
    list-style-type: none;
    padding-left: 0;
}
.setor-column ul li {
    margin-bottom: 5px;
}
.setor-column strong {
    font-size: 1.1em;
}
.setor-column .sub-list {
    padding-left: 25px;
    list-style-type: none;
    margin-top: 8px;
}
#btnEditarEndereco {
    background-color: #36738C;
}
#cargos_board_list {
    display: none;
    padding-left: 25px;
    margin-top: 10px;
}
#evaluation-controls {
    margin-top: 20px;
}
#final-action-row {
    margin-top: 20px;
    justify-content: center;
}
#final-action-row .info-item {
    text-align: center;
}
.popup-footer-style {
    background-color: #f7f7f7;
    padding: 10px 15px;
    border-top: 1px solid #ddd;
    text-align: left;
}
#send-qualification-email-btn {
    background-color: #36738C;
    height: auto;
    padding: 8px 12px;
}
#send-qualification-email-btn svg {
    vertical-align: middle;
    margin-right: 8px;
}
.popup-header-style {
    background-color: #f7f7f7;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.close-btn-style {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    line-height: 1;
}
.email-field-style {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 8px 2px;
}
.email-field-style label {
    color: #777;
    margin-right: 10px;
    font-size: 0.9em;
}
.email-field-style input {
    border: none;
    width: 100%;
    font-size: 0.9em;
    background: transparent;
}
#email-subject {
    font-weight: bold;
}
#email-body {
    width: 100%;
    height: 150px;
    border: none;
    margin-top: 15px;
    resize: vertical;
    font-family: 'Franklin Gothic Book', Arial, sans-serif;
    font-size: 0.95em;
    padding: 2px;
}
#qualificationPopupOverlay {
    display: none;
    z-index: 10001;
}
#responsavel-popup-overlay {
    display: none;
}
.no-style-container {
    background: none;
    border: none;
    padding: 0;
}
/* --- MARCADOR DE CAMPO OBRIGATÓRIO --- */
.required-marker {
    display: inline-block;
    margin-left: 5px;
    padding: 2px 8px;
    font-size: 0.75em;
    font-weight: bold;
    color: #d32f2f;
    background-color: #fff;
    border: 1px dashed #d32f2f;
    border-radius: 12px;
    vertical-align: middle;
}

/* --- ESTILOS DE VALIDAÇÃO --- */
.error-message {
    color: #d32f2f;
    font-size: 0.8em;
    font-style: italic;
    margin-top: 4px;
}
.is-invalid {
    border-color: #d32f2f !important;
}

/* Adiciona a borda vermelha aos campos inválidos dentro do popup também */
.popup-body .is-invalid {
    border-color: #d32f2f !important;
}


/* Estilos para as novas listas com inputs */
.form-section ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 10px;
}
.form-section li {
    margin-bottom: 8px;
}
.form-section label {
    cursor: pointer;
}
.form-section input[type="text"] {
    border: none;
    border-bottom: 1px solid #999;
    margin-left: 5px;
}
.form-section input[type="text"]:focus {
    outline: none;
    border-bottom: 1px solid #36738C;
}

/* --- CSS PARA A SEÇÃO DE LOCALIZAÇÃO --- */
.location-option {
    margin-bottom: 15px;
}
.location-option > label {
    font-weight: bold;
    font-size: 1.1em;
}
.location-details {
    padding: 10px 0 10px 25px;
}
.location-details h4 {
    margin-top: 10px;
    margin-bottom: 8px;
}
.location-details ul {
    list-style-type: none;
    padding-left: 0;
}
 .location-details ul li {
    margin-bottom: 6px;
}

/* Layout LATAM */
.latam-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.latam-column {
    min-width: 160px;
    padding-left: 15px;
}
.latam-column:not(:first-child) {
    border-left: 1px solid #e0e0e0;
}
.latam-column strong {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}
.latam-column summary {
    cursor: pointer;
}

/* Layout Global */
.global-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
}
.global-column {
    flex: 1;
    min-width: 180px;
    padding-left: 15px;
}
.global-column:not(:first-child) {
    border-left: 1px solid #e0e0e0;
}
.global-column h4 {
    font-size: 1.1em;
    margin-top: 0;
}
.instructions-content h4 {
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 1em;
    color: #333;
}
/* Reduz espaçamento entre título e parágrafo nas seções 5 e 6 */
#section-5 > .instructions-content > p:first-of-type,
#section-6 > .instructions-content > p:first-of-type {
    margin-top: 5px;
}

/* --- ESTILOS PARA ÍCONES DE SETA EM LISTAS (ATUALIZADO) --- */
.location-details summary,
.setor-column summary {
    list-style: none; /* Oculta o marcador padrão no Firefox */
    cursor: pointer;
}

.location-details summary::-webkit-details-marker,
.setor-column summary::-webkit-details-marker {
    display: none; /* Oculta o marcador padrão no Chrome, Safari, Edge */
}

.location-details summary::before,
.setor-column summary::before {
    content: '► '; /* Ícone para o estado fechado */
    font-size: 0.9em;
}

.location-details details[open] > summary::before,
.setor-column details[open] > summary::before {
    content: '▼ '; /* Ícone para o estado aberto */
}

/* Garante que o texto do cabeçalho (strong, h4) fique na mesma linha que a seta */
.location-details summary > *,
.setor-column summary > * {
    display: inline;
    margin: 0;
}



/* === Autosave Indicator === */
.autosave-indicator{
  position: fixed;
  right: 20px;
  bottom: 88px; /* acima do botão flutuante */
  background: rgba(0,0,0,0.80);
  color: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  opacity: 0; 
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
  z-index: 9999;
}
.autosave-indicator.show{ opacity: 1; transform: translateY(0); }
.autosave-indicator.hidden{ opacity: 0; }
.autosave-indicator.error{ background: rgba(180,0,0,0.9); }

.is-hidden { display: none !important; }

/* --- Mantém o estilo para que a Seção 8 se pareça com as outras --- */
#section-8 > summary {
    padding: 5px 0;
    margin: 0;
}

#section-8 > summary h2 {
    /* Força o estilo do h2 a ser igual ao das outras seções */
    font-size: 1.3em;
    color: #333;
    display: inline-block;
    position: relative;
    padding-left: 25px;
    margin: 0;
    font-weight: bold; /* Garante que não fique em negrito extra */
}

/* Garante que a seta da Seção 8 seja igual às outras */
#section-8 > summary::before {
    content: '►';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6em;
    transition: transform 0.2s ease-in-out;
}

#section-8[open] > summary::before {
    transform: translateY(-50%) rotate(90deg);
}

#evaluation-controls-container {
    display: block !important; /* Garante visibilidade */
    padding: 20px 10px;
}

/* LINHA BRANCA ENTRE SEÇÕES */
.white-strip {
  width: 100%;
  height: 16px;
  background-color: #ffffff;
}

/* FAIXA BRANCA COM LOGO + LINKEDIN À DIREITA */
.footer-strip {
  background-color: #ffffff;
  border-top: 1px solid #dddddd;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-strip-logo img {
  height: 46px;
  display: block;
}

.footer-strip-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.linkedin-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #000000;
}

.linkedin-circle:hover {
  background-color: #000000;
  color: #ffffff;
}

/* RODAPÉ PRETO */
.footer-bottom {
  background-color: #000000;
  color: #ffffff;
  font-size: 11px;
  text-align: center;
  padding: 6px 8px 8px;
}

/* Responsivo (opcional, igual index) */
@media (max-width: 768px) {
  .footer-strip {
    flex-direction: row;
    padding: 14px 16px;
  }
}

    /* ============================================================
       1. VARIÁVEIS GERAIS E CORES
       ============================================================ */
    :root {
        --header-h: 100px;          /* Altura do topo */
        --footer-h: 120px;          /* Altura mínima do rodapé */
        --brand: #36738C;           /* Azul Xcellence */
        --brand-dark: #2b6276;      /* Hover */
        --agree: #007bff;           /* Azul Botão */
        --disagree: #dc3545;        /* Vermelho Botão */
    }

    /* ============================================================
       2. RESET E ESTRUTURA DE PÁGINA
       ============================================================ */
    html, body {
        height: auto !important;
        min-height: 100vh !important;
        margin: 0;
        padding: 0;
        overflow-x: hidden; /* Evita rolagem lateral */
        display: flex;
        flex-direction: column;
        font-family: 'Franklin Gothic Book', Arial, sans-serif;
    }

    /* Garante que o corpo da página empurre o rodapé */
    .page-container, main.main-content {
        flex: 1 0 auto;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Remove rolagens internas que quebram formulários longos */
    .instructions-container, .instructions-content, details, .student-info {
        max-height: none !important;
        overflow: visible !important;
        height: auto !important;
    }

    /* ============================================================
       3. HEADER (CABEÇALHO FIXO - ESTILO VIDRO)
       ============================================================ */
    header.main-header.new-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: var(--header-h);
        background: rgba(12, 12, 12, 0.6) !important; /* Transparência */
        backdrop-filter: blur(10px);                /* Vidro */
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 40px;
        z-index: 1000;
        box-sizing: border-box;
        border: none !important;
    }

    /* Logo */
    header.main-header.new-header .header-left img {
        height: 58px;
        width: auto;
        display: block;
    }

    /* Navegação */
    header.main-header.new-header .header-right nav {
        height: var(--header-h);
        display: flex;
        align-items: center;
    }
    header.main-header.new-header .header-right nav a {
        color: #fff;
        text-decoration: none;
        font-size: 18px;
        font-family: 'Franklin Gothic Book', Arial, sans-serif;
    }

    /* Compensação do Topo Fixo */
    main.main-content {
        padding-top: calc(var(--header-h) + 20px) !important;
    }

    /* ============================================================
       4. CONTEÚDO E FORMULÁRIOS
       ============================================================ */
    
    /* Centralização e Largura Expandida */
    .content-header, 
    .instructions-container {
        max-width: 2000px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 40px !important;
        padding-right: 40px !important;
        box-sizing: border-box !important;
    }

    /* Override específico para a seção de elegibilidade */
    #elegibilidade-container {
        max-width: none !important;
        margin-left: 20px !important;
        margin-right: 20px !important;
    }

    /* Estilo do Wrapper de Avaliação */
    .evaluation-wrapper {
        background-color: #ffffff;
        padding: 25px;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        margin-top: 20px;
    }

    /* Estilo do Token Input */
    #token-validacao {
        border: 1px solid #ccc;
        border-radius: 4px;
        padding: 8px 12px;
        width: 100%;
        box-sizing: border-box;
        font-size: 1em;
        background-color: #ffffff;
    }

    /* Texto de Erro/Destaque */
    .text-danger, .text-danger * {
        color: red !important;
        font-weight: bold;
    }

    /* ============================================================
       5. BOTÕES E INTERAÇÕES
       ============================================================ */
    
    /* Botão Flutuante de Salvar */
    #salvar-progresso-flutuante {
        position: fixed;
        bottom: 80px;
        right: 30px;
        z-index: 1001;
        padding: 12px 18px;
        background-color: #28a745;
        color: white;
        border: none;
        border-radius: 50px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        transition: background-color 0.3s ease;
    }
    #salvar-progresso-flutuante:hover { background-color: #218838; }

    /* Botões de Ação (Concordo/Não Concordo) */
    .btn-concordo, #concordo-btn, #btnEditarEndereco, #botao-principal-acao {
        background-color: var(--agree) !important;
        color: #fff !important;
        border: none !important;
    }
    
    .btn-nao-concordo, #nao-concordo-btn, #btnEnviarHomologacao {
        background-color: var(--disagree) !important;
        color: #fff !important;
        border: none !important;
    }

    button:hover { filter: brightness(0.92); }

    /* Inputs padrão (foco azul da marca) */
    input:focus, select:focus, textarea:focus {
        border-color: var(--brand) !important;
        outline: none;
    }

    /* ============================================================
       6. FOOTER (RODAPÉ PADRONIZADO)
       ============================================================ */
    
    footer, .footer-bottom, .footer-strip {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Linha Branca Separadora */
    .white-strip {
        width: 100%;
        height: 16px;
        background-color: #ffffff;
    }

    /* Faixa Logo + LinkedIn */
    .footer-strip {
        background-color: #ffffff;
        border-top: 1px solid #dddddd;
        padding: 20px 40px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .footer-strip-logo img { height: 46px; display: block; }

    /* LinkedIn Icon */
    .linkedin-circle {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 2px solid #000000;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        font-weight: 700;
        color: #000000;
        text-decoration: none;
    }
    .linkedin-circle:hover { background-color: #000000; color: #ffffff; }

    /* Rodapé Preto */
    .footer-bottom {
        background-color: #000000;
        color: #ffffff;
        font-size: 11px;
        text-align: center;
        padding: 10px;
        margin: 0;
    }

                /* --- 1. REMOÇÃO AGRESSIVA DA SETA/MARCADOR --- */
                /* Remove marcadores padrões de details/summary */
                #tabela-precos-container summary {
                    list-style: none !important;
                    display: flex; /* Garante que o H1 se comporte bem */
                    align-items: center;
                }
                /* Remove marcador específico do Chrome/Safari */
                #tabela-precos-container summary::-webkit-details-marker {
                    display: none !important;
                }
                /* Remove setas inseridas via CSS global (::before/::after) */
                #tabela-precos-container summary::before,
                #tabela-precos-container summary::after {
                    content: none !important;
                    display: none !important;
                }
                /* Ajusta o H1 para não ter recuos estranhos */
                #tabela-precos-container summary h1 {
                    padding: 0 !important;
                    margin: 0 !important;
                    border: none !important;
                }

                /* --- 2. CONFIGURAÇÕES GERAIS --- */
                #tabela-precos-container {
                    --primary-color: #1d4ed8;
                    --text-main: #111827;
                    --text-muted: #6b7280;
                    --border-color: #e5e7eb;
                    --bg-light: #ffffff;
                    --bg-white: #ffffff;
                }

                .pricing-section {
                    width: 100% !important;
                    margin: 0 !important;
                    padding: 30px 0; /* Espaçamento vertical interno */
                    font-family: system-ui, -apple-system, sans-serif;
                    color: var(--text-main);
                    box-sizing: border-box;
                }

                /* --- 3. FORÇAR CENTRALIZAÇÃO DO CABEÇALHO --- */
                .pricing-header-wrapper {
                    display: flex;
                    flex-direction: column;
                    align-items: center; /* Centraliza os itens horizontalmente */
                    justify-content: center;
                    width: 100%;
                    text-align: center;
                    margin-bottom: 40px;
                }

                .section-title {
                    font-size: 1.8rem;
                    margin: 0 0 15px 0; /* Margem inferior para separar do subtítulo */
                    text-align: center;
                    width: 100%;
                }

                .section-subtitle {
                    font-size: 1rem;
                    line-height: 1.5;
                    color: var(--text-muted);
                    margin: 0;
                    max-width: 800px; /* Limita a largura para leitura */
                    text-align: center; /* Garante alinhamento do texto */
                    padding: 0 10px; /* Evita encostar nas bordas em telas pequenas */
                }

                /* --- 4. GRID E COLUNAS --- */
                .pricing-grid {
                    display: grid;
                    grid-template-columns: 260px repeat(4, 1fr);
                    gap: 16px;
                    align-items: stretch;
                    width: 100%;
                }

                /* Funcionalidades (Esquerda) */
                .features-list {
                    display: flex;
                    flex-direction: column;
                    padding-top: 340px; 
                    position: relative; 
                }

                .feature-row-label {
                    padding: 12px 10px;
                    border-bottom: 1px solid var(--border-color);
                    font-size: 0.85rem;
                    font-weight: 600;
                    color: var(--text-main);
                    display: flex;
                    align-items: center;
                    height: 45px;
                    background-color: var(--bg-white);
                    box-sizing: border-box;
                }
                .feature-row-label:first-child { border-top-left-radius: 8px; }
                .feature-row-label:last-child { border-bottom-left-radius: 8px; border-bottom: none; }

                .features-header {
                    position: absolute;
                    width: 240px;
                    top: 140px; 
                    left: 0;
                }
                .features-header h3 { font-size: 1.1rem; margin-bottom: 8px; margin-top: 0; }
                .features-header p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

                /* Cards */
                .plan-column {
                    background: var(--bg-white);
                    border: 1px solid var(--border-color);
                    border-radius: 12px;
                    display: flex;
                    flex-direction: column;
                    transition: transform 0.2s, box-shadow 0.2s;
                    position: relative;
                    overflow: hidden;
                    width: 100%;
                }
                .plan-column:hover {
                    transform: translateY(-4px);
                    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
                    z-index: 2;
                }
                .plan-column.demo { border-style: dashed; }
                .plan-column.featured {
                    border: 2px solid var(--primary-color);
                    background-color: #feffff;
                }

                /* Header do Card */
                .plan-header {
                    padding: 24px 16px;
                    text-align: center;
                    height: 340px; 
                    display: flex;
                    flex-direction: column;
                    border-bottom: 1px solid var(--border-color);
                    background: linear-gradient(to bottom, #ffffff, #fafafa);
                    box-sizing: border-box;
                }

                .plan-chip {
                    display: inline-block;
                    padding: 4px 10px;
                    border-radius: 99px;
                    font-size: 0.7rem;
                    font-weight: 700;
                    text-transform: uppercase;
                    margin: 0 auto 12px auto;
                }
                .chip-default { background: #e5e7eb; color: #374151; }
                .chip-featured { background: #dbeafe; color: var(--primary-color); }
                .chip-hidden { visibility: hidden; }

                .plan-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; margin-top: 0; }
                .plan-cycle { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; min-height: 1.2em;}
                
                .plan-price-block { margin-bottom: 16px; min-height: 50px; }
                .plan-price-label { font-size: 0.85rem; color: var(--text-muted); display: block; }
                .plan-price-value { font-size: 1.1rem; font-weight: 700; color: var(--text-main); }
                .plan-price-sub { font-size: 0.75rem; color: var(--text-muted); }

                .plan-desc {
                    font-size: 0.85rem;
                    color: var(--text-muted);
                    margin-bottom: 16px;
                    line-height: 1.3;
                    flex-grow: 1;
                    margin-top: 0;
                }

                /* Checks */
                .plan-features-checks { display: flex; flex-direction: column; }
                .check-row {
                    height: 45px; 
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border-bottom: 1px solid var(--border-color);
                    font-size: 0.9rem;
                    color: var(--text-main);
                    box-sizing: border-box;
                }
                .check-row:nth-child(even) { background-color: #fcfcfc; }
                .check-row:last-child { border-bottom: none; }

                .icon-yes { color: #16a34a; font-weight: bold; }
                .icon-partial { color: #f59e0b; }
                .icon-no { color: #d1d5db; font-size: 1.2rem; }

                /* Botões */
                .btn-price {
                    width: 100%;
                    padding: 10px 0;
                    border-radius: 99px;
                    border: none;
                    font-size: 0.85rem;
                    font-weight: 600;
                    cursor: pointer;
                    transition: opacity 0.2s;
                    margin-top: auto;
                    text-transform: none; 
                }
                .btn-price:hover { opacity: 0.9; }
                .btn-demo { background: #e5e7eb; color: #111827; }
                .btn-green { background: #16a34a; color: #ffffff; }
                .btn-blue { background: #1d4ed8; color: #ffffff; }
                .btn-dark { background: #0f172a; color: #ffffff; }

                /* Responsividade */
                @media (max-width: 1100px) {
                    .pricing-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
                    .features-list { display: none; }
                    .plan-header { height: auto; border-bottom: none; }
                    .plan-features-checks { display: none; }
                }
                @media (max-width: 600px) {
                    .pricing-grid { grid-template-columns: 1fr; }
                }
