@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@600;700;800&display=swap');

:root {
  /* Cyber Obsidian & High-Voltage Electric Base */
  --bg-deep: #08090d;
  --bg-surface-glass: rgba(13, 17, 26, 0.88);
  --bg-surface-elevated: rgba(19, 25, 38, 0.94);
  --bg-surface-hover: rgba(28, 36, 56, 0.98);
  
  /* Electric Gold & Plasma Neon Palette */
  --electric-laser: #fff6a8;
  --electric-gold: #ffd60a;
  --neon-amber: #ff9e00;
  --cyber-orange: #ff5400;
  --electric-glow: rgba(255, 214, 10, 0.45);
  --electric-glow-strong: rgba(255, 214, 10, 0.75);

  /* Gradientes de Alta Voltagem e Energia */
  --gradient-electric-title: linear-gradient(135deg, #ffffff 0%, #fff7a1 28%, #ffd60a 65%, #ff9e00 100%);
  --gradient-plasma-btn: linear-gradient(135deg, #fff7a1 0%, #ffd60a 35%, #ff9e00 80%, #e07a00 100%);
  --gradient-card-glass: linear-gradient(180deg, rgba(16, 21, 33, 0.92) 0%, rgba(9, 12, 19, 0.96) 100%);
  --gradient-option-active: linear-gradient(135deg, #ffffff 0%, #ffe169 30%, #ffd60a 70%, #ff9e00 100%);
  --gradient-laser-track: linear-gradient(90deg, #ff5400 0%, #ff9e00 40%, #ffd60a 80%, #ffffff 100%);

  /* Bordas com Reflexo de Luz e Laser */
  --border-glass: rgba(255, 214, 10, 0.25);
  --border-laser: rgba(255, 214, 10, 0.65);
  --border-active-laser: #ffd60a;

  /* Tipografia */
  --text-primary: #ffffff;
  --text-secondary: #c9d2e3;
  --text-muted: #8291aa;
  --text-electric: #ffd60a;
  
  /* Sombras e Iluminação Volumétrica */
  --shadow-electric-card: 
    0 25px 70px -15px rgba(0, 0, 0, 0.95),
    0 0 45px -5px rgba(255, 170, 0, 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  --shadow-electric-glow: 0 0 35px rgba(255, 214, 10, 0.6), 0 0 10px rgba(255, 255, 255, 0.8);
  --shadow-neon-hover: 0 10px 30px -5px rgba(255, 180, 0, 0.4), 0 0 20px rgba(255, 214, 10, 0.35);
  
  /* Formas, Raios e Microinterações */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-full: 9999px;
  --transition-cubic: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-electric: 220ms var(--transition-cubic);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  /* Fundo de plasma elétrico dinâmico de alta profundidade */
  background-image: 
    radial-gradient(ellipse at 50% -80px, rgba(255, 214, 10, 0.26) 0%, rgba(255, 140, 0, 0.14) 38%, transparent 70%),
    radial-gradient(circle at 100% 50%, rgba(255, 158, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 0% 70%, rgba(255, 214, 10, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 84, 0, 0.14) 0%, transparent 60%);
  background-attachment: fixed;
}

/* Grid Cibernético Sutil */
.cyber-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(rgba(255, 214, 10, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 214, 10, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 40%, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black 40%, transparent 90%);
}

/* Marca d'água da Logo gigante ocupando todo o background com pouca opacidade */
.bg-watermark-logo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('Manual da Marca- Canaã Digital.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(230vw, 230vh);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 60px rgba(255, 214, 10, 0.35));
}

/* Iluminação de fundo e atmosfera elétrica */
.bg-ambient-light {
  position: fixed;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.35) 0%, rgba(255, 214, 10, 0.22) 45%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
}

.bg-ambient-secondary {
  position: fixed;
  bottom: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 158, 0, 0.16) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

/* Header Elétrico Glassmorphism */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  background: rgba(8, 10, 15, 0.86);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 214, 10, 0.15);
}

.header-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Logo FORA da máscara circular */
.brand-logo {
  height: 42px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 0 14px rgba(255, 214, 10, 0.6));
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--gradient-electric-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(255, 214, 10, 0.5);
}

.progress-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.825rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  background: rgba(255, 214, 10, 0.1);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 214, 10, 0.4);
  box-shadow: 0 0 20px rgba(255, 214, 10, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.step-counter::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd60a;
  box-shadow: 0 0 10px #ffd60a;
  animation: pulseNeon 1.6s infinite alternate;
}

@keyframes pulseNeon {
  0% { transform: scale(0.85); opacity: 0.6; box-shadow: 0 0 4px #ffd60a; }
  100% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 14px #ffd60a, 0 0 24px #ff9e00; }
}

/* Barra de Progresso Laser */
.progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-laser-track);
  box-shadow: 0 0 16px rgba(255, 214, 10, 0.9), 0 0 5px #ffffff;
  position: relative;
  transition: width 380ms var(--transition-cubic);
}

