/* Formulário de qualificação de leads (/orcamento/) — estilo Typeform:
   uma pergunta por tela, barra de progresso, transições suaves.
   Mobile-first: a maior parte do tráfego chega de Instagram/WhatsApp. */

.lead-form-section { padding: clamp(24px, 4vw, 48px) 0 80px; }

.lead-form {
  position: relative;
  max-width: 680px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 5vw, 48px);
  padding-top: clamp(40px, 7vw, 64px);
  overflow: hidden;
}

/* ---- Barra de progresso ---- */
.lead-form__progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--bg-muted);
}
.lead-form__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-hover));
  transition: width 400ms var(--ease);
}

/* ---- Etapas ---- */
.lf-step {
  display: none;
  min-height: 320px;
  flex-direction: column;
  justify-content: center;
}
.lf-step.is-active {
  display: flex;
  animation: lf-slide-in 350ms var(--ease);
}
@keyframes lf-slide-in {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
.lf-step.is-active.lf-anim-back { animation-name: lf-slide-back; }
@keyframes lf-slide-back {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .lf-step.is-active { animation: none; }
  .lead-form__progress-bar { transition: none; }
}

.lf-step__kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.lf-step__title {
  font-size: clamp(24px, 5.5vw, 32px);
  margin-bottom: 8px;
}
/* O título recebe foco programático na troca de etapa (leitor de tela);
   sem anel visual — o foco visível fica pros controles interativos. */
.lf-step__title:focus { outline: none; }
.lf-step__title label { cursor: text; }
.lf-step__hint {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 8px;
}
.lf-step__actions { margin-top: 24px; }
.lf-step__actions .button { width: 100%; }
@media (min-width: 560px) {
  .lf-step__actions .button { width: auto; min-width: 220px; }
}

/* ---- Inputs ---- */
.lf-input {
  width: 100%;
  margin-top: 16px;
  padding: 14px 4px;
  font-size: clamp(18px, 4.5vw, 22px);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--border-strong);
  border-radius: 0;
  transition: border-color 200ms var(--ease);
}
.lf-input:focus {
  outline: none;
  border-bottom-color: var(--brand);
}
.lf-input::placeholder { color: var(--text-dim); }

.lf-fields { display: grid; gap: 20px; margin-top: 16px; }
.lf-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.lf-field .lf-input { margin-top: 2px; }

/* ---- Cards de escolha ---- */
.lf-cards {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.lf-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  background: var(--bg-alt);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 150ms var(--ease), background 150ms var(--ease), transform 150ms var(--ease);
}
.lf-card:hover { border-color: var(--brand-hover); background: var(--bg); }
.lf-card:active { transform: scale(0.98); }
.lf-card.is-selected {
  border-color: var(--brand);
  background: rgba(255, 221, 0, 0.12);
}
.lf-card__emoji { font-size: 24px; line-height: 1; }

/* ---- Resumo (tela de confirmação) ---- */
.lf-summary {
  margin: 16px 0 4px;
  display: grid;
  gap: 8px;
}
.lf-summary li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  font-size: 14px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.lf-summary li span:first-child { color: var(--text-muted); }
.lf-summary li span:last-child { font-weight: 600; text-align: right; word-break: break-word; margin-left: auto; }

/* ---- Consentimento LGPD ---- */
.lf-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
}
.lf-consent input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--brand);
  cursor: pointer;
}
.lf-consent a { text-decoration: underline; }

/* ---- Erros ---- */
.lf-error {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #c0392b;
}

/* ---- Voltar ---- */
.lead-form__back {
  position: absolute;
  top: 10px;
  left: clamp(24px, 5vw, 48px);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 12px 12px 12px 0; /* alvo de toque ≥ 44px de altura */
  transition: color 150ms var(--ease);
}
.lead-form__back:hover { color: var(--text); }

/* ---- Tela final ---- */
.lf-step--done { text-align: center; align-items: center; }
.lf-done__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 208, 132, 0.12);
  color: #00875a;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 20px;
}
.lf-step--done .lf-step__actions { width: 100%; }
.lf-step--done .button--whatsapp { width: 100%; }
@media (min-width: 560px) {
  .lf-step--done .button--whatsapp { width: auto; }
}

/* Botão desabilitado durante o envio */
.lead-form [data-lf-submit][disabled] {
  opacity: 0.6;
  cursor: wait;
}
