/* ==========================================================================
   KUMA STUDIOS — analise.css
   Página de qualificação para anúncios. Mesma identidade do site.
   ========================================================================== */

:root {
  --c-bg: #0f0f0f;
  --c-accent: #f51a77;
  --c-text: #f4f4f4;
  --c-muted: #737373;
  --c-gray: #2e2e2e;
  --c-card: #161616;
  --c-input: #1a1a1a;
  --c-border: #333;

  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Mono', 'SF Mono', monospace;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-text);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input { font-family: inherit; }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Barra de progresso ------------------------------------------------------ */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(244, 244, 244, 0.08);
  z-index: 20;
}

.progress__fill {
  height: 100%;
  width: 0;
  background: var(--c-accent);
  border-radius: 0 3px 3px 0;
  transition: width 0.45s var(--ease);
}

/* Topo -------------------------------------------------------------------- */
.q-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 24px 0;
}

.q-logo svg { display: block; width: 128px; height: auto; }

.q-back {
  font-size: 14px;
  color: var(--c-muted);
  padding: 6px 4px;
  transition: color 0.3s var(--ease);
}
.q-back:hover { color: var(--c-text); }
.q-back[hidden] { display: none; }

/* Conteúdo ---------------------------------------------------------------- */
.q-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 56px;
}

.q-wrap { width: 100%; max-width: 560px; }

/* Etapas ------------------------------------------------------------------ */
.step {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.step.is-active { opacity: 1; transform: none; }

.step.is-out {
  opacity: 0;
  transform: translateY(-14px);
}

.step[hidden] { display: none; }

.step__count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--c-muted);
  margin-bottom: 14px;
}

.step__title {
  font-size: clamp(26px, 5.4vw, 36px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.step__hint {
  font-size: 15px;
  color: var(--c-muted);
  margin-bottom: 4px;
}

/* Opções ------------------------------------------------------------------ */
.options {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.option {
  width: 100%;
  min-height: 58px;
  padding: 16px 22px;
  text-align: left;
  font-size: 16px;
  color: var(--c-text);
  background: var(--c-card);
  border: 2px solid var(--c-gray);
  border-radius: 14px;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.option:hover { border-color: #4d4d4d; transform: translateY(-1px); }

.option[aria-checked="true"] {
  border-color: var(--c-accent);
  background: rgba(245, 26, 119, 0.12);
  font-weight: 500;
}

/* Campo livre do "Outro" -------------------------------------------------- */
.other-field {
  margin-top: 12px;
  animation: other-in 0.3s var(--ease) both;
}

.other-field[hidden] { display: none; }

.other-field input {
  width: 100%;
  height: 54px;
  padding: 14px 18px;
  background: var(--c-input);
  border: 2px solid var(--c-accent);
  border-radius: 14px;
  color: var(--c-text);
  font-size: 16px;
}

.other-field input::placeholder { color: #5a5a5a; }
.other-field input:focus { outline: none; }

@keyframes other-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* Campos ------------------------------------------------------------------ */
.field { margin-top: 22px; }

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 8px;
}

.field input {
  width: 100%;
  height: 54px;
  padding: 14px 16px;
  background: var(--c-input);
  border: 2px solid var(--c-border);
  border-radius: 12px;
  color: var(--c-text);
  font-size: 16px; /* 16px evita zoom automático no iOS */
  transition: border-color 0.25s var(--ease);
}

.field input::placeholder { color: #5a5a5a; }
.field input:focus { outline: none; border-color: var(--c-accent); }
.field input.is-invalid { border-color: #ff4d6d; }

.field__error {
  margin-top: 7px;
  font-size: 13px;
  color: #ff7f9c;
}
.field__error[hidden] { display: none; }

/* Campo-isca anti-robô: fora da tela, sem afetar o layout ------------------ */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Botão de avançar -------------------------------------------------------- */
.next-btn {
  width: 100%;
  min-height: 54px;
  margin-top: 28px;
  padding: 15px 28px;
  border-radius: 39px;
  background: var(--c-accent);
  color: var(--c-text);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;

  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), filter 0.25s var(--ease);
}

.next-btn.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.next-btn[hidden] { display: none; }
.next-btn:hover { filter: brightness(1.1); }
.next-btn:disabled { opacity: 0.6; cursor: wait; }

.send-error {
  margin-top: 14px;
  font-size: 14px;
  color: #ff7f9c;
  text-align: center;
}
.send-error[hidden] { display: none; }

/* Confirmação ------------------------------------------------------------- */
.step--done { text-align: center; }

.done-check {
  width: 68px;
  height: 68px;
  margin: 0 auto 26px;
}
.done-check svg { width: 100%; height: 100%; }

.done-text {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-muted);
}

.done-link {
  display: inline-block;
  margin-top: 30px;
  font-size: 15px;
  color: var(--c-accent);
  transition: opacity 0.25s var(--ease);
}
.done-link:hover { opacity: 0.8; }

/* Mobile ------------------------------------------------------------------ */
@media (max-width: 600px) {
  .q-header { padding: 20px 20px 0; }
  .q-logo svg { width: 108px; }
  .q-main { padding: 32px 20px 44px; align-items: flex-start; }
  .option { min-height: 54px; padding: 15px 18px; }
  .next-btn { margin-top: 24px; }
}

/* Reduzir movimento ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .step { opacity: 1; transform: none; }
}