.progress-bar::after {
  content: "";
  position: absolute;
  right: 0;
  top: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 12px #ffffff, 0 0 20px #ffd60a;
}

/* Estrutura Principal Centralizada */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 60px;
  position: relative;
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
}

.form-stage {
  width: 100%;
  max-width: 720px;
  margin: auto 0;
  position: relative;
}

/* Cartão do Formulário em Vidro Elétrico (Glassmorphism Cyber) */
.step-card {
  display: none !important;
  opacity: 0;
  transform: translateY(18px) scale(0.99);
  background: var(--gradient-card-glass);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 44px) clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow-electric-card);
  position: relative;
  overflow: hidden;
  transition: opacity 320ms var(--transition-cubic), transform 320ms var(--transition-cubic);
}

.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.8) 20%, #ffd60a 50%, #ff9e00 80%, transparent 100%);
  opacity: 0.95;
}

.step-card.active {
  display: block !important;
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: electricCardEnter 340ms var(--transition-cubic) forwards;
}

.step-card.welcome-hero.active {
  display: flex !important;
}

@keyframes electricCardEnter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Animação em Cascata Dinâmica e Suave */
@keyframes cascadeFadeUp {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroLogoCascade {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cascata no Welcome Hero */
.step-card.active.welcome-hero .hero-logo {
  animation: heroLogoCascade 420ms var(--transition-cubic) both, heroLogoFloat 4s ease-in-out 420ms infinite alternate;
}

.step-card.active.welcome-hero .badge-tag {
  animation: cascadeFadeUp 420ms var(--transition-cubic) both;
  animation-delay: 70ms;
}

.step-card.active.welcome-hero .hero-title {
  animation: cascadeFadeUp 420ms var(--transition-cubic) both;
  animation-delay: 120ms;
}

.step-card.active.welcome-hero .hero-desc {
  animation: cascadeFadeUp 420ms var(--transition-cubic) both;
  animation-delay: 170ms;
}

.step-card.active.welcome-hero .hero-meta {
  animation: cascadeFadeUp 420ms var(--transition-cubic) both;
  animation-delay: 220ms;
}

.step-card.active.welcome-hero .btn-primary {
  animation: cascadeFadeUp 420ms var(--transition-cubic) both;
  animation-delay: 270ms;
}

/* Cascata nos Cards de Perguntas */
.step-card.active .q-badge {
  animation: cascadeFadeUp 380ms var(--transition-cubic) both;
  animation-delay: 40ms;
}

.step-card.active .q-title {
  animation: cascadeFadeUp 380ms var(--transition-cubic) both;
  animation-delay: 80ms;
}

.step-card.active .q-instruction {
  animation: cascadeFadeUp 380ms var(--transition-cubic) both;
  animation-delay: 120ms;
}

/* Stagger dinâmico para opções */
.step-card.active .option-item {
  animation: cascadeFadeUp 380ms var(--transition-cubic) both;
}

.step-card.active .option-item:nth-child(1) { animation-delay: 150ms; }
.step-card.active .option-item:nth-child(2) { animation-delay: 185ms; }
.step-card.active .option-item:nth-child(3) { animation-delay: 220ms; }
.step-card.active .option-item:nth-child(4) { animation-delay: 255ms; }
.step-card.active .option-item:nth-child(5) { animation-delay: 290ms; }
.step-card.active .option-item:nth-child(6) { animation-delay: 325ms; }
.step-card.active .option-item:nth-child(7) { animation-delay: 360ms; }
.step-card.active .option-item:nth-child(8) { animation-delay: 395ms; }
.step-card.active .option-item:nth-child(9) { animation-delay: 430ms; }
.step-card.active .option-item:nth-child(10) { animation-delay: 465ms; }
.step-card.active .option-item:nth-child(11) { animation-delay: 500ms; }
.step-card.active .option-item:nth-child(12) { animation-delay: 535ms; }

/* Campos de formulário e barra de controle */
.step-card.active .form-group {
  animation: cascadeFadeUp 380ms var(--transition-cubic) both;
  animation-delay: 160ms;
}

.step-card.active .controls-bar {
  animation: cascadeFadeUp 380ms var(--transition-cubic) both;
  animation-delay: 200ms;
}

/* Cascata no Card de Sucesso */
.step-card.active .success-icon-wrapper {
  animation: cascadeFadeUp 420ms var(--transition-cubic) both;
  animation-delay: 60ms;
}

.step-card.active .success-title {
  animation: cascadeFadeUp 420ms var(--transition-cubic) both;
  animation-delay: 120ms;
}

.step-card.active .success-desc {
  animation: cascadeFadeUp 420ms var(--transition-cubic) both;
  animation-delay: 180ms;
}

.step-card.active .success-actions {
  animation: cascadeFadeUp 420ms var(--transition-cubic) both;
  animation-delay: 240ms;
}

/* Welcome Hero Futurista */
.welcome-hero {
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  height: 106px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  margin-bottom: 24px;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 0 35px rgba(255, 214, 10, 0.65));
  animation: heroLogoFloat 4s ease-in-out infinite alternate;
}

@keyframes heroLogoFloat {
  0% { transform: translateY(0); filter: drop-shadow(0 0 25px rgba(255, 214, 10, 0.5)); }
  100% { transform: translateY(-6px); filter: drop-shadow(0 0 45px rgba(255, 214, 10, 0.8)); }
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 214, 10, 0.12);
  border: 1px solid rgba(255, 214, 10, 0.5);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffd60a;
  box-shadow: 0 0 24px rgba(255, 214, 10, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
}

.badge-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd60a;
  box-shadow: 0 0 8px #ffd60a;
  animation: pulseNeon 1.5s infinite alternate;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 18px;
  background: var(--gradient-electric-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 24px rgba(255, 214, 10, 0.45));
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 620px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  background: rgba(255, 214, 10, 0.06);
  border: 1.5px solid rgba(255, 214, 10, 0.25);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffe169;
  margin-bottom: 34px;
  box-shadow: inset 0 0 25px rgba(255, 214, 10, 0.06), 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-meta-item svg {
  width: 18px;
  height: 18px;
  color: #ffd60a;
  flex-shrink: 0;
}

/* Títulos de Perguntas e Instruções Elétricas */
.q-header {
  margin-bottom: 26px;
}

.q-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.775rem;
  font-weight: 700;
  color: #ffd60a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  background: rgba(255, 214, 10, 0.08);
  border: 1px solid rgba(255, 214, 10, 0.32);
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 16px rgba(255, 214, 10, 0.15);
}

