/* ==========================================================================
   BRIEFING DO CLIENTE — GRUPO DOTUS
   Identidade visual extraída de https://lp-1.grupodotus.com.br/
   e da paleta oficial (Group paleta-dotus.png / logo-dotus.png)
   ========================================================================== */

:root {
  /* ========================================================================
     🖼️ IMAGENS CENTRALIZADAS (troque os caminhos/URLs em um único lugar)
     - Use caminho relativo ao projeto (ex.: url("logo-dotus.png"))
       ou URL externa (ex.: url("https://.../imagem.png"))
     - Para desativar uma imagem opcional, deixe como: none
     ======================================================================== */
  /* Caminho local: C:\Users\MK INFORMATICA\Music\forms_dotus_responce\logo-dotus.png */
  --img-logo: url("logo-dotus.png");

  /* Caminho local: C:\Users\MK INFORMATICA\Music\forms_dotus_responce\Group paleta-dotus.png */
  --img-paleta: url("Group paleta-dotus.png");

  /* Imagem de fundo opcional (caso queira textura/foto no background) */
  --img-fundo: none;

  /* Imagem da tela de agradecimento (ainda em definição — quando tiver o arquivo,
     basta trocar "none" por url("sua-imagem-obrigado.png")) */
  --img-obrigado: none;

  /* ========================================================================
     🎨 CORES DA MARCA (extraídas da LP + Group paleta-dotus.png)
     ======================================================================== */
  --orange: #ED4913;          /* Laranja avermelhado principal (LP / Logo) */
  --orange-warm: #FF8A00;     /* Laranja âmbar secundário (Paleta Dotus) */
  --charcoal: #1E1E1E;        /* Grafite escuro (Paleta Dotus) */

  /* Superfícies (Dark Theme oficial da LP) */
  --bg: #000000;
  --bg-alt: #141414;
  --surface: rgba(20, 20, 20, 0.88);
  --surface-elevated: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --surface-input: #0D0D0D;

  /* Bordas e divisores */
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-focus: #ED4913;

  /* Tipografia (Claro sobre Escuro) */
  --text-primary: #F8F7F5;
  --text-secondary: #B0ADA7;
  --text-muted: #7C796F;

  /* Tons de destaque translúcidos */
  --orange-06: rgba(237, 73, 19, 0.06);
  --orange-12: rgba(237, 73, 19, 0.12);
  --orange-20: rgba(237, 73, 19, 0.22);
  --orange-35: rgba(237, 73, 19, 0.38);

  /* Estados semânticos */
  --success: #22C55E;
  --success-bg: rgba(34, 197, 94, 0.12);
  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.12);

  /* ========================================================================
     ✒️ TIPOGRAFIA E ESPAÇAMENTOS
     ======================================================================== */
  --font-display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */

  /* Geometria e Sombras (fiel à LP) */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --shadow-cta: 0 8px 32px -8px rgba(237, 73, 19, 0.45);
  --shadow-cta-hover: 0 12px 40px -8px rgba(237, 73, 19, 0.65);
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--border);

  --transition: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   RESET E BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image: var(--img-fundo);
  background-size: cover;
  background-position: center;
  color: var(--text-primary);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

/* Utilitários de acessibilidade */
.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;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: var(--space-4);
  z-index: 100;
  padding: var(--space-3) var(--space-5);
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: top var(--transition);
}

.skip-link:focus {
  top: var(--space-4);
}

/* Honeypot invisível */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   DECORAÇÃO DE FUNDO (Brilhos sutis + Grid)
   ========================================================================== */
.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-decor__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.28;
}

.bg-decor__glow--1 {
  width: 480px;
  height: 480px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
}

.bg-decor__glow--2 {
  width: 420px;
  height: 420px;
  bottom: -180px;
  left: -120px;
  background: radial-gradient(circle, var(--orange-warm) 0%, transparent 70%);
}

.bg-decor__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75) 20%, transparent 80%);
}

/* ==========================================================================
   IMAGENS VINCULADAS ÀS VARIÁVEIS (:root)
   ========================================================================== */
.brand-logo {
  display: inline-block;
  width: 132px;
  height: 44px;
  background-image: var(--img-logo);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
}

.brand-logo--sm {
  width: 96px;
  height: 32px;
}

.brand-palette {
  display: block;
  width: 42px;
  height: 28px;
  background-image: var(--img-paleta);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
  opacity: 0.85;
  flex-shrink: 0;
}

/* ==========================================================================
   LAYOUT PRINCIPAL (Mobile-first → Split screen no Desktop)
   ========================================================================== */
.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Painel lateral (oculto no mobile, visível ≥ 960px) */
.aside {
  display: none;
}

/* Topbar mobile */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
}

.topbar__tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange-warm);
  background: var(--orange-12);
  border: 1px solid var(--orange-20);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

/* Área principal */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-5) var(--space-4) var(--space-8);
}

