/* ==========================================================
   DEXCONT — Calculadora de Custo para Abrir CNPJ
   Reaproveita o design system de css/style.css (cores, fontes,
   botões, espaçamentos). Este arquivo cobre apenas o que é
   específico desta página.

   PALETA: azul-marinho profundo como cor principal (fundos
   estruturais escuros) + teal/turquesa já existente no projeto
   como cor de destaque (botões, ícones, links, checks, estados
   selecionados). Não usa verde-petróleo como fundo principal.
   Variável criada apenas neste arquivo — não altera
   css/style.css nem index.html.
   ========================================================== */
:root {
  --dex-navy: #0A1B31;
  --dex-navy-2: #13294a;
  --dex-teal: #43B39D;
}

/* ---------- Header / Hero desta página ---------- */
.hero-wrapper.ccc-hero {
  background: linear-gradient(160deg, var(--dex-navy) 0%, var(--dex-navy-2) 55%, var(--dex-navy) 100%);
}
.ccc-hero .dropdown a:hover { color: var(--dex-navy); }
.ccc-hero .btn-primary { color: var(--dex-navy); }
.ccc-hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; }
.ccc-hero .hero-media { align-self: center; }
.ccc-hero .hero-photo { aspect-ratio: 3/4; }

/* ==========================================================
   SEÇÃO PRINCIPAL DA CALCULADORA
   ========================================================== */
.ccc-calc-section { padding: 100px 0; background: var(--gray-50); }
.ccc-calc-header { max-width: 640px; margin: 0 auto 50px; }
.ccc-calc-section [hidden] { display: none !important; }

.ccc-form-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  padding: 44px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.ccc-question { display: flex; flex-direction: column; gap: 14px; }
.ccc-label { font-weight: 700; font-size: 15.5px; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.ccc-label i { color: var(--dex-teal); font-size: 14px; }
.ccc-optional { font-weight: 500; color: var(--gray-500); font-size: 13px; }
.ccc-help { font-size: 13px; color: var(--gray-500); display: flex; align-items: center; gap: 6px; }
.ccc-help i { color: var(--dex-teal); }

.ccc-input {
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s ease;
  width: 100%;
}
.ccc-input:focus { outline: none; border-color: var(--dex-teal); }

/* Check discreto em teal quando o campo é preenchido */
.ccc-question.is-filled .ccc-label::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--dex-teal);
  font-size: 12px;
  margin-left: 4px;
}
.ccc-question.is-filled .ccc-currency-field,
.ccc-question.is-filled .ccc-input { border-color: var(--dex-teal); }

/* Campo moeda */
.ccc-currency-field {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.ccc-currency-field:focus-within { border-color: var(--dex-teal); }
.ccc-currency-field span {
  background: var(--gray-50);
  color: var(--gray-500);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 14px;
  border-right: 1.5px solid var(--gray-300);
}
.ccc-currency-field input {
  border: none;
  flex: 1;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
}
.ccc-currency-field input:focus { outline: none; }

/* Autocomplete (cidade / atividade) */
.ccc-autocomplete { position: relative; }
.ccc-autocomplete-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-height: 240px;
  overflow-y: auto;
  z-index: 30;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ccc-autocomplete-list li {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.ccc-autocomplete-list li:hover,
.ccc-autocomplete-list li.active { background: #eaf6f3; color: var(--dex-navy); }
.ccc-autocomplete-list li.ccc-autocomplete-empty { color: var(--gray-500); cursor: default; }
.ccc-autocomplete-list li.ccc-autocomplete-empty:hover { background: none; }

.ccc-nav-single { display: flex; justify-content: center; margin-top: 10px; }
.ccc-nav-single .btn { min-width: 280px; justify-content: center; }

/* ---------- Loader discreto ---------- */
.ccc-processing { text-align: center; padding: 60px 24px; max-width: 480px; margin: 0 auto; }
.ccc-spinner {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 4px solid var(--gray-100);
  border-top-color: var(--dex-teal);
  margin: 0 auto 20px;
  animation: cccSpin 0.8s linear infinite;
}
@keyframes cccSpin { to { transform: rotate(360deg); } }
.ccc-processing p { color: var(--gray-700); font-size: 14.5px; font-weight: 600; }

/* ==========================================================
   RESULTADO
   ========================================================== */
.ccc-result { max-width: 780px; margin: 50px auto 0; display: flex; flex-direction: column; gap: 32px; }
.ccc-result-header { max-width: 640px; margin: 0 auto; }

/* Resumo da simulação */
.ccc-summary-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}
.ccc-summary-items { display: flex; flex-wrap: wrap; gap: 28px; }
.ccc-summary-item { display: flex; flex-direction: column; gap: 4px; }
.ccc-summary-item span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-500); font-weight: 700; }
.ccc-summary-item strong { font-size: 15px; color: var(--dex-navy); }