.q-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffd60a;
  box-shadow: 0 0 8px #ffd60a;
  animation: pulseNeon 1.5s infinite alternate;
}

.q-title {
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.q-instruction {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  font-weight: 500;
}

/* Opções de Escolha em Vidro e Efeito Laser */
.options-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.option-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: rgba(18, 23, 36, 0.65);
  border: 1.5px solid rgba(255, 214, 10, 0.16);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-electric);
}

.option-item:hover {
  background: rgba(28, 36, 56, 0.92);
  border-color: rgba(255, 214, 10, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 214, 10, 0.22);
}

.option-item:active {
  transform: translateY(0);
}

/* Estado Selecionado: Explosão de Cor Neon Ouro Líquido */
.option-item.selected {
  background: var(--gradient-option-active);
  border-color: #ffffff;
  color: #07090e;
  font-weight: 800;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 214, 10, 0.55), inset 0 1px 2px #ffffff;
  transform: translateY(-1px);
}

/* Indicador Personalizado Elétrico (Radio / Checkbox) */
.custom-indicator {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 2px solid rgba(255, 214, 10, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 9, 14, 0.85);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
  transition: all var(--transition-electric);
}

.option-item[data-type="single"] .custom-indicator {
  border-radius: 50%;
}

.custom-indicator svg {
  width: 13px;
  height: 13px;
  color: #ffd60a;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--transition-electric);
}

