/* ============================================
   NOVARK GROUP — Funil Multi-Step 2-Column
   Modelo: Grupo Rugido
============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #0f1014;
  color: #fff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

:root {
  --gold:         #F5A800;
  --gold-dark:    #D48F00;
  --bg:           #0f1014;
  --bg-panel:     #13151a;
  --bg-opt:       #1c1f27;
  --border:       #2a2d38;
  --border-hover: #F5A800;
  --text:         #ffffff;
  --text-muted:   #7a8299;
  --radius:       12px;
  --sidebar-w:    52%;
}

/* ══════════════════════════════════════════
   LAYOUT 2-COLUMN
══════════════════════════════════════════ */
.layout {
  display: flex;
  min-height: 100vh;
}

/* ══════════════════════════════════════════
   SIDEBAR ESQUERDO
══════════════════════════════════════════ */
.sidebar {
  position: relative;
  width: var(--sidebar-w);
  flex-shrink: 0;
  overflow: hidden;
}

/* Foto de fundo full-height */
.sidebar-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sidebar-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transform: translateY(-42%);
  transition: transform 1.2s ease, opacity 0.4s ease;
}

.sidebar-bg img.step-transition {
  transform: translateY(-42%) scale(1.03);
}

/* Gradiente sobre a foto */
.sidebar-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(10, 11, 15, 0.82) 0%,
      rgba(10, 11, 15, 0.55) 40%,
      rgba(10, 11, 15, 0.75) 70%,
      rgba(10, 11, 15, 0.95) 100%);
  transition: background 0.7s ease;
}

/* Conteúdo sobre o overlay */
.sidebar-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2.5rem 2rem 1rem;
  height: 100%;
}

/* Logo no sidebar */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.s-logo-icon {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 0 20px rgba(245,168,0,0.5));
}

.s-logo-text {
  height: 26px;
  width: auto;
}

/* ── Sidebar Stat (step 4+) ── */
.sidebar-stat {
  position: absolute;
  bottom: 220px;
  left: 2rem;
  right: 2rem;
  z-index: 2;
  flex-direction: column;
  transition: opacity 0.3s ease;
}

.sidebar-stat.fading { opacity: 0; }

.stat-phrase {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.sidebar-testimonial {
  transition: opacity 0.3s ease;
}
.sidebar-testimonial.fading { opacity: 0; }

/* No modo stat o testimonial fica colado ao fundo */
.sidebar--stat .sidebar-testimonial {
  margin-top: auto;
}

/* Headline */
.sidebar-headline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.sidebar-headline h2 {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.02em;
}

.sidebar-headline p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* Sidebar headline transition */
.sidebar-headline h2,
.sidebar-headline p {
  transition: opacity 0.3s ease;
}

.sidebar-headline.fading h2,
.sidebar-headline.fading p {
  opacity: 0;
}

/* Logos dos clientes */
.sidebar-clients {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-clients-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
}

/* ── Marquee ── */
.marquee-track {
  overflow: hidden;
  display: flex;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.marquee-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee-track:hover .marquee-list {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.s-logo-wrap {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.7rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 130px;
  height: 66px;
}

.s-logo-wrap img {
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
  opacity: 0.85;
}

/* Depoimento */
.sidebar-testimonial {
  margin-top: 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.s-quote {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  font-style: italic;
}

.s-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.s-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.s-author strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.s-author span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════
   PAINEL DIREITO — FORMULÁRIO
══════════════════════════════════════════ */
.form-panel {
  flex: 1;
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
}

/* Logo mobile (hidden on desktop) */
.mobile-logo {
  display: none;
}

/* ── Barra de progresso ── */
.progress-area {
  padding: 1.5rem 2.5rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.65rem;
}

.progress-pct {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
}

.progress-slabel {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gold);
  border-radius: 100px;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

/* ── STEPS ── */
.step {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 2.5rem;
  animation: fadeUp 0.3s ease forwards;
}

.step.active {
  display: flex;
}

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

/* ── INTRO STEP ── */

.intro-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.intro-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #fff;
}

.intro-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  max-width: 420px;
}

.intro-time {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
}

.intro-time strong {
  color: rgba(255,255,255,0.75);
}

.gold { color: var(--gold); }

.btn-next--intro {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 240px;
}

/* ── QUESTION ── */
.step-q {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  letter-spacing: -0.01em;
}

.step-q strong {
  color: var(--gold);
}

.step-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: -0.5rem;
}

.step-sub strong {
  color: rgba(255,255,255,0.8);
}

/* ── OPTIONS ── */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

.opt input[type="radio"] {
  display: none;
}

.opt-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-opt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.opt-box:hover {
  border-color: rgba(245,168,0,0.4);
  background: #21242e;
}

.opt-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.opt-radio::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  transform: scale(0.4);
}