/* Tabela de custos */
.ccc-table-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  padding: 32px;
}
.ccc-table-wrap { overflow-x: auto; }
.ccc-cost-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.ccc-cost-table th, .ccc-cost-table td {
  padding: 14px 16px;
  font-size: 14px;
  text-align: right;
  border-bottom: 1px solid var(--gray-100);
}
.ccc-cost-table th:first-child, .ccc-cost-table td:first-child { text-align: left; color: var(--gray-700); }
.ccc-cost-table thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--gray-500); border-bottom: 2px solid var(--gray-100); }
.ccc-cost-table tbody td { font-weight: 600; color: var(--ink); }
.ccc-cost-table th.ccc-col-dexcont, .ccc-cost-table td.ccc-col-dexcont { background: #eaf6f3; color: var(--dex-navy); }
.ccc-cost-table tr.ccc-total-row td { font-weight: 800; font-size: 15px; border-top: 2px solid var(--ink); border-bottom: none; background: var(--gray-50); }
.ccc-cost-table tr.ccc-total-row td.ccc-col-dexcont { background: #d7eee9; }

/* Versão em cards (mobile) */
.ccc-cost-cards { display: none; flex-direction: column; gap: 14px; margin-top: 16px; }
.ccc-cost-card {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.ccc-cost-card h4 { font-size: 14px; color: var(--gray-700); margin-bottom: 10px; }
.ccc-cost-card-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.ccc-cost-card-row span:first-child { color: var(--gray-500); }
.ccc-cost-card-row span:last-child { font-weight: 700; color: var(--ink); }
.ccc-cost-card-row.ccc-col-dexcont span:last-child { color: var(--dex-navy); }
.ccc-cost-card.ccc-total-card { border-color: var(--dex-teal); background: var(--gray-50); }
.ccc-cost-card.ccc-total-card .ccc-cost-card-row span:last-child { font-weight: 800; font-size: 15.5px; }

.ccc-disclaimer { background: var(--gray-50); }

/* Captura de lead */
.ccc-lead-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 40px;
}
.ccc-lead-card h3 { font-size: 22px; margin-bottom: 10px; text-align: center; }
.ccc-lead-card > p { font-size: 14.5px; color: var(--gray-700); text-align: center; margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; }
.ccc-lead-form { display: flex; flex-direction: column; gap: 18px; }
.ccc-lead-form input {
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: inherit;
  font-size: 14.5px;
  width: 100%;
}
.ccc-lead-form input:focus { outline: none; border-color: var(--dex-teal); }
.ccc-lead-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.ccc-lead-actions .btn { flex: 1; min-width: 220px; }

/* Vale a pena abrir CNPJ? */
.ccc-pj-block {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.ccc-pj-block h3 { font-size: 19px; margin-bottom: 10px; }
.ccc-pj-block p { font-size: 14px; color: var(--gray-700); max-width: 560px; margin: 0 auto 20px; }
.ccc-pj-block .btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.ccc-pj-block .btn[disabled]:hover { transform: none; box-shadow: none; }

.ccc-result-actions { display: flex; justify-content: center; }

/* ==========================================================
   O QUE PODE FAZER PARTE DO CUSTO (reaproveita .positioning/.pillar)
   ========================================================== */
.ccc-edu { background: var(--white); }
.ccc-edu-grid { grid-template-columns: repeat(4, 1fr); margin-top: 50px; }

/* ==========================================================
   POR QUE ABRIR COM A DEXCONT
   ========================================================== */
.ccc-why { padding: 100px 0; background: var(--gray-50); }
.ccc-why-grid { margin-top: 50px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ccc-why-item {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ccc-why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.ccc-why-item i { font-size: 24px; color: var(--dex-teal); margin-bottom: 16px; display: block; }
.ccc-why-item h3 { font-size: 16px; margin-bottom: 8px; }
.ccc-why-item p { font-size: 13.5px; color: var(--gray-700); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  .ccc-edu-grid { grid-template-columns: repeat(2, 1fr); }
  .ccc-why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .ccc-calc-section, .ccc-why { padding: 60px 0; }
  .ccc-form-card { padding: 28px 22px; }
  .ccc-nav-single .btn { width: 100%; min-width: 0; }
  .ccc-hero-ctas { flex-direction: column; }
  .ccc-hero-ctas .btn { width: 100%; justify-content: center; }
  .ccc-edu-grid { grid-template-columns: 1fr; }
  .ccc-why-grid { grid-template-columns: 1fr; }
  .ccc-summary-card { flex-direction: column; align-items: flex-start; }
  .ccc-summary-items { gap: 18px; }
  .ccc-table-block { padding: 22px 18px; }
  .ccc-table-wrap { display: none; }
  .ccc-cost-cards { display: flex; }
  .ccc-lead-card { padding: 28px 20px; }
  .ccc-lead-actions { flex-direction: column; }
  .ccc-lead-actions .btn { width: 100%; min-width: 0; }
  .ccc-pj-block { padding: 26px 20px; }
  .ccc-pj-block .btn { width: 100%; justify-content: center; }
}

/* ==========================================================
   OVERRIDE DE COR — TEAL EXATO DA IDENTIDADE (SOMENTE NESTA PÁGINA)
   css/style.css define o destaque padrão do site (.text-accent,
   .eyebrow, .section-eyebrow, .pillar i, .dropdown a i, .faq-question i,
   .btn-primary, .btn-outline-light:hover, .footer-legal a:hover) usando
   --green-vibrant/--green-vibrant-dark/--green-soft (identidade
   institucional verde-petróleo de index.html). Esta página usa a
   identidade azul-marinho + teal publicada pela DexCont, então os
   mesmos componentes são re-apontados aqui para --dex-teal — escopados
   com o seletor "body.ccc-page", que só existe nesta página. Nenhuma
   regra em css/style.css é alterada e nenhuma outra página é afetada. */
body.ccc-page .text-accent,
body.ccc-page .eyebrow,
body.ccc-page .section-eyebrow,
body.ccc-page .section-eyebrow.light,
body.ccc-page .pillar i,
body.ccc-page .dropdown a i,
body.ccc-page .faq-question i {
  color: var(--dex-teal);
}
body.ccc-page .dropdown a:hover {
  background: #eaf6f3;
  color: var(--dex-navy);
}
body.ccc-page .faq-item.open .faq-question {
  background: #eaf6f3;
}
body.ccc-page .btn-primary {
  background: var(--dex-teal);
  color: var(--dex-navy);
}
body.ccc-page .btn-primary:hover {
  background: #379984;
  color: var(--white);
}
body.ccc-page .btn-outline-light:hover {
  border-color: var(--dex-teal);
}
body.ccc-page .footer-legal a:hover {
  color: var(--dex-teal);
}
body.ccc-page .whatsapp-icon {
  color: var(--dex-teal);
}