.shell,
.success {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

/* ==========================================================================
   TIPOGRAFIA E DESTAQUES
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange-warm);
  margin-bottom: var(--space-3);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
}

.text-gradient {
  background: linear-gradient(95deg, var(--orange) 0%, var(--orange-warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-accent {
  color: var(--orange-warm);
}

/* ==========================================================================
   BARRA DE PROGRESSO
   ========================================================================== */
.progress {
  margin-bottom: var(--space-4);
}

.progress__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

#progress-percent {
  color: var(--orange-warm);
  font-variant-numeric: tabular-nums;
}

.progress__track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress__fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-warm) 100%);
  border-radius: var(--radius-full);
  box-shadow: 0 0 14px rgba(237, 73, 19, 0.65);
  transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   CARD PRINCIPAL E ETAPAS
   ========================================================================== */
.card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-6) var(--space-5);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--orange-warm), transparent);
  opacity: 0.85;
}

.step {
  animation: stepEnter 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.step.is-going-back {
  animation-name: stepEnterBack;
}

@keyframes stepEnter {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes stepEnterBack {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.is-shaking {
  animation: shake 0.36s ease;
}

.step__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.step__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--orange-12);
  border: 1px solid var(--orange-20);
  color: var(--orange);
  flex-shrink: 0;
}

.step__badge svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step__badge--lg {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.step__badge--lg svg {
  width: 26px;
  height: 26px;
}

.step__count {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.step__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  outline: none;
}

.step__title--xl {
  font-size: clamp(1.5rem, 4vw, 1.95rem);
  margin-bottom: var(--space-3);
}

.step__lead {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: var(--space-6);
}

.step__desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: calc(var(--space-3) * -1);
  margin-bottom: var(--space-5);
}

/* Chips da tela de boas-vindas */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
}

.chips svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--orange-warm);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   CAMPOS DE FORMULÁRIO (Inputs, Ícones e Validação)
   ========================================================================== */
.field {
  margin-bottom: var(--space-5);
}

.field:last-of-type {
  margin-bottom: var(--space-2);
}

.field__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.req {
  color: var(--orange);
}

.optional {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.field__control {
  position: relative;
  display: flex;
  align-items: center;
}

.field__icon {
  position: absolute;
  left: 1rem;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: stroke var(--transition);
}

.field__prefix {
  position: absolute;
  left: 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.field__input {
  width: 100%;
  height: 3.4rem;
  padding: 0 2.75rem 0 2.85rem;
  background: var(--surface-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.field__input--prefixed {
  padding-left: 4.1rem;
}

.field__input::placeholder {
  color: var(--text-muted);
}

.field__input:hover {
  border-color: var(--border-strong);
}

.field__input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px var(--orange-12);
  background: #121212;
}

.field__control:focus-within .field__icon {
  stroke: var(--orange);
}

/* Indicador de status (check verde ou alerta vermelho) */
.field__status {
  position: absolute;
  right: 0.95rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--transition), transform var(--transition);
}

.field.is-valid .field__input {
  border-color: rgba(34, 197, 94, 0.55);
}

.field.is-valid .field__status {
  opacity: 1;
  transform: scale(1);
  background: var(--success-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322C55E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 13px;
  background-position: center;
  background-repeat: no-repeat;
}

.field.is-invalid .field__input {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-bg);
}

.field.is-invalid .field__status {
  opacity: 1;
  transform: scale(1);
  background: var(--danger-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EF4444' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.field__hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-2);
}

.field__error {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--danger);
  margin-top: var(--space-2);
  min-height: 0;
}

.field__error:empty {
  display: none;
}

.field__suggest {
  margin-top: var(--space-2);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.field__suggest button {
  color: var(--orange-warm);
  font-weight: 600;
  text-decoration: underline;
}

/* ==========================================================================
   CARDS DE OPÇÕES (Faturamento)
   ========================================================================== */
.options {
  border: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.option {
  display: block;
  cursor: pointer;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option__box {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--surface-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.option:hover .option__box {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.option input:focus-visible + .option__box {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-12);
}

.option input:checked + .option__box {
  border-color: var(--orange);
  background: linear-gradient(135deg, var(--orange-12) 0%, rgba(20, 20, 20, 0.9) 100%);
  box-shadow: 0 8px 24px -10px rgba(237, 73, 19, 0.45);
}

/* Ícone de barras crescentes */
.option__bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  width: 28px;
  height: 24px;
  padding: 3px;
  flex-shrink: 0;
}

.option__bars i {
  flex: 1;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  transition: background var(--transition);
}

.option__bars i:nth-child(1) { height: 40%; }
.option__bars i:nth-child(2) { height: 70%; }
.option__bars i:nth-child(3) { height: 100%; }

.option__bars[data-level="1"] i:nth-child(1),
.option__bars[data-level="2"] i:nth-child(1),
.option__bars[data-level="2"] i:nth-child(2),
.option__bars[data-level="3"] i {
  background: var(--orange-warm);
}

.option input:checked + .option__box .option__bars i {
  opacity: 1;
}

.option__text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.option__text strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.option__text small {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.option__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.option input:checked + .option__box .option__check {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 12px rgba(237, 73, 19, 0.55);
}

.option input:checked + .option__box .option__check::after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* ==========================================================================
   LISTA DE REVISÃO (Etapa 6)
   ========================================================================== */
.review {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.review__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.review__info {
  min-width: 0;
}

.review__ item dt,
.review__label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.review__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
}

.review__value.is-empty {
  color: var(--text-muted);
  font-weight: 400;
  font-style: italic;
}

.review__edit {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange-warm);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--orange-20);
  background: var(--orange-06);
  transition: background var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.review__edit:hover {
  background: var(--orange-12);
  border-color: var(--orange);
}

/* ==========================================================================
   BOTÕES E NAVEGAÇÃO (Fiel ao .btn-cta da LP)
   ========================================================================== */
.form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.form-nav__hint {
  display: none;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.form-nav__hint kbd {
  font-family: inherit;
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  height: 3.35rem;
  padding: 0 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
  user-select: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-cta);
}

.btn--primary:hover:not(:disabled) {
  background: #f55119;
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta-hover);
}

.btn--primary:hover:not(:disabled) svg {
  transform: translateX(4px);
}

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

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 0 1.25rem;
}

.btn--ghost:hover:not(:disabled) {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--surface-elevated);
}

.btn--ghost:hover:not(:disabled) svg {
  transform: translateX(-3px);
}

.btn--lg {
  height: 3.6rem;
  padding: 0 2.25rem;
  font-size: 0.9rem;
}

.btn--full-mobile {
  width: 100%;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Spinner de estado "Enviando..." */
.btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn.is-loading .btn__icon {
  display: none;
}

.btn.is-loading .btn__spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Alerta de erro no envio */
.form-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--danger-bg);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
}

.form-alert svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--danger);
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-alert strong {
  display: block;
  color: #FCA5A5;
  margin-bottom: 2px;
}

