/* Diagnóstico de Risco Cibernético para EFPCs: co-branding Consepro e FT Consult. */
:root {
  --verde-escuro: #062421;
  --verde-escuro-2: #0b2a27;
  --verde-medio: #2f5d50;
  --verde-claro: #e6efec;
  --dourado: #c8a96a;
  --fundo: #f9fbfa;
  --texto: #14211f;
  --texto-suave: #4a5a57;
  --borda: #b9c8c4;
  --erro: #a3231c;
  --raio: 10px;
  --serifa: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--texto);
  background: var(--verde-escuro);
}

img {
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  font-family: var(--serifa);
  font-weight: normal;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

h1 {
  font-size: 1.9rem;
}
h2 {
  font-size: 1.6rem;
}
h3 {
  font-size: 1.25rem;
}

:focus-visible {
  outline: 3px solid var(--verde-medio);
  outline-offset: 2px;
}

.pular {
  position: absolute;
  left: -10000px;
  top: 0;
  background: var(--dourado);
  color: var(--verde-escuro);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.pular:focus {
  left: 1rem;
}

/* Topo e rodapé */
.topo {
  background: linear-gradient(180deg, var(--verde-escuro) 0%, var(--verde-escuro-2) 100%);
  border-bottom: 2px solid var(--dourado);
  padding: 1.25rem 1rem;
}
.topo-conteudo {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}
.logo-consepro {
  width: 180px;
}
.topo-titulo {
  margin: 0;
  color: var(--dourado);
  font-family: var(--serifa);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.rodape {
  color: #d9e4e1;
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  font-size: 0.85rem;
}
.rodape p {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-ft {
  width: 110px;
}

/* Área principal */
.principal {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
}
.painel {
  background: var(--fundo);
  border-radius: var(--raio);
  padding: 1.5rem 1.25rem;
  box-shadow: 0 6px 24px rgb(0 0 0 / 25%);
}
.painel:focus,
[tabindex='-1']:focus {
  outline: none;
}
.destaque {
  font-size: 1.1rem;
}
.nota {
  color: var(--texto-suave);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}
.lista-inicio {
  padding-left: 1.2rem;
  margin: 0 0 1.5rem;
}
.lista-inicio li {
  margin-bottom: 0.4rem;
}

/* Botões */
.botao {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: var(--raio);
  border: 2px solid var(--verde-medio);
  background: var(--verde-medio);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s ease;
}
.botao:hover {
  background: var(--verde-escuro-2);
}
.botao:disabled {
  opacity: 0.6;
  cursor: wait;
}
.botao-secundario {
  background: transparent;
  color: var(--verde-medio);
}
.botao-secundario:hover {
  background: var(--verde-claro);
}

/* Progresso */
.progresso {
  margin-bottom: 1.25rem;
}
.progresso-texto {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--verde-medio);
}
progress {
  appearance: none;
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 5px;
  background: var(--verde-claro);
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: var(--verde-claro);
}
progress::-webkit-progress-value {
  background: var(--verde-medio);
}
progress::-moz-progress-bar {
  background: var(--verde-medio);
}

/* Campos */
.campos {
  display: grid;
  gap: 1.4rem;
  margin-bottom: 1.5rem;
}
.campo {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.campo label,
.campo legend {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  padding: 0;
}
.opcional {
  font-weight: normal;
  color: var(--texto-suave);
}
.ajuda {
  margin: 0 0 0.5rem;
  color: var(--texto-suave);
  font-size: 0.92rem;
}
.campo input[type='text'],
.campo input[type='email'] {
  width: 100%;
  font: inherit;
  min-height: 48px;
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--borda);
  border-radius: 8px;
  background: #fff;
  color: var(--texto);
}
.campo-numero input[type='text'] {
  max-width: 14rem;
}
.campo input:focus-visible {
  border-color: var(--verde-medio);
}
.opcoes {
  display: grid;
  gap: 0.5rem;
}
.opcoes-linha {
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
}
.campo .opcao {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: normal;
  margin: 0;
  min-height: 48px;
  padding: 0.55rem 0.8rem;
  border: 2px solid var(--borda);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.campo .opcao:has(input:checked) {
  border-color: var(--verde-medio);
  background: var(--verde-claro);
  font-weight: 600;
}
.opcao input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--verde-medio);
}
.opcao-aceite {
  align-items: flex-start;
}
.opcao-aceite input {
  margin-top: 0.2rem;
}
.erro {
  color: var(--erro);
  font-weight: 600;
  margin: 0.4rem 0 0;
}
.erro::before {
  content: '! ';
}
.com-erro input[type='text'],
.com-erro input[type='email'],
.com-erro .opcao {
  border-color: var(--erro);
}
.erro-passo:not(:empty) {
  color: var(--erro);
  font-weight: 600;
  border-left: 4px solid var(--erro);
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  background: #fbeceb;
}
.navegacao {
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: space-between;
  gap: 0.75rem;
}
.navegacao .botao {
  flex: 1 1 10rem;
}
.isca {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Resultado */
.painel-resultado {
  display: grid;
  gap: 1.25rem;
}
.painel-resultado h2 {
  margin: 0;
}
.subtitulo {
  margin: 0;
  color: var(--texto-suave);
}
.cartao {
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 1.25rem;
  background: #fff;
}
.cartao-score {
  border-top: 4px solid var(--dourado);
  text-align: center;
}
.score {
  margin: 0.25rem 0;
  font-family: var(--serifa);
}
.score-numero {
  font-size: 4.5rem;
  line-height: 1;
}
.score-total {
  font-size: 1.4rem;
  color: var(--texto-suave);
}
.score-nivel {
  font-size: 1.15rem;
  margin: 0.5rem 0;
}
.selo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.6rem;
  border: 2px solid var(--cor-nivel, var(--borda));
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.selo-ponto {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--cor-nivel, var(--borda));
}
.escala {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--texto-suave);
}
.escala .atual {
  color: var(--texto);
  font-weight: 700;
}
.blocos,
.riscos {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.blocos {
  list-style: none;
}
.bloco-topo {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-bottom: 0.35rem;
}
.bloco-titulo {
  font-weight: 600;
}
.barra {
  height: 12px;
  border-radius: 6px;
  background: var(--verde-claro);
  overflow: hidden;
}
.barra-valor {
  height: 100%;
  min-width: 2px;
  background: var(--cor-nivel, var(--verde-medio));
}
.riscos {
  padding-left: 1.4rem;
}
.riscos li p {
  margin: 0.15rem 0 0;
}
.risco-area {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--verde-medio);
}
.risco-resposta {
  font-size: 0.85rem;
  color: var(--texto-suave);
}
.seguro-itens dt {
  font-weight: 600;
}
.seguro-itens dd {
  margin: 0 0 0.6rem;
}
.seguro-indicador {
  margin: 0.5rem 0 0;
}
.contato-neutro {
  margin: 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--dourado);
  background: var(--verde-claro);
  border-radius: 0 var(--raio) var(--raio) 0;
}
.linha-link {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.linha-link input {
  flex: 1 1 14rem;
  min-width: 0;
  font: inherit;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--borda);
  border-radius: 8px;
  background: var(--fundo);
}
.rotulo-link {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.copiado {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
}
.acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.marca-dagua {
  display: none;
}

/* Painel administrativo */
.principal-largo {
  max-width: 1200px;
}
.tabela-rolagem {
  position: relative;
  overflow-x: auto;
}
.tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.tabela th,
.tabela td {
  text-align: left;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--borda);
  vertical-align: top;
}
.tabela th button {
  font: inherit;
  font-weight: 700;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--texto);
}
.detalhe td {
  background: var(--verde-claro);
}
.detalhe dl {
  display: grid;
  grid-template-columns: minmax(10rem, 22rem) 1fr;
  gap: 0.25rem 1rem;
  margin: 0 0 1rem;
}
.detalhe dt {
  font-weight: 600;
}
.detalhe dd {
  margin: 0;
}
.detalhe h3 {
  font-size: 1rem;
  margin-top: 0.5rem;
}
.barra-admin {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 720px) {
  .painel {
    padding: 2rem 2.25rem;
  }
  h1 {
    font-size: 2.3rem;
  }
  .logo-consepro {
    width: 220px;
  }
  .navegacao .botao {
    flex: 0 0 auto;
    min-width: 11rem;
  }
}

@media (max-width: 560px) {
  .detalhe dl {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Impressão (Exportar PDF) */
@media print {
  @page {
    margin: 14mm;
  }
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body {
    background: #fff;
  }
  .pular,
  .nao-imprimir,
  #inicio,
  #formulario,
  #aviso,
  #carregando {
    display: none !important;
  }
  .principal {
    max-width: none;
    padding: 0;
  }
  .painel {
    box-shadow: none;
    padding: 0;
  }
  .cartao {
    break-inside: avoid;
  }
  .rodape {
    background: var(--verde-escuro);
  }
  .marca-dagua {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 3rem 4rem;
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    transform: rotate(-30deg);
    opacity: 0.1;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--verde-escuro);
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
  }
}

.so-leitor {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.topo-largo .topo-conteudo {
  max-width: 1200px;
}
.tabela caption {
  text-align: left;
}
