/* ═══════════════════════════════════════════════════════════
   Nexo — Diagnóstico comercial — formulário multi-etapas
   Dark mode, acento gold #FEC80C, fonte General Sans
   ═══════════════════════════════════════════════════════════ */

/* ── Página base ─────────────────────────────────────────── */
.diag-body {
  background: #0D0D0D;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Glow de fundo centralizado */
.diag-body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(254,200,12,.12) 0%, transparent 70%);
  z-index: 0;
}

/* ── Header ──────────────────────────────────────────────── */
.diag-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}

.diag-logo img {
  height: 26px;
  width: auto;
  display: block;
}

.diag-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  flex-shrink: 0;
}
.diag-logo-icon img {
  height: 22px;
  width: auto;
  display: block;
}

.diag-exit {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .2s;
}
.diag-exit:hover { color: rgba(255,255,255,.85); }

/* ── Main ────────────────────────────────────────────────── */
.diag-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 20px 32px;
}

.diag-wrap {
  width: 100%;
  max-width: 680px;
}

/* ── Barra de progresso ──────────────────────────────────── */
.diag-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.diag-step-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.5);
}

.diag-percent {
  font-size: 13px;
  font-weight: 700;
  color: #FEC80C;
}

.diag-progress-track {
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.1);
  margin-bottom: 16px;
  overflow: hidden;
}

.diag-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: #FEC80C;
  transition: width .45s cubic-bezier(.22,1,.36,1);
  width: 17%;
}

/* ── Card ────────────────────────────────────────────────── */
.diag-card {
  background: #141414;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px;
  padding: 28px 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Steps ───────────────────────────────────────────────── */
.diag-step {
  display: none;
  flex-direction: column;
  gap: 0;
  animation: diag-in .35s cubic-bezier(.22,1,.36,1) both;
}
.diag-step.active { display: flex; }

@keyframes diag-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes diag-in-back {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.diag-step.anim-back { animation-name: diag-in-back; }

/* ── Badge ───────────────────────────────────────────────── */
.diag-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 40px;
  border: 1.5px solid rgba(254,200,12,.45);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #FEC80C;
  margin-bottom: 12px;
}

.diag-badge-ok {
  border-color: rgba(110,198,50,.5);
  color: #6EC632;
}

/* ── Textos ──────────────────────────────────────────────── */
.diag-title {
  font-family: 'General Sans', 'Satoshi', 'Inter', sans-serif;
  font-size: clamp(20px, 3.2vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 8px;
}

.diag-sub {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,.5);
  line-height: 1.55;
  margin-bottom: 18px;
}

/* ── Campo ───────────────────────────────────────────────── */
.diag-field {
  position: relative;
}

.diag-field input,
.diag-field textarea {
  width: 100%;
  background: #0D0D0D;
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 16px 18px;
  font-family: 'Satoshi', 'General Sans', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  resize: none;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.diag-field input::placeholder,
.diag-field textarea::placeholder {
  color: rgba(255,255,255,.28);
}

.diag-field input:focus,
.diag-field textarea:focus {
  border-color: #FEC80C;
  box-shadow: 0 0 0 3px rgba(254,200,12,.12);
}

.diag-field.error input,
.diag-field.error textarea {
  border-color: rgba(255,80,80,.6);
  box-shadow: 0 0 0 3px rgba(255,80,80,.1);
}

.diag-error-msg {
  font-size: 12px;
  color: rgba(255,100,100,.85);
  margin-top: 6px;
  display: none;
}
.diag-field.error .diag-error-msg { display: block; }

/* ── Botão WhatsApp (tela final) ─────────────────────────── */
.diag-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: #FEC80C;
  color: #0D0D0D;
  font-family: 'General Sans', 'Satoshi', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  margin-top: 28px;
  transition: background .2s, transform .2s;
}
.diag-wa-btn:hover { background: #FFD740; transform: translateY(-2px); }

.diag-wa-btn .arrow-circle {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Divider ─────────────────────────────────────────────── */
.diag-divider {
  height: 1px;
  background: rgba(255,255,255,.06);
  margin: 20px 0 16px;
}

/* ── Ações ───────────────────────────────────────────────── */
.diag-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.diag-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: rgba(255,255,255,.06);
  border: none;
  border-radius: 999px;
  font-family: 'Satoshi', 'General Sans', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  cursor: pointer;
  transition: background .2s, color .2s;
  /* Oculto na primeira pergunta */
  visibility: hidden;
  pointer-events: none;
}
.diag-btn-back.visible {
  visibility: visible;
  pointer-events: auto;
}
.diag-btn-back:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.diag-btn-next {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: #FEC80C;
  border: none;
  border-radius: 999px;
  font-family: 'General Sans', 'Satoshi', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #0D0D0D;
  cursor: pointer;
  transition: background .2s, transform .2s, opacity .2s;
}
.diag-btn-next:hover:not(:disabled) { background: #FFD740; transform: translateY(-2px); }
.diag-btn-next:active:not(:disabled) { transform: translateY(1px); }
.diag-btn-next:disabled { opacity: .55; cursor: not-allowed; }

.diag-btn-next .arrow-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Tela final: oculta botões de navegação ──────────────── */
.diag-step.diag-done.active ~ .diag-divider,
.diag-step.diag-done.active ~ .diag-actions {
  display: none;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .diag-header { padding: 20px 20px; }
  .diag-card { padding: 28px 20px 24px; }
  .diag-actions { justify-content: space-between; }
  .diag-btn-back { padding: 14px 18px; font-size: 13px; }
  .diag-btn-next { padding: 14px 22px; font-size: 13px; }
}