.opt-label {
  font-size: 0.93rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
  flex: 1;
}

/* Selected */
.opt.selected .opt-box {
  border-color: var(--gold);
  background: rgba(245,168,0,0.07);
  transform: translateX(4px);
}

.opt.selected .opt-radio {
  border-color: var(--gold);
  background: rgba(245,168,0,0.18);
}

.opt.selected .opt-radio::after {
  opacity: 1;
  transform: scale(1);
}

.opt.selected .opt-label {
  color: #fff;
  font-weight: 600;
}

/* ── TEXT INPUT ── */
.input-wrap {
  width: 100%;
}

.text-input {
  width: 100%;
  background: var(--bg-opt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-family: inherit;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.text-input::placeholder {
  color: rgba(255,255,255,0.18);
}

.text-input:focus {
  border-color: var(--gold);
}

/* ── BUTTONS ── */
.btn-next,
.btn-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: var(--gold);
  color: #000;
  transition: background 0.2s, transform 0.15s, opacity 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-next::after,
.btn-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-next:not(:disabled):hover::after,
.btn-submit:not(:disabled):hover::after {
  transform: translateX(100%);
}

.btn-next:not(:disabled):hover,
.btn-submit:not(:disabled):hover {
  background: var(--gold-dark);
  transform: scale(1.02);
  box-shadow: 0 4px 24px rgba(245,168,0,0.3);
}

.btn-next:disabled,
.btn-submit:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  transform: none;
}

.btn-back {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  padding: 0.25rem;
  transition: color 0.2s;
}

.btn-back:hover {
  color: rgba(255,255,255,0.65);
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ── THANK YOU ── */
.step-thanks {
  align-items: flex-start;
  text-align: left;
  justify-content: flex-start;
  gap: 1.25rem;
}

/* Ícone de check */
.thanks-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(245,168,0,0.12);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

/* Título */
.thanks-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.thanks-sub {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* Divisor */
.thanks-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.07);
}

/* Seções */
.thanks-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.thanks-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}

/* Checklist */
.thanks-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.thanks-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

.thanks-checklist li:last-child { border-bottom: none; }

