/* ConnIP — formulário conversacional (uma pergunta por vez) */
.lf { --f-bg: var(--navy-900); --f-txt: var(--on-dark); --f-mut: var(--on-dark-2); --f-line: rgba(255,255,255,.14);
  color: var(--f-txt); font-family: var(--font-body); display: flex; flex-direction: column; }
.lf-overlay { position: fixed; inset: 0; z-index: 200; opacity: 0; transition: opacity .3s var(--ease);
  background: radial-gradient(1200px 600px at 85% -10%, rgba(255,97,80,.18), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(255,138,31,.12), transparent 60%), var(--f-bg); }
.lf-overlay.in { opacity: 1; }
html.lf-open, html.lf-open body { overflow: hidden; }
html.lf-open .cookie { display: none !important; }
.lf-inline { position: relative; min-height: 500px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  background: radial-gradient(600px 300px at 100% 0%, rgba(255,97,80,.2), transparent 60%), var(--f-bg); }

.lf-top { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 6px; padding: 0; }
.lf-overlay .lf-top { padding: 18px clamp(16px, 4vw, 40px) 0; min-height: 64px; }
.lf-bar { position: absolute; left: 0; right: 0; top: 0; height: 5px; background: rgba(255,255,255,.08); }
.lf-bar i { display: block; height: 100%; width: 4%; background: var(--grad); border-radius: 0 4px 4px 0; transition: width .5s var(--ease); }
.lf-logo { height: 30px; width: auto; }
.lf-x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--f-line); background: rgba(255,255,255,.04); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; transition: background .2s; }
.lf-x:hover { background: rgba(255,255,255,.12); }

.lf-stage { position: relative; flex: 1; display: grid; overflow: hidden; }
.lf-overlay .lf-stage { overflow-y: auto; }
.lf-step { grid-area: 1 / 1; align-self: center; width: min(680px, 100%); margin: 0 auto; padding: clamp(24px, 6vh, 60px) clamp(18px, 5vw, 40px);
  opacity: 0; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.lf-step.from-down { transform: translateY(40px); }
.lf-step.from-up { transform: translateY(-40px); }
.lf-step.in { opacity: 1; transform: none; }
.lf-step.out-up { opacity: 0; transform: translateY(-40px); pointer-events: none; }
.lf-step.out-down { opacity: 0; transform: translateY(40px); pointer-events: none; }
.lf-step.shake { animation: flowShake .4s; }
@keyframes flowShake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

.lf-q { display: block; font: 700 clamp(1.3rem, 3.2vw, 2rem)/1.25 var(--font-head); color: #fff; margin: 0 0 10px; }
.lf-n { display: inline-block; font-size: .6em; color: var(--coral); margin-right: 10px; vertical-align: .25em; }
.lf-help { color: var(--f-mut); margin: 0 0 18px; font-size: 1rem; }
.lf-resume { display: inline-block; background: var(--grad-soft); color: #ffd9c9; border-radius: 999px; padding: 6px 14px; font-size: .85rem; margin: 0 0 16px; }

.lf-in { width: 100%; background: transparent; border: 0; border-bottom: 2px solid rgba(255,255,255,.25); color: #fff;
  font: 500 clamp(1.15rem, 2.6vw, 1.6rem) var(--font-body); padding: 10px 2px; outline: none; transition: border-color .2s; border-radius: 0; }
.lf-in::placeholder { color: rgba(255,255,255,.3); }
.lf-in:focus { border-color: var(--coral); }
textarea.lf-in { resize: vertical; min-height: 96px; font-size: 1.1rem; line-height: 1.5; }

.lf-opts { display: grid; gap: 10px; max-width: 520px; }
.lf-opts.two { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lf-opt { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); color: #fff; font: 500 1rem var(--font-body); transition: background .15s, border-color .15s, transform .15s; }
.lf-opt:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }
.lf-opt:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.lf-opt kbd { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; border: 1px solid rgba(255,255,255,.35); font: 700 .75rem var(--font-head); color: #fff; }
.lf-opt.on { background: rgba(255,97,80,.18); border-color: var(--coral); }
.lf-opt.on kbd { background: var(--coral); border-color: var(--coral); }
.lf-opt.blink { animation: flowBlink .4s; }
@keyframes flowBlink { 0%, 50% { background: rgba(255,97,80,.45); } 25%, 75% { background: rgba(255,97,80,.12); } }

.lf-err { min-height: 1.4em; margin: 10px 0 0; color: #ffb3a8; font-size: .92rem; }
.lf-err:empty { min-height: 0; margin: 0; }
.lf-consent { margin: 14px 0 0; font-size: .82rem; color: var(--f-mut); max-width: 560px; }
.lf-consent a { color: #ffb3a8; }
.lf-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: 24px; }
.lf-actions.center { justify-content: center; }
.lf-ok.loading { opacity: .7; pointer-events: none; }
.lf-skip { background: none; border: 0; color: var(--f-mut); font: 600 .95rem var(--font-head); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 8px 4px; }
.lf-skip:hover { color: #fff; }
.lf-hint { color: var(--f-mut); font-size: .82rem; }

.lf-nav { display: flex; align-items: center; gap: 12px; justify-content: flex-end; padding: 0 clamp(16px, 4vw, 40px) 18px; color: var(--f-mut); font-size: .85rem; }
.at-intro .lf-nav { visibility: hidden; }
.lf-back { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--f-line); background: rgba(255,255,255,.04); color: #fff; font-size: 18px; cursor: pointer; }
.lf-back:disabled { opacity: .3; cursor: default; }

.lf-intro, .lf-done { text-align: center; }
.lf-intro img, .lf-done img { width: 120px; height: auto; margin: 0 auto 12px; filter: drop-shadow(0 18px 30px rgba(255,97,80,.35)); }
.lf-done img { width: 150px; }
.lf-intro h3, .lf-done h3 { font: 800 clamp(1.4rem, 3vw, 1.9rem) var(--font-head); color: #fff; margin: 0 0 10px; }
.lf-intro p, .lf-done p { color: var(--f-mut); max-width: 460px; margin: 0 auto 22px; }
.lf-intro small { display: block; margin-top: 12px; color: var(--f-mut); }
.lf-done p { margin-bottom: 0; }
.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 640px) {
  .lf-opts.two { grid-template-columns: 1fr; }
  .lf-hint { display: none; }
  .lf-overlay .lf-step { align-self: start; }
  .lf-inline { min-height: 560px; }
}
@media (prefers-reduced-motion: reduce) { .lf-step { transition: opacity .2s; transform: none !important; } .lf-step.shake { animation: none; } }
.lf .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.lf .btn-ghost:hover { background: rgba(255,255,255,.08); }