.option-item[data-type="single"] .custom-indicator svg {
  display: none;
}

.custom-indicator .radio-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffd60a;
  box-shadow: 0 0 10px #ffd60a;
  opacity: 0;
  transform: scale(0);
  transition: all var(--transition-electric);
}

.option-item.selected .custom-indicator {
  border-color: #07090e;
  background: #07090e;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

.option-item.selected .custom-indicator svg {
  opacity: 1;
  transform: scale(1);
  color: #ffd60a;
}

.option-item[data-type="single"].selected .custom-indicator .radio-dot {
  opacity: 1;
  transform: scale(1);
  background: #ffd60a;
}

.option-label {
  flex: 1;
  line-height: 1.48;
}

/* Selo com a Letra do Teclado [A, B, C] */
.key-hint {
  font-family: 'Space Grotesk', monospace, sans-serif;
  font-size: 0.775rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 214, 10, 0.1);
  border: 1px solid rgba(255, 214, 10, 0.28);
  color: #ffd60a;
  letter-spacing: 0.05em;
  transition: all var(--transition-electric);
}

.option-item.selected .key-hint {
  background: #07090e;
  color: #ffd60a;
  border-color: #07090e;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

/* Campos de Texto e Formulário */
.other-input-container {
  display: none;
  margin-top: 14px;
  animation: fadeIn var(--transition-fast);
}

.other-input-container.visible {
  display: block;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(14, 18, 28, 0.85);
  border: 1.8px solid rgba(255, 214, 10, 0.22);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: inherit;
  font-size: 1rem;
  color: #ffffff;
  min-height: 54px;
  outline: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
  transition: all var(--transition-electric);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.65;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #ffd60a;
  box-shadow: 0 0 0 3px rgba(255, 214, 10, 0.35), 0 10px 28px -4px rgba(255, 170, 0, 0.4);
  background: rgba(20, 26, 40, 0.98);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.fields-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.input-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-field-group label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffd60a;
}

.input-field-group label .badge-optional {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 6px;
}

/* Barra de Navegação e Controles */
.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
  border-top: 1.5px solid rgba(255, 214, 10, 0.16);
}

/* Botões Elétricos */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 30px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.975rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition-electric);
  user-select: none;
  letter-spacing: 0.02em;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* Botão Primário: Alta Voltagem com Reflexo de Luz */
.btn-primary {
  background: var(--gradient-plasma-btn);
  color: #07090e;
  border: 1px solid #ffffff;
  box-shadow: 0 8px 30px rgba(255, 170, 0, 0.5), 0 0 25px rgba(255, 214, 10, 0.35), inset 0 1px 2px #ffffff;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--transition-cubic);
}

