:root {
  /* Paleta oficial — identidade visual v1 (aprovada 24/07/2026) */
  --azul-noite: #0B132B;
  --azul-estrategico: #1E3A8A;
  --azul-eletrico: #2563EB;
  --violeta: #7C3AED;
  --off-white: #F5F7FB;
  --branco: #FFFFFF;

  --azul-marinho: var(--azul-noite);
  --azul-marinho-dark: #070b1a;
  --acento: var(--violeta);
  --bg: var(--branco);
  --bg-soft: var(--off-white);
  --text: #14181f;
  --text-muted: #5a6472;
  --border: #e1e4e9;
  --error: #c0392b;
  --radius: 12px;
  --max-width: 560px;
}

.site-header {
  display: flex;
  justify-content: center;
  padding: 4px 0 12px;
  flex-shrink: 0;
}
.site-header img {
  width: clamp(205px, 60vw, 270px);
  max-width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 640px) {
  .site-header { padding: 8px 0 20px; }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wizard {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 32px;
}

.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--acento);
  transition: width .25s ease;
}

#steps {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step {
  display: none;
  flex-direction: column;
  gap: 14px;
  animation: fadeIn .2s ease;
}

.step.active { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

h1 { font-size: 1.5rem; line-height: 1.3; margin: 0 0 4px; color: var(--azul-marinho); }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 4px; color: var(--azul-marinho); }

.subtitle { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 12px; }

.trust-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.trust-list li::before { content: "✓ "; color: var(--acento); font-weight: bold; }

.field-label { font-size: 0.85rem; color: var(--text-muted); }

.field-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text);
}
.field-input:focus {
  outline: none;
  border-color: var(--acento);
  background: var(--bg);
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  cursor: pointer;
  font-size: 0.95rem;
  transition: border-color .15s ease, background .15s ease;
}
.option-card input { accent-color: var(--acento); width: 18px; height: 18px; flex-shrink: 0; }
.option-card:has(input:checked) {
  border-color: var(--acento);
  background: #f1eefb;
}

.checkbox-inline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-top: 4px;
}
.checkbox-inline input { accent-color: var(--acento); width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.checkbox-consent { font-size: 0.9rem; }
.checkbox-consent a { color: var(--acento); }

.error-message {
  color: var(--error);
  font-size: 0.85rem;
  min-height: 1em;
  margin: 0;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 48px;
  text-align: center;
  text-decoration: none;
}
.btn-primary {
  background: var(--azul-marinho);
  color: #fff;
}
.btn-primary:hover { background: var(--azul-marinho-dark); }
.btn-primary:disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  flex-shrink: 0;
}
.nav-bar[hidden] { display: none; }

.step-indicator {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-status {
  min-height: 1.2em;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 12px;
}
.form-status.is-error { color: var(--error); }

.step-static {
  display: flex;
  text-align: left;
}

.next-steps-list {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.step-legal h2 {
  font-size: 1rem;
  margin-top: 20px;
}
.step-legal p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.legal-note {
  margin-top: 24px;
  padding: 12px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  font-size: 0.8rem;
}

@media (min-width: 640px) {
  .wizard { padding-top: 48px; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
}

/* Rodapé institucional (dados do CNPJ — exigência de verificação Meta) */
.site-footer {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding: 24px 20px 32px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: center;
}
.site-footer p { margin: 0 0 6px; }
.site-footer .footer-brand strong { color: var(--azul-noite); letter-spacing: 0.02em; }
.site-footer a { color: var(--azul-estrategico); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .footer-copy { margin-top: 12px; font-size: 0.75rem; }