.form-alert p {
  color: var(--text-secondary);
}

/* Rodapé de segurança */
.footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: var(--space-4);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.footnote svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ==========================================================================
   TELA FINAL DE AGRADECIMENTO
   ========================================================================== */
.success {
  text-align: center;
  animation: stepEnter 0.4s ease;
}

.success__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-5);
}

/* Imagem customizada de obrigado (aparece automaticamente se --img-obrigado != none) */
.success__image {
  display: none;
  width: 180px;
  height: 140px;
  background-image: var(--img-obrigado);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: var(--space-3);
}

body.has-thankyou-img .success__image {
  display: block;
}

body.has-thankyou-img .success__check {
  display: none;
}

.success__check {
  width: 68px;
  height: 68px;
  fill: none;
  stroke: var(--success);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  padding: 12px;
  border-radius: 50%;
  background: var(--success-bg);
  box-shadow: 0 0 32px rgba(34, 197, 94, 0.25);
}

.next-steps {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-6) 0;
  padding: var(--space-4);
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.next-steps li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.next-steps li > span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.next-steps li.is-done > span {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.next-steps strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.next-steps small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.success__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ==========================================================================
   RESPONSIVIDADE (Tablet & Desktop ≥ 640px e ≥ 960px)
   ========================================================================== */
@media (min-width: 640px) {
  .card {
    padding: var(--space-8) var(--space-8);
  }

  .btn--full-mobile {
    width: auto;
  }

  .form-nav__hint {
    display: inline-block;
  }

  .success__actions {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 960px) {
  .app {
    display: grid;
    grid-template-columns: minmax(340px, 430px) 1fr;
  }

  .topbar {
    display: none;
  }

  .aside {
    display: flex;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.92) 0%, rgba(10, 10, 10, 0.96) 100%);
    border-right: 1px solid var(--border);
    padding: var(--space-8) var(--space-8);
  }

  .aside__inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    gap: var(--space-8);
  }

  .aside__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-3);
  }

  .aside__text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
  }

  /* Stepper vertical no painel lateral */
  .stepper {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .stepper__item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color var(--transition);
  }

  .stepper__dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--border-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all var(--transition);
  }

  .stepper__item.is-current {
    color: var(--text-primary);
    font-weight: 600;
  }

  .stepper__item.is-current .stepper__dot {
    border-color: var(--orange);
    background: var(--orange-12);
    color: var(--orange-warm);
    box-shadow: 0 0 12px rgba(237, 73, 19, 0.4);
  }

  .stepper__item.is-done {
    color: var(--text-secondary);
  }

  .stepper__item.is-done .stepper__dot {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
  }

  .aside__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4);
    padding-top: var(--space-5);
    border-top: 1px solid var(--border);
  }

  .trust {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    font-size: 0.78rem;
    color: var(--text-muted);
  }

  .trust li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
  }

  .trust svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: var(--orange-warm);
    stroke-width: 2;
    flex-shrink: 0;
  }

  .main {
    padding: var(--space-10);
  }
}

/* Respeita preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