.btn-primary:hover::after {
  left: 150%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffffff 0%, #fff7a1 25%, #ffd60a 65%, #ff9e00 100%);
  box-shadow: 0 14px 42px rgba(255, 170, 0, 0.7), 0 0 35px rgba(255, 214, 10, 0.55);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-secondary {
  background: rgba(22, 28, 44, 0.7);
  color: var(--text-secondary);
  border: 1.5px solid rgba(255, 214, 10, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.btn-secondary:hover {
  background: rgba(32, 40, 62, 0.95);
  color: #ffffff;
  border-color: rgba(255, 214, 10, 0.5);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 214, 10, 0.2);
  transform: translateY(-1px);
}

.nav-hint {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.8rem;
  color: #ffd60a;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Toast Notificação Elétrico e Adaptável */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  background: rgba(14, 18, 28, 0.96);
  border: 1.5px solid #ffd60a;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 28px rgba(255, 214, 10, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 1000;
  pointer-events: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 320ms var(--transition-cubic), opacity 320ms var(--transition-cubic);
  width: max-content;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  text-align: center;
  line-height: 1.35;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-notice svg {
  width: 18px;
  height: 18px;
  color: #ffd60a;
  flex-shrink: 0;
}

/* Tela de Sucesso */
.success-card {
  text-align: center;
  padding: 56px 36px;
}

.success-icon-wrapper {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--gradient-plasma-btn);
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  box-shadow: 0 0 60px rgba(255, 214, 10, 0.7);
  animation: successIconPulse 2.5s ease-in-out infinite alternate;
}

@keyframes successIconPulse {
  0% { transform: scale(1); box-shadow: 0 0 40px rgba(255, 214, 10, 0.5); }
  100% { transform: scale(1.06); box-shadow: 0 0 70px rgba(255, 214, 10, 0.85); }
}

.success-icon-wrapper svg {
  width: 48px;
  height: 48px;
  color: #07090e;
}

.success-title {
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  font-weight: 900;
  margin-bottom: 16px;
  background: var(--gradient-electric-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 20px rgba(255, 214, 10, 0.4));
  letter-spacing: -0.02em;
}

.success-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 34px;
}

.success-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsividade Mobile (max-width: 640px) - Otimização de Viewport e Ergonomia
   ========================================================================== */
@media (max-width: 640px) {
  /* Cabeçalho Compacto */
  .header-inner {
    padding: 8px 16px;
  }

  .brand-logo {
    height: 32px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .step-counter {
    padding: 4px 10px;
    font-size: 0.725rem;
  }

  /* Layout Geral Centralizado */
  .main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 14px 28px;
    width: 100%;
    box-sizing: border-box;
  }

  .form-stage {
    margin: auto 0;
    width: 100%;
  }

  /* Toast Adaptável Mobile */
  .toast-notice {
    bottom: 18px;
    padding: 10px 16px;
    font-size: 0.825rem;
    max-width: calc(100vw - 28px);
    width: auto;
    border-radius: var(--radius-full);
  }

  /* Cartão de Etapa */
  .step-card {
    padding: 16px 14px 14px;
    border-radius: var(--radius-md);
    overflow: visible !important;
  }

  /* Welcome Hero - 100% Above the Fold */
  .hero-logo {
    height: 44px;
    margin-bottom: 8px;
  }

  .badge-tag {
    padding: 4px 10px;
    font-size: 0.7rem;
    margin-bottom: 8px;
  }

  .hero-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
    line-height: 1.25;
  }

  .hero-desc {
    font-size: 0.825rem;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  .hero-meta {
    display: flex;
    flex-direction: row !important;
    gap: 12px;
    padding: 6px 12px;
    margin-bottom: 14px;
    font-size: 0.75rem;
    border-radius: var(--radius-full);
  }

  .welcome-hero .btn-primary {
    width: 100%;
    min-height: 46px;
    font-size: 0.925rem;
  }

  /* Perguntas e Textos */
  .q-header {
    margin-bottom: 12px;
  }

  .q-badge {
    padding: 3px 10px;
    font-size: 0.7rem;
    margin-bottom: 6px;
  }

  .q-title {
    font-size: 1.18rem;
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .q-instruction {
    font-size: 0.825rem;
    line-height: 1.4;
  }

  /* Opções Compactas e Acessíveis */
  .options-stack {
    gap: 8px;
    margin-bottom: 16px;
  }

  .option-item {
    min-height: 48px;
    padding: 10px 14px;
    font-size: 0.9rem;
    border-radius: 12px;
    gap: 12px;
  }

  .key-hint {
    display: none;
  }

  .nav-hint {
    display: none;
  }

  /* Barra de Controles Sticky no Mobile */
  .controls-bar {
    position: sticky;
    bottom: 0;
    z-index: 40;
    background: rgba(8, 10, 15, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 14px;
    margin: 14px -14px -14px;
    border-top: 1px solid rgba(255, 214, 10, 0.25);
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.85);
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
  }

  /* Botões e Inputs */
  .btn {
    min-height: 46px;
    padding: 0 18px;
    font-size: 0.9rem;
  }

  .form-input,
  .form-textarea {
    min-height: 48px;
    padding: 12px 14px;
    font-size: 0.925rem;
  }

  .form-textarea {
    min-height: 110px;
  }

  /* Tela de Sucesso */
  .success-card {
    padding: 32px 16px;
  }

  .success-icon-wrapper {
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
  }

  .success-icon-wrapper svg {
    width: 36px;
    height: 36px;
  }

  .success-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .success-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 24px;
  }
}
