/* =========================================================================
   Pesquisa de Satisfação — estilo público (mobile-first)
   ========================================================================= */

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

:root {
  --radius: 14px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 10px 30px rgba(16, 24, 40, .10);
  --line: #e4e8ee;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---- Topo ---------------------------------------------------------------- */
.topo {
  background: var(--topo);
  color: #fff;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.topo .marca {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.topo .marca img { height: 30px; width: auto; display: block; }
.topo .marca .pin {
  display: inline-block;
  width: 10px; height: 22px; border-radius: 3px;
  background: var(--brand);
}

/* ---- Container ----------------------------------------------------------- */
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 14px 60px;
}

/* ---- Cabeçalho da pesquisa ---------------------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-lg);
}
.hero h1 { margin: 0 0 6px; font-size: 1.35rem; line-height: 1.25; }
.hero p  { margin: 0; opacity: .92; font-size: .95rem; }

/* ---- Seções -------------------------------------------------------------- */
.secao-titulo {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--brand-dark);
  margin: 26px 4px 10px;
}

/* ---- Card de pergunta ---------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.card .pergunta {
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 14px;
}
.card .pergunta .obrig { color: #d92d20; margin-left: 3px; }

textarea, input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: #fcfdfe;
  resize: vertical;
}
textarea { min-height: 84px; }
textarea:focus, input[type="text"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
  background: #fff;
}

/* ---- Escala 0..N --------------------------------------------------------- */
.escala { margin-top: 4px; }
.escala-legendas {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: #667085;
  margin-bottom: 6px;
  gap: 8px;
}
.escala-legendas span:last-child { text-align: right; }

.escala-opcoes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.escala-opcoes label {
  position: relative;
  flex: 1 1 40px;
  min-width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  color: #475467;
  cursor: pointer;
  background: #fff;
  user-select: none;
  transition: all .12s ease;
}
.escala-opcoes input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.escala-opcoes label:hover { border-color: var(--brand); }
.escala-opcoes input:checked + span,
.escala-opcoes label:has(input:checked) {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--brand) 35%, transparent);
}

/* ---- Botão --------------------------------------------------------------- */
.acoes { margin-top: 22px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 15px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background .12s ease, transform .05s ease;
}
.btn:hover  { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }

/* ---- Erros --------------------------------------------------------------- */
.alerta {
  background: #fef3f2;
  border: 1px solid #fda29b;
  color: #b42318;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: .92rem;
}
.card.com-erro { border-color: #fda29b; box-shadow: 0 0 0 3px #fee4e2; }

/* ---- Página de obrigado -------------------------------------------------- */
.obrigado {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 24px;
  box-shadow: var(--shadow);
  margin-top: 20px;
}
.obrigado .check {
  width: 68px; height: 68px; border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 15%, #fff);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; font-size: 34px;
}
.obrigado h2 { margin: 0 0 8px; font-size: 1.4rem; }
.obrigado p  { margin: 0; color: #667085; }

/* ---- Rodapé -------------------------------------------------------------- */
.rodape {
  text-align: center;
  color: #98a2b3;
  font-size: .8rem;
  padding: 24px 16px;
}

/* ---- Telas maiores ------------------------------------------------------- */
@media (min-width: 600px) {
  .hero h1 { font-size: 1.6rem; }
  .card { padding: 20px; }
}

/* Em telas bem estreitas, escala com muitos números pode quebrar em 2 linhas */
@media (max-width: 380px) {
  .escala-opcoes { gap: 4px; }
  .escala-opcoes label { min-height: 40px; font-size: .85rem; }
}
