/* ============================================================
   Festival Botecar Goiânia 2026 — Página de Votação
   Paleta e componentes inspirados em festivalbotecar.com.br/bh
   ============================================================ */

:root {
  --laranja: #e66818;
  --laranja-escuro: #d15814;
  --laranja-vivo: #f37020;
  --creme: #fef1dc;
  --creme-claro: #fff8ec;
  --texto-escuro: #2c2c2c;
  --texto-corpo: #444;
  --branco: #fff;
  --borda: #f2e5d4;
  --erro: #c0392b;
  --raio: 8px;
  --fonte-titulo: 'Baloo 2', 'Klavika', sans-serif;
  --fonte-corpo: 'Inter', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--fonte-corpo);
  color: var(--texto-corpo);
  background: var(--creme-claro);
  overflow-x: hidden;
}

a { color: inherit; }

/* ── NAVBAR ── */
.navbar {
  width: 100%;
  background: var(--branco);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 5%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo img { display: block; border-radius: 6px; }

.menu ul { list-style: none; display: flex; gap: 1.5rem; }

.menu ul li a {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--texto-escuro);
  transition: color 0.2s;
}

.menu ul li a:hover { color: var(--laranja); }

/* ── HERO ── */
.hero-votacao {
  background: var(--creme);
  padding: 3.5rem 5% 3rem;
  text-align: center;
}

.hero-conteudo { max-width: 760px; margin: 0 auto; }

.hero-votacao h1 {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--texto-escuro);
  margin-bottom: 1rem;
}

.hero-texto {
  font-size: 1.05rem;
  color: var(--texto-corpo);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.aviso-privacidade {
  background: var(--branco);
  border-left: 4px solid var(--laranja);
  border-radius: var(--raio);
  padding: 1.25rem 1.5rem;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}


.aviso-privacidade h2 {
  font-family: var(--fonte-titulo);
  font-size: 1.1rem;
  color: var(--laranja);
  margin-bottom: 0.6rem;
}

.aviso-privacidade p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--texto-corpo);
  margin-bottom: 0.5rem;
}

.aviso-privacidade p:last-child { margin-bottom: 0; }

/* ── FORM SECTION ── */
.form-section {
  padding: 3rem 5% 4rem;
  display: flex;
  justify-content: center;
}

.form-card {
  width: 100%;
  max-width: 720px;
  background: var(--branco);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2rem;
}

.grupo-campos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.field { margin-bottom: 1.5rem; }

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--texto-escuro);
  margin-bottom: 0.5rem;
}

.obrigatorio { color: var(--laranja); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1.5px solid var(--borda);
  border-radius: var(--raio);
  background: var(--creme-claro);
  color: var(--texto-escuro);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field select { appearance: auto; cursor: pointer; }

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--laranja);
  box-shadow: 0 0 0 3px rgba(230, 104, 24, 0.15);
}

.erro-msg {
  display: none;
  color: var(--erro);
  font-size: 0.82rem;
  margin-top: 0.4rem;
}

.field.has-error input,
.field.has-error select {
  border-color: var(--erro);
  background: #fdf1ef;
}

.field.has-error .erro-msg { display: block; }

/* ── PILL GROUPS (Sexo) ── */
.pill-group { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.pill {
  position: relative;
  cursor: pointer;
}

.pill input { position: absolute; opacity: 0; width: 0; height: 0; }

.pill span {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border: 1.5px solid var(--borda);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--texto-corpo);
  background: var(--creme-claro);
  transition: all 0.2s;
}

.pill input:checked + span {
  background: var(--laranja);
  border-color: var(--laranja);
  color: var(--branco);
}

.pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(230, 104, 24, 0.25); }

/* ── NOTAS (1 a 5) ── */
.field-nota { padding: 1.1rem 1.2rem; background: var(--creme-claro); border-radius: var(--raio); border: 1px solid var(--borda); }

.nota-ajuda { font-size: 0.82rem; color: #777; margin-bottom: 0.8rem; }

.nota-group { display: flex; gap: 0.6rem; }

.nota-pill { flex: 1; cursor: pointer; position: relative; }

.nota-pill input { position: absolute; opacity: 0; width: 0; height: 0; }

.nota-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  border: 1.5px solid var(--borda);
  border-radius: var(--raio);
  background: var(--branco);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--texto-escuro);
  transition: all 0.2s;
}

.nota-pill input:checked + span {
  background: var(--laranja);
  border-color: var(--laranja);
  color: var(--branco);
  transform: scale(1.05);
}

.nota-pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(230, 104, 24, 0.25); }

.nota-legenda {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #999;
  margin-top: 0.5rem;
}

/* ── ALERT ── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 1rem 1.1rem;
  border-radius: var(--raio);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  background: #fdf1ef;
  border: 1px solid #f3c8c2;
  color: var(--erro);
}

.alert-icon { font-size: 1.1rem; line-height: 1; }

.alert[hidden] { display: none; }

/* ── SUBMIT BUTTON ── */
.botao-votar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 3.4rem;
  background: var(--laranja);
  color: var(--branco);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: var(--raio);
  cursor: pointer;
  transition: background-color 0.2s;
}

.botao-votar:hover:not(:disabled) { background: var(--laranja-escuro); }

.botao-votar:disabled { opacity: 0.75; cursor: not-allowed; }

.btn-spinner {
  display: none;
  width: 1.1rem;
  height: 1.1rem;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--branco);
  border-radius: 50%;
  animation: girar 0.7s linear infinite;
}

.botao-votar.loading .btn-spinner { display: inline-block; }
.botao-votar.loading .btn-texto { opacity: 0.85; }

@keyframes girar { to { transform: rotate(360deg); } }

.botao-secundario {
  margin-top: 1.5rem;
  padding: 0.8rem 1.6rem;
  background: transparent;
  border: 1.5px solid var(--laranja);
  color: var(--laranja);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--raio);
  cursor: pointer;
  transition: all 0.2s;
}

.botao-secundario:hover { background: var(--laranja); color: var(--branco); }

/* ── SUCCESS SCREEN ── */
.success-screen { text-align: center; padding: 1.5rem 0; }

.success-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--laranja);
  color: var(--branco);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-screen h2 {
  font-family: var(--fonte-titulo);
  font-size: 1.5rem;
  color: var(--texto-escuro);
  margin-bottom: 0.6rem;
}

.success-screen p { color: var(--texto-corpo); font-size: 0.98rem; line-height: 1.5; }

/* ── FOOTER ── */
.footer { background: var(--branco); text-align: center; padding-top: 2.5rem; }

.footer-contato p, .footer-contato a { margin: 0.5rem 0; font-size: 0.9rem; }

.footer-contato img { margin-top: 0.5rem; }

.footer-bottom {
  background: var(--texto-corpo);
  color: var(--branco);
  padding: 1rem;
  font-size: 0.85rem;
  margin-top: 2rem;
}

.footer-bottom a { color: var(--branco); text-decoration: underline; }

/* ── RESPONSIVO ── */
@media (max-width: 640px) {
  .grupo-campos { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 1.75rem 1.25rem; }
  .nota-pill span { height: 2.6rem; font-size: 1rem; }
  .navbar { padding: 0.7rem 1.2rem; }
  .hero-votacao { padding: 2.5rem 1.2rem 2rem; }
}
