/* ═══════════════════════════════════════════════════════════════
   THG.ADS - formulario.css
   Landing page de formulário interativo (funil de nicho imobiliário)
   ═══════════════════════════════════════════════════════════════ */

[hidden] { display: none !important; }

.lp {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Topo minimalista, sem menu, sem saída */
.lp-topbar {
  display: flex;
  justify-content: center;
  padding: 8px 24px 0;
}
/* logo recortada (sem a margem transparente do arquivo quadrado original):
   110px aqui tem o mesmo tamanho visual que 427px tinha no arquivo antigo */
.lp-logo { height: 110px; width: auto; filter: brightness(0) invert(1); }

/* Barra de progresso fixa */
.lp-progress {
  position: sticky;
  top: 0;
  z-index: 5;
  width: 100%;
  height: 4px;
  background: var(--border);
}
.lp-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--red);
  transition: width .4s var(--ease);
}

/* Intro */
.lp-intro {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding: 26px 0 56px;
}
.lp-intro .container { text-align: center; }
.lp-intro h1 {
  font-size: clamp(1.84rem, 4vw, 2.96rem);
  font-weight: 900;
  letter-spacing: -.026em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.lp-accent { color: var(--red); }

.lp-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: 36px;
}

.lp-bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 460px;
  margin-inline: auto;
  margin-bottom: 18px;
  text-align: left;
}
.lp-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.02rem;
  color: #d7d7d7;
  font-weight: 500;
}
.lp-bullets li svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.14);
  color: var(--red);
  margin-top: 1px;
}

.lp-disclaimer {
  font-size: 0.82rem;
  color: var(--dim);
  margin-bottom: 28px;
}

.lp-microcopy {
  font-size: 0.82rem;
  color: var(--dim);
  margin-top: 14px;
}

/* Efeito de brilho contínuo no botão de início */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: btn-shine-sweep 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btn-shine-sweep {
  0% { left: -60%; }
  55% { left: 130%; }
  100% { left: 130%; }
}

/* Formulário: uma pergunta por tela */
.lp-form {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: 56px;
  min-height: 70vh;
}
.lp-form .container { position: relative; }

#leadForm { position: relative; }

.lp-step { display: none; }
.lp-step.is-active { display: block; }

.lp-step-count {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.lp-step h2 { margin-bottom: 12px; }
.lp-step-hint { color: var(--muted); font-size: 0.98rem; margin-bottom: 22px; }
.lp-step h2 + .lp-input,
.lp-step h2 + .lp-step-hint { margin-top: 8px; }

.lp-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border2);
  padding: 14px 4px;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 32px;
  margin-top: 18px;
  transition: border-color .25s var(--ease);
}
.lp-input::placeholder { color: var(--dim); }
.lp-input:focus { outline: none; border-color: var(--red); }

.lp-choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
}
.lp-choice {
  text-align: left;
  padding: 18px 22px;
  border-radius: var(--r);
  border: 1.5px solid var(--border2);
  background: var(--bg-card);
  color: #d7d7d7;
  font-size: 1.02rem;
  font-weight: 500;
  transition: all .2s var(--ease);
}
.lp-choice:hover { border-color: var(--red); color: #fff; transform: translateX(4px); }
.lp-choice.is-selected {
  border-color: var(--red);
  background: rgba(220, 38, 38, 0.1);
  color: #fff;
}

.lp-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 34px;
  padding: 10px 20px 10px 13px;
  border: 1.5px solid var(--border2);
  border-radius: var(--pill);
  background: var(--bg-card);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: border-color .22s var(--ease), color .22s var(--ease), background .22s var(--ease);
}
.lp-back svg {
  width: 15px;
  height: 15px;
  transition: transform .22s var(--ease);
}
.lp-back:hover {
  border-color: var(--red);
  background: rgba(220, 38, 38, 0.1);
  color: #fff;
}
.lp-back:hover svg { transform: translateX(-3px); }
.lp-back:active { transform: scale(.97); }

/* Etapa final: agendamento */
.lp-final {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: 56px;
}
.lp-final .container { text-align: center; }
.lp-final h2 { margin-bottom: 12px; max-width: 640px; margin-inline: auto; }

/* ─── Prova social: carrossel de feedbacks ─── */
.lp-social {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding-block: 64px 72px;
}
.lp-social-head { text-align: center; max-width: 560px; margin: 0 auto 38px; }
.lp-social-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.14;
  margin-bottom: 12px;
}
.lp-social-head p { font-size: .96rem; color: var(--muted); }

.fbx {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-inline: 24px;
}
.fbx-track {
  display: flex;
  flex: 1;
  gap: 18px;
  overflow-x: auto;
  padding-block: 6px;
  scrollbar-width: none;
  cursor: grab;
  min-width: 0;
  width: 0; /* ver comentário em .sched-days no mesmo arquivo */
  overscroll-behavior-x: contain;
}
.fbx-track::-webkit-scrollbar { display: none; }
.fbx-track.is-dragging { cursor: grabbing; }

.fbx-card {
  position: relative;
  flex: 0 0 auto;
  width: 246px;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 1px solid var(--border2);
  border-radius: var(--r-xl);
  background: var(--bg-card);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.fbx-card img,
.fbx-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.fbx-card:hover {
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
}

.fbx-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55) 100%);
  pointer-events: none;
}
.fbx-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px 5px 8px;
  border-radius: var(--pill);
  background: rgba(220, 38, 38, .92);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.fbx-badge svg { width: 12px; height: 12px; }

