/* ===================================================================
   Nevada Feedbacks — Canal de Feedback
   Paleta: azul-marinho corporativo + acentos por categoria
   =================================================================== */
:root {
  --navy: #143a6b;
  --navy-700: #102a43;
  --blue: #1D4F91;
  --blue-dark: #16407a;
  --green: #16a34a;
  --green-soft: #e7f6ec;
  --red: #dc2626;
  --red-soft: #fdeaea;
  --amber: #f59e0b;
  --amber-soft: #fef6e6;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f6f8fb;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 18px 40px -18px rgba(11, 42, 74, 0.35);
  --shadow-sm: 0 6px 18px -10px rgba(11, 42, 74, 0.4);
}

* { box-sizing: border-box; }

/* Garante que o atributo hidden funcione mesmo com display definido nas seções */
[hidden] { display: none !important; }

/* Ícones SVG inline (herdam a cor do texto) */
.ico { width: 1em; height: 1em; vertical-align: -0.16em; flex: none; }

/* Honeypot anti-spam (fora da tela) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "League Spartan", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================ HERO ============================ */
.hero {
  background: radial-gradient(1200px 700px at 22% 30%, #dbe7f5, #c3d6ec 70%, #b4cce6);
  flex: 1;
  display: flex;
  align-items: center;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 28px;
  background: var(--blue);
  padding: 14px 22px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.brand__img { height: 34px; width: auto; display: block; }

.hero__title {
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.98;
  margin: 0 0 22px;
  color: var(--navy);
  font-weight: 900;
  letter-spacing: -1px;
}
.hero__title--accent { color: var(--blue); }

.hero__lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 440px;
  margin: 0 0 32px;
}

.hero__actions { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero__safety {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 14px; margin: 0;
}

/* ============================ BOTÕES ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: inherit; font-weight: 600; font-size: 16px;
  border: none; border-radius: 12px;
  padding: 16px 30px;
  cursor: pointer; text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn--primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 12px 24px -10px rgba(29, 79, 145, 0.6);
}
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--block { width: 100%; }
.btn__arrow { width: 20px; height: 20px; flex: none; transition: transform 0.2s ease; }
.btn--primary:hover .btn__arrow { transform: translateX(4px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ============================ CONTADOR ============================ */
.counter {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 26px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  max-width: 460px;
  margin-left: auto;
}

.counter__gauge { position: relative; width: 160px; text-align: center; }
.gauge { width: 160px; height: auto; display: block; }
.gauge__track {
  fill: none; stroke: #eef2f7; stroke-width: 16; stroke-linecap: round;
}
.gauge__fill {
  fill: none; stroke-width: 16; stroke-linecap: round;
  stroke: url(#grad);
  stroke-dasharray: 252;          /* comprimento aprox. do arco */
  stroke-dashoffset: 252;
  transition: stroke-dashoffset 1s ease;
}
.gauge__needle {
  stroke: var(--navy); stroke-width: 4; stroke-linecap: round;
  transform-origin: 100px 110px;
  transform: rotate(-90deg); /* posição inicial = zero (esquerda) */
  transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gauge__needle-base { fill: var(--navy); }

.counter__total {
  position: absolute; left: 0; right: 0; bottom: 6px;
  display: flex; flex-direction: column; align-items: center;
}
.counter__total-label { font-size: 11px; letter-spacing: 1px; color: var(--muted); font-weight: 600; }
.counter__total-value { font-size: 30px; font-weight: 800; color: var(--navy); line-height: 1; }

.counter__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.counter__item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 13px;
  letter-spacing: 0.4px;
}
.counter__item span { color: var(--muted); }
.counter__item strong { font-size: 20px; }
.counter__item--elogio  { background: var(--green-soft); }
.counter__item--elogio strong  { color: var(--green); }
.counter__item--critica { background: var(--red-soft); }
.counter__item--critica strong { color: var(--red); }
.counter__item--sugestao { background: var(--amber-soft); }
.counter__item--sugestao strong { color: var(--amber); }

/* ============================ WIZARD ============================ */
.wizard {
  flex: 1;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.wizard__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  max-width: 720px; width: 100%; margin: 0 auto;
  padding: 22px 24px 14px;
}
.wizard__back {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 6px 10px; border-radius: 8px; transition: background 0.15s ease, color 0.15s ease;
}
.wizard__back:hover { background: #eef2f7; color: var(--navy); }
.wizard__brand { font-weight: 700; color: var(--navy); font-size: 15px; }
.wizard__step { font-size: 13px; color: var(--muted); font-weight: 600; }

.wizard__progress {
  max-width: 720px; width: 100%; margin: 0 auto;
  height: 6px; background: #e6ecf3; border-radius: 999px; overflow: hidden;
}
.wizard__progress-fill {
  height: 100%; width: 16%; border-radius: 999px;
  background: linear-gradient(90deg, var(--navy), var(--blue));
  transition: width 0.4s ease;
}

.wizard__stage {
  max-width: 640px; width: 100%; margin: 0 auto;
  padding: 48px 24px 64px;
  flex: 1;
}

.step__title {
  font-size: clamp(26px, 4vw, 36px);
  color: var(--navy); margin: 0 0 12px; line-height: 1.1;
  font-weight: 800; letter-spacing: -0.5px;
}
.step__help { color: var(--muted); margin: 0 0 32px; font-size: 16px; }

/* Cards de opção (escolha) */
.opcoes { display: grid; gap: 14px; }
.opcoes--2col { grid-template-columns: 1fr 1fr; }
.op {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  width: 100%; text-align: left; cursor: pointer;
  padding: 20px 22px; border: 2px solid var(--line); border-radius: 14px;
  background: #fff; font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease, box-shadow 0.2s ease;
}
.op:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.op__titulo { font-size: 17px; font-weight: 700; color: var(--ink); }
.op__desc { font-size: 14px; color: var(--muted); }
.op.is-sel { border-color: var(--blue); background: #eef5ff; }
.op--elogio:hover   { border-color: var(--green); }
.op--critica:hover  { border-color: var(--red); }
.op--sugestao:hover { border-color: var(--amber); }
.op--elogio .op__titulo   { color: var(--green); }
.op--critica .op__titulo  { color: var(--red); }
.op--sugestao .op__titulo { color: var(--amber); }

/* Campos de formulário (identificação / mensagem) */
.form-bloco { display: grid; gap: 18px; }
.campo { display: grid; gap: 8px; }
.campo__label { font-size: 13px; font-weight: 600; letter-spacing: 0.4px; color: var(--muted); text-transform: uppercase; }
.campo__input {
  width: 100%; font-family: inherit; font-size: 16px;
  padding: 15px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.campo__input:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 111, 217, 0.15);
}
.campo__textarea { resize: vertical; min-height: 150px; }
.campo__contador { text-align: right; font-size: 12px; color: var(--muted); }

.step__acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn--ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: #eef2f7; color: var(--navy); }

.step__feedback { margin: 16px 0 0; font-size: 15px; font-weight: 500; }
.step__feedback.is-err { color: var(--red); }
.step__nota { margin: 22px 0 0; font-size: 13px; color: var(--muted); }

/* Tela de sucesso */
.sucesso { text-align: center; padding: 20px 0; }
.sucesso__icone {
  width: 72px; height: 72px; margin: 0 auto 18px;
  display: grid; place-items: center;
  background: var(--green-soft); color: var(--green);
  border-radius: 50%;
}
.sucesso__icone svg { width: 38px; height: 38px; }
.sucesso .step__title { text-align: center; }
.sucesso .step__help { text-align: center; }

/* ============================ FOOTER ============================ */
.footer {
  background: var(--navy); color: #cdd9e6;
  padding: 12px 24px; font-size: 13px;
}
.footer__inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.footer__logo { width: 44px; height: auto; flex: none; }
.footer__center { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.footer p { margin: 0; }
.footer__safety { display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.footer__credit {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  color: #aec0d4; text-decoration: none; font-size: 13px;
  transition: color 0.2s ease; white-space: nowrap;
}
.footer__credit:hover { color: #fff; }
.footer__credit-logo {
  width: 30px; height: 30px; display: block;
  transition: transform 0.2s ease;
}
.footer__credit:hover .footer__credit-logo { transform: scale(1.18); }

/* ============================ RESPONSIVO ============================ */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding: 40px 22px;
    text-align: left;
  }
  .counter { margin: 8px 0 0; max-width: 100%; }
  .footer__inner { flex-direction: column; gap: 12px; }
}
@media (max-width: 520px) {
  .counter { grid-template-columns: 1fr; gap: 18px; }
  .counter__gauge { margin: 0 auto; }
  .opcoes--2col { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .tipos { grid-template-columns: 1fr; }
  .tipo { flex-direction: row; justify-content: center; gap: 12px; padding: 14px; }
}