.tc-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(245,168,0,0.15);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.thanks-checklist li strong { color: #fff; font-weight: 600; }

/* Steps numerados */
.thanks-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.thanks-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.thanks-steps li:last-child { border-bottom: none; }

.ts-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.thanks-steps li strong { color: #fff; font-weight: 600; }

/* Aviso fique atento */
.thanks-alert {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: rgba(245,168,0,0.06);
  border: 1px solid rgba(245,168,0,0.2);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
}

.thanks-alert svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.thanks-alert strong { color: #fff; }

.thanks-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.2s;
  align-self: center;
}
.thanks-back-btn:hover { color: rgba(255,255,255,0.75); }
.thanks-back-btn svg { opacity: 0.6; }

.btn-wpp-final {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #25D366;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  padding: 0.9rem 1.75rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-wpp-final:hover {
  background: #1ebe5a;
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}

/* ── FORM FOOTER ── */
.form-footer {
  padding: 1.25rem 2.5rem 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.form-footer p {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.2);
  text-align: center;
  line-height: 1.6;
}

.form-footer p strong {
  color: rgba(255,255,255,0.35);
}

.form-footer-copy {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.12);
  margin-top: 0.2rem;
}

/* ── Toast de feedback ── */
.nvk-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1c1f27;
  border: 1px solid #2a2d38;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
}
.nvk-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.nvk-toast--erro { border-color: rgba(255,107,107,0.4); }
.nvk-toast--sucesso { border-color: rgba(52,199,89,0.4); }

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════════ */
@media (max-width: 860px) {
  .layout {
    flex-direction: column;
  }

  /* ── Sidebar: foto com texto realmente sobreposto ── */
  .sidebar {
    display: block;
    width: 100%;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    height: 68vh; /* cobre foto + margem do formulário sem vazio */
    overflow: hidden;
  }

  /* Foto ocupa todo o sidebar (mesmo esquema do desktop) */
  .sidebar-bg {
    position: absolute;
    inset: 0;
  }

  .sidebar-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    width: 100%;
    height: 130% !important;
    top: 0;
    transform: translateY(-20%);
    transition: opacity 0.4s ease;
  }

  .sidebar-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
      rgba(10,11,15,0.05) 0%,
      rgba(10,11,15,0.15) 45%,
      rgba(10,11,15,0.80) 75%,
      rgba(10,11,15,0.97) 100%) !important;
  }

  /* Conteúdo sobreposto: logo no topo, texto na base */
  .sidebar-content {
    position: absolute;
    inset: 0;
    height: 100%;
    padding: 1.25rem 1.5rem 6.6rem;
    gap: 0.4rem;
    background: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .sidebar-logo {
    justify-content: center;
    transform: translateY(-30%);
  }

  .s-logo-icon {
    height: 104px;
  }

  /* Oculta marquee e depoimento no mobile */
  .sidebar-clients,
  .sidebar-testimonial {
    display: none;
  }

  /* Frase de impacto mobile */
  .sidebar-stat {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    display: flex;
    flex-direction: column;
  }

  .stat-phrase {
    font-size: 1.35rem;
    line-height: 1.2;
  }

  /* Headline mobile */
  .sidebar-headline {
    margin-top: 0;
  }

  .sidebar-headline h2 {
    font-size: 1.2rem;
  }

  .sidebar-headline p {
    font-size: 0.82rem;
  }

  /* Form panel sobe sobre a foto — efeito card */
  .form-panel {
    position: relative;
    z-index: 2;
    margin-top: -72px;
    border-radius: 20px 20px 0 0;
    transition: margin-top 0.4s ease;
  }

  /* Steps 4+ (stat mode): form sobe mais e frases acompanham */
  .sidebar--stat ~ .form-panel {
    margin-top: -144px;
  }

  .sidebar--stat .sidebar-content {
    padding-bottom: 9.6rem;
  }

  /* Cabeçalho mobile: voltar + ícone */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0;
    flex-shrink: 0;
  }

  .mobile-back-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
  }

  .mobile-back-btn:hover { color: #fff; }

  .mobile-header-spacer {
    width: 30px; /* equilibra o lado direito */
  }

  .mobile-logo {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ml-icon {
    height: 30px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(245,168,0,0.35));
  }

  /* Opções: estilo lista limpa como referência */
  .options-list {
    gap: 0;
  }

  .opt-box {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
    padding: 1rem 0.25rem;
    box-shadow: none;
  }

  .opt:last-child .opt-box {
    border-bottom: none;
  }

  .opt.selected .opt-box {
    background: transparent;
    border-color: rgba(255,255,255,0.08);
    transform: none;
    box-shadow: none;
  }

  .opt-radio {
    border-radius: 4px; /* quadrado como referência */
    flex-shrink: 0;
  }

  .opt.selected .opt-radio {
    background: var(--gold);
    border-color: var(--gold);
  }

  .opt-label {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
  }

  .opt.selected .opt-label {
    color: #fff;
    font-weight: 600;
  }

  .progress-area {
    padding: 1.25rem 1.5rem 1rem;
  }

  #progressPct,
  #progressSlabel {
    display: none;
  }

  /* Esconde btn-back dentro dos steps (mobile-header cuida disso) */
  .btn-back {
    display: none;
  }

  .step {
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .intro-title {
    font-size: 1.55rem;
  }

  .step-q {
    font-size: 1.15rem;
  }

  .opt-box {
    padding: 0.8rem 0.9rem;
  }

  .opt-label {
    font-size: 0.88rem;
  }

  .form-footer {
    padding: 1rem 1.5rem 1.5rem;
  }

  .btn-next--intro {
    max-width: 100%;
  }
}