.fbx-nav {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border2);
  background: var(--bg-card);
  color: var(--muted);
  transition: all .22s var(--ease);
}
.fbx-nav svg { width: 18px; height: 18px; }
.fbx-nav:hover { border-color: var(--red); color: #fff; background: rgba(220, 38, 38, .12); }

/* ─── Lightbox ─── */
.fbx-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  background: rgba(4, 4, 4, .94);
  backdrop-filter: blur(6px);
  animation: fbx-fade .25s var(--ease);
}
@keyframes fbx-fade { from { opacity: 0; } to { opacity: 1; } }
.fbx-lb-stage {
  max-width: min(440px, 88vw);
  max-height: 86vh;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border2);
  background: var(--bg-card);
}
.fbx-lb-stage img,
.fbx-lb-stage video {
  display: block;
  max-width: min(440px, 88vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.fbx-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border2);
  background: var(--bg-card);
  color: var(--muted);
  transition: all .22s var(--ease);
}
.fbx-close svg { width: 18px; height: 18px; }
.fbx-close:hover { border-color: var(--red); color: #fff; }

/* ─── Agendamento próprio ─── */
.sched {
  margin-top: 30px;
  border: 1px solid var(--border2);
  border-radius: var(--r-xl);
  background: var(--bg-card);
  overflow: hidden;
  text-align: left;
}
.sched-head, .sched-body, .sched-foot { padding: 22px 24px; }
.sched-head { border-bottom: 1px solid var(--border); }
.sched-foot { border-top: 1px solid var(--border); }

.sched-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.sched-days-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sched-days {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
  /* width:0 explícito é necessário além de flex/min-width: sem isso, o Chromium
     mobile mede o conteúdo intrínseco dos 15 botões de dia (~1100px) antes do
     flex encolher, e expande a viewport inteira da página pra esse tamanho */
  width: 0;
}
.sched-days::-webkit-scrollbar { display: none; }

.sched-day {
  flex: 0 0 auto;
  width: 68px;
  padding: 11px 0 12px;
  border: 1.5px solid var(--border2);
  border-radius: var(--r);
  background: var(--bg2);
  color: var(--muted);
  text-align: center;
  transition: all .2s var(--ease);
}
.sched-day span { display: block; }
.sched-day .sd-dow { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sched-day .sd-num { font-size: 1.32rem; font-weight: 800; color: #fff; line-height: 1.2; margin-top: 2px; }
.sched-day .sd-mon { font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.sched-day:hover { border-color: var(--red); }
.sched-day.is-on { border-color: var(--red); background: rgba(220, 38, 38, .12); color: #fff; }

.sched-arrow {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border2);
  background: var(--bg2);
  color: var(--muted);
  transition: all .2s var(--ease);
}
.sched-arrow svg { width: 15px; height: 15px; }
.sched-arrow:hover { border-color: var(--red); color: #fff; }

.sched-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
}
.sched-slot {
  padding: 13px 8px;
  border: 1.5px solid var(--border2);
  border-radius: var(--rs);
  background: var(--bg2);
  color: #d7d7d7;
  font-size: .95rem;
  font-weight: 600;
  transition: all .2s var(--ease);
}
.sched-slot:hover { border-color: var(--red); color: #fff; transform: translateY(-2px); }
.sched-slot.is-on { border-color: var(--red); background: var(--red); color: #fff; }
.sched-slot:disabled { opacity: .28; pointer-events: none; text-decoration: line-through; }

.sched-skeleton {
  height: 46px;
  border-radius: var(--rs);
  background: linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 50%, var(--bg2) 75%);
  background-size: 200% 100%;
  animation: sched-load 1.2s linear infinite;
}
@keyframes sched-load { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.sched-empty { font-size: .92rem; color: var(--muted); margin-top: 4px; }
.sched-pick {
  font-size: .95rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 14px;
}
.sched-pick strong { color: var(--red); }
.sched-note { font-size: .78rem; color: var(--dim); margin-top: 12px; text-align: center; }
#schedConfirm:disabled { opacity: .4; pointer-events: none; }

.sched-done { margin-top: 30px; }
.sched-check {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(220, 38, 38, .14);
  color: var(--red);
  animation: sched-pop .45s var(--ease);
}
.sched-check svg { width: 28px; height: 28px; }
@keyframes sched-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.sched-done-when {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--border2);
  border-radius: var(--pill);
  background: var(--bg-card);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 22px;
}

@media (max-width: 640px) {
  .lp-topbar { padding-top: 8px; }
  .lp-logo { height: 40px; }
  .lp-intro { padding: 8px 0 36px; }
  .lp-lead { font-size: .88rem; margin-bottom: 22px; }
  .lp-form, .lp-final { padding-block: 36px; }
  .lp-input { font-size: 1.25rem; }

  .lp-social { padding-block: 46px 54px; }
  .lp-social-head { margin-bottom: 26px; }
  .fbx { padding-inline: 16px; gap: 8px; }
  .fbx-nav { display: none; }
  .fbx-card { width: 212px; }
  .fbx-track { gap: 14px; }

  .sched-head, .sched-body, .sched-foot { padding: 18px 16px; }
  .sched-slots { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
  .sched-slot { padding: 12px 6px; font-size: .9rem; }
  .sched-day { width: 62px; }
  .sched-arrow { display: none; }
}
