/* ───────── Qualificação antes do WhatsApp ───────── */
.qf {
  --qf-bg: #0E0E0E;
  --qf-line: var(--line, rgba(245, 244, 242, 0.12));
  --qf-text: var(--text, #F5F4F2);
  --qf-text-2: var(--text-2, rgba(245, 244, 242, 0.68));
  --qf-text-3: var(--text-3, rgba(245, 244, 242, 0.52));
  --qf-accent: var(--ember, #FE4D00);
  --qf-ease: cubic-bezier(0.22, 1, 0.36, 1);
  width: min(560px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; border: 1px solid var(--qf-line); border-radius: 28px;
  background: var(--qf-bg); color: var(--qf-text);
  font-family: var(--sans, 'Open Sauce Sans', system-ui, sans-serif);
  overflow: auto; overscroll-behavior: contain;
}
.qf::backdrop { background: rgba(3, 3, 3, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.qf[open] { animation: qf-in .45s var(--qf-ease); }
.qf[open]::backdrop { animation: qf-fade .3s ease; }
@keyframes qf-in { from { opacity: 0; transform: translateY(16px) scale(.985); } }
@keyframes qf-fade { from { opacity: 0; } }

.qf__in { padding: clamp(24px, 5vw, 40px); }
.qf__top { display: flex; align-items: center; gap: 16px; }
.qf__step { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--qf-text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.qf__bar { flex: 1; height: 2px; border-radius: 2px; background: var(--qf-line); overflow: hidden; }
.qf__bar i { display: block; height: 100%; width: 25%; background: var(--qf-accent); transition: width .5s var(--qf-ease); }
.qf__close { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin: -8px -8px -8px 0; border: 0; border-radius: 50%; background: transparent; color: var(--qf-text-2); cursor: pointer; transition: background .2s ease, color .2s ease; }
.qf__close:hover { background: rgba(245, 244, 242, .08); color: var(--qf-text); }
.qf__close svg { width: 18px; height: 18px; }

.qf__pane { margin-top: clamp(28px, 4vw, 40px); border: 0; min-width: 0; }
.qf__pane[hidden] { display: none; }
.qf__pane.is-entering { animation: qf-pane .4s var(--qf-ease); }
@keyframes qf-pane { from { opacity: 0; transform: translateX(12px); } }
.qf__q { font-size: clamp(1.625rem, 4vw, 2.125rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.04em; text-wrap: balance; }
.qf__q em { font-family: var(--serif, 'Instrument Serif', Georgia, serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.qf__hint { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--qf-text-2); }

.qf__opts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.qf__opt { position: relative; }
.qf__opt input { position: absolute; opacity: 0; pointer-events: none; }
.qf__opt span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--qf-line); border-radius: 100px; font-size: 15px; letter-spacing: -0.01em; color: var(--qf-text); cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.qf__opt:hover span { border-color: rgba(245, 244, 242, .32); }
.qf__opt input:checked + span { background: var(--qf-accent); border-color: var(--qf-accent); color: #fff; }
.qf__opt input:focus-visible + span { outline: 2px solid var(--qf-accent); outline-offset: 3px; }

.qf__fields { display: grid; gap: 14px; margin-top: 24px; }
.qf__field { display: grid; gap: 8px; }
.qf__field label { font-size: 13px; color: var(--qf-text-3); }
.qf__field input { width: 100%; height: 52px; padding: 0 20px; border: 1px solid var(--qf-line); border-radius: 100px; background: rgba(245, 244, 242, .03); color: var(--qf-text); font: inherit; font-size: 16px; transition: border-color .2s ease; }
.qf__field input::placeholder { color: rgba(245, 244, 242, .36); }
.qf__field input:focus { outline: none; border-color: var(--qf-accent); }
.qf__extra[hidden] { display: none; }
.qf__extra { margin-top: 18px; }

.qf__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(28px, 4vw, 40px); }
.qf__back { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--qf-text-3); font: inherit; font-size: 15px; cursor: pointer; transition: color .2s ease; }
.qf__back:hover { color: var(--qf-text); }
.qf__back[hidden] { visibility: hidden; display: block; }
.qf__next { display: inline-flex; align-items: center; height: 48px; padding: 0 26px; border: 0; border-radius: 100px; background: var(--qf-text); color: #101010; font: inherit; font-size: 1rem; font-weight: 500; letter-spacing: -0.03em; cursor: pointer; transition: opacity .2s ease, transform .2s ease; }
.qf__next:disabled { opacity: .32; cursor: not-allowed; }
.qf__next:not(:disabled):active { transform: scale(.98); }
.qf .cta-btn { --h: 48px; }
.qf .cta-btn.is-disabled { opacity: .32; pointer-events: none; }

.qf__foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--qf-line); font-size: 13px; color: var(--qf-text-3); }

html.qf-lock { overflow: hidden; }

@media (max-width: 560px) {
  .qf { width: 100%; max-height: calc(100dvh - 24px); margin: auto 0 0; border-radius: 24px 24px 0 0; border-bottom: 0; }
  .qf[open] { animation-name: qf-up; }
  @keyframes qf-up { from { transform: translateY(40px); opacity: 0; } }
  .qf__in { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .qf__opt span { padding: 0 18px; }
  .qf__nav { gap: 12px; }
  .qf .cta-btn { --h: 46px; }
  .qf .cta-btn__pill { padding: 0 18px; }
  .qf .cta-btn__text { font-size: .9375rem; }
}
@media (max-width: 420px) {
  .qf__nav { flex-wrap: wrap; }
  .qf .cta-btn { order: -1; width: 100%; }
  .qf .cta-btn__pill { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .qf[open], .qf[open]::backdrop, .qf__pane.is-entering { animation: none; }
  .qf__bar i { transition: none; }
}
.qf .cta-btn[hidden], .qf__next[hidden] { display: none; }
