/*
  Consultoria Team GH (Hoschett) — Diagnóstico de Treino
  Identidade visual definida: fundo preto, acento azul oceano, tipografia Inter.
*/

:root {
  --bg: #0a0a0a;
  --surface: #151515;
  --surface-hover: #1f1f1f;
  --border: #2a2a2a;
  --text: #f2f2f2;
  --text-muted: #9a9a9a;
  --accent: #1257d9;
  --accent-contrast: #ffffff;
  --danger: #e2503a;
  --danger-bg: rgba(226, 80, 58, 0.12);

  --radius: 14px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.frame {
  width: 100%;
  max-width: 640px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 28px;
}

@media (min-width: 720px) {
  body {
    padding: 40px 20px;
  }
  .frame {
    min-height: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 40px 56px 48px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  }
}

@media (min-width: 1200px) {
  .frame {
    max-width: 900px;
    padding-left: 72px;
    padding-right: 72px;
  }
}

@media (min-width: 1920px) {
  .frame {
    max-width: 980px;
    padding-left: 88px;
    padding-right: 88px;
  }
}

/* ---------- Marca (logo) ---------- */
.brand {
  text-align: center;
  margin-bottom: 26px;
}

.brand-logo {
  display: block;
  width: min(180px, 70vw);
  height: auto;
  max-height: 70px;
  object-fit: contain;
  margin: 0 auto 10px;
}

/* ---------- HUD (indicador de progresso) ---------- */
.hud {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.hud-track {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.hud-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.35s var(--ease);
}

.hud-count {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---------- Palco (pergunta atual) ---------- */
.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: enter 0.4s var(--ease);
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.q-eyebrow {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.q-title {
  font-weight: 700;
  font-size: clamp(22px, 5vw, 30px);
  line-height: 1.2;
  margin: 0 0 10px;
}

.q-help {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 22px;
}

/* ---------- Múltipla escolha (radio) ---------- */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.option:hover {
  background: var(--surface-hover);
}

.option[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--surface-hover);
}

.radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s var(--ease);
}

.radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.15s var(--ease);
}

.option[aria-pressed="true"] .radio {
  border-color: var(--accent);
}

.option[aria-pressed="true"] .radio-dot {
  background: var(--accent);
}

/* ---------- Escala (0–5) ---------- */
.scale-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.scale-btn {
  flex: 1;
  aspect-ratio: 1;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.scale-btn:hover {
  background: var(--surface-hover);
}

.scale-btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Campos de texto / telefone ---------- */
.field {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 15px 16px;
  outline: none;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.field::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.field:focus {
  border-color: var(--accent);
  background: var(--surface-hover);
}

/* ---------- Tela de valor (info) ---------- */
.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.info-emoji {
  font-size: 22px;
  line-height: 1.3;
  flex-shrink: 0;
}

.info-text {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.info-highlight {
  margin: 24px 0 0;
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
}

/* ---------- Consentimento LGPD ---------- */
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}

.consent input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.consent span {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.consent span strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
}

.turnstile-box {
  margin: 18px 0 0 30px;
  min-height: 65px;
}

.consent-privacy {
  margin: 14px 0 0 30px;
  font-size: 14px;
}

.consent-privacy a {
  color: var(--accent);
}

/* ---------- Alerta de validação / erro de envio ---------- */
.alert {
  background: var(--danger-bg);
  border: 1px solid var(--danger);
  color: #ffb4a3;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  margin: 16px 0 0;
}

/* ---------- Controles (voltar / continuar) ---------- */
.controls {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.btn-ghost,
.btn-solid {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: opacity 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.btn-solid {
  flex: 1;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

.btn-solid:hover {
  opacity: 0.9;
}

.btn-solid:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-ghost[hidden],
.btn-solid[hidden] {
  display: none;
}

/* ---------- Tela final de agradecimento ---------- */
.thanks {
  text-align: center;
  padding: 40px 0;
}

.thanks h2 {
  font-weight: 800;
  font-size: 28px;
  margin-bottom: 12px;
}

.thanks p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.5;
}

/* ---------- Honeypot (nunca visível) ---------- */
.hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Acessibilidade ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
