/* Registra — Pesquisa de Desligamento. Cores do grupo via --cor / --cor-escura / --cor-clara. */
* { box-sizing: border-box; }
body {
  margin: 0; background: #F3F4F6; color: #1F2937; min-height: 100vh; display: flex; flex-direction: column;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.5;
}

.topo { background: var(--cor); color: #fff; position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
body[data-grupo="harley"] .topo { background: #1A1A1A; border-bottom: 3px solid var(--cor); }
.topo-in { max-width: 720px; margin: 0 auto; padding: 12px 18px; display: flex; align-items: center; gap: 14px; }
.logo { background: #fff; border-radius: 8px; height: 46px; padding: 5px 9px; display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 36px; width: auto; display: block; }
.topo strong { display: block; font-size: 17px; }
.topo small { color: rgba(255,255,255,.85); font-size: 13px; }
.progresso { height: 4px; background: rgba(255,255,255,.25); }
.progresso span { display: block; height: 100%; width: 0; background: #fff; transition: width .25s; }
body[data-grupo="harley"] .progresso span { background: var(--cor); }

.conteudo { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 20px 14px 30px; }
.cartao { background: #fff; border-radius: 12px; padding: 22px 22px 8px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.07); }
.cartao h1 { font-size: 23px; margin: 0 0 10px; }
.cartao h2 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--cor-escura);
  margin: 0 0 6px; padding-bottom: 10px; border-bottom: 2px solid var(--cor-clara);
}
.boas-vindas { border-top: 5px solid var(--cor); padding-bottom: 14px; }
.boas-vindas p { margin: 0 0 8px; color: #374151; }

.pergunta { border: 0; margin: 0; padding: 16px 0 14px; border-bottom: 1px solid #F0F1F3; min-width: 0; }
.cartao .pergunta:last-child { border-bottom: 0; }
.pergunta legend { float: left; width: 100%; font-weight: 600; padding: 0; margin: 0 0 10px; display: flex; gap: 10px; line-height: 1.4; }
.pergunta legend + * { clear: both; }
.num {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--cor-clara); color: var(--cor-escura);
  font-size: 12.5px; display: inline-grid; place-items: center; margin-top: 1px;
}
textarea {
  width: 100%; font: inherit; font-size: 15.5px; padding: 11px 12px; border: 1px solid #D1D5DB; border-radius: 9px;
  resize: vertical; min-height: 84px; background: #fff; color: inherit;
}
textarea:focus { outline: none; border-color: var(--cor); box-shadow: 0 0 0 3px var(--cor-clara); }

.opcoes { display: flex; flex-direction: column; gap: 7px; }
.opcoes-felicidade, .opcoes-simnao { flex-direction: row; flex-wrap: wrap; }
.opcoes-felicidade .opcao { flex: 1 1 0; justify-content: center; text-align: center; min-width: 58px; }
.opcoes-simnao .opcao { flex: 1 1 0; justify-content: center; }
.opcao {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid #D1D5DB; border-radius: 9px;
  cursor: pointer; background: #fff; -webkit-tap-highlight-color: transparent;
}
.opcao:hover { border-color: #9CA3AF; }
.opcao input { width: 18px; height: 18px; margin: 0; accent-color: var(--cor); flex-shrink: 0; }
.opcao:has(input:checked) { border-color: var(--cor); background: var(--cor-clara); font-weight: 600; }
.opcoes-felicidade .opcao input { display: none; }
.opcoes-felicidade .opcao span { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.opcoes-felicidade .opcao b { font-size: 19px; }
.opcoes-felicidade .opcao small { font-size: 11px; font-weight: 500; color: #6B7280; margin-top: 2px; }

.msg-erro { display: none; color: #B91C1C; font-size: 13.5px; margin: 6px 0 0; }
.com-erro .msg-erro { display: block; }
.com-erro textarea, .com-erro .opcao { border-color: #FCA5A5; }
.com-erro legend { color: #B91C1C; }

.alerta { background: #FEE2E2; color: #B91C1C; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }

.enviar { text-align: center; padding: 6px 0 10px; }
.enviar button {
  width: 100%; max-width: 380px; padding: 15px; font: inherit; font-weight: 700; font-size: 17px; color: #fff;
  background: var(--cor); border: 0; border-radius: 10px; cursor: pointer;
}
.enviar button:hover { background: var(--cor-escura); }
.enviar button:disabled { opacity: .7; cursor: wait; }
.enviar p { color: #6B7280; font-size: 13.5px; margin: 10px 0 0; }

.final { text-align: center; padding: 38px 24px 30px; margin-top: 20px; }
.final p { color: #374151; margin: 0 0 8px; }
.final .sub { color: #9CA3AF; font-size: 14px; }
.icone {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  font-size: 30px; font-weight: 700; background: #F3F4F6; color: #6B7280;
}
.icone.ok { background: var(--cor-clara); color: var(--cor-escura); }

.rodape { text-align: center; color: #9CA3AF; font-size: 12.5px; padding: 16px 20px 24px; }

@media (max-width: 480px) {
  .cartao { padding: 18px 16px 6px; border-radius: 10px; }
  .topo strong { font-size: 15.5px; }
  .opcoes-felicidade .opcao { padding: 11px 6px; }
}
