/* Sticky liquid-glass lead bar (js/lead-kit.js). Self-contained: no Tailwind, no page tokens. */
.lsx {
  --lsx-ink: #f4f6fb;
  --lsx-muted: rgba(226, 232, 240, .68);
  --lsx-accent: #3b82f6;
  --lsx-accent-2: #a855f7;
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 9990; /* under the navbar (9999) and mobile menu (10050) */
  width: min(780px, calc(100vw - 24px));
  transform: translate(-50%, calc(100% + 40px)); opacity: 0; pointer-events: none;
  transition: transform .7s cubic-bezier(.16, 1, .3, 1), opacity .45s ease;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--lsx-ink);
  -webkit-font-smoothing: antialiased;
}
.lsx.is-in { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.lsx.is-in.is-parked { transform: translate(-50%, calc(100% + 40px)); opacity: 0; pointer-events: none; }

.lsx__glass {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 24px; padding: 12px 12px 12px 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 42%, rgba(255, 255, 255, .07)),
    rgba(12, 14, 20, .52);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  backdrop-filter: blur(26px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, .17);
  box-shadow:
    0 24px 70px -24px rgba(0, 0, 0, .75),
    0 2px 10px rgba(0, 0, 0, .25),
    inset 0 1px 0 rgba(255, 255, 255, .32),
    inset 0 -1px 0 rgba(255, 255, 255, .06);
}
/* specular sheen + a slow colour drift underneath */
.lsx__glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .22), transparent 45%);
  mix-blend-mode: soft-light;
}
.lsx__glass::after {
  content: ""; position: absolute; inset: -40%; z-index: -2; pointer-events: none; opacity: .38;
  background: conic-gradient(from 0deg, transparent, rgba(59, 130, 246, .5), rgba(168, 85, 247, .45), transparent 60%);
  filter: blur(40px);
  animation: lsx-drift 14s linear infinite;
}
@keyframes lsx-drift { to { transform: rotate(360deg); } }

.lsx__x {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center;
  border: 0; cursor: pointer; color: var(--lsx-muted); background: rgba(255, 255, 255, .08);
  transition: background .2s, color .2s;
}
.lsx__x:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.lsx__step { display: none; align-items: center; gap: 14px; padding-right: 36px; min-height: 48px; }
.lsx__step.is-on { display: flex; animation: lsx-in .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes lsx-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.lsx__dot {
  flex: none; width: 9px; height: 9px; border-radius: 99px; background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: lsx-pulse 2.4s infinite;
}
@keyframes lsx-pulse { 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

.lsx__q { margin: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; flex: 1; }
.lsx__acts { display: flex; gap: 8px; flex: none; }

.lsx__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: 600 14px/1 Inter, system-ui, sans-serif; color: var(--lsx-ink);
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16);
  transition: background .2s, transform .2s, border-color .2s;
}
.lsx__btn:hover { background: rgba(255, 255, 255, .16); transform: translateY(-1px); }
.lsx__btn:disabled { opacity: .6; cursor: default; transform: none; }
.lsx__btn--pri {
  color: #fff; border-color: rgba(255, 255, 255, .28);
  background: linear-gradient(135deg, var(--lsx-accent), var(--lsx-accent-2));
  box-shadow: 0 8px 24px -8px rgba(99, 102, 241, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.lsx__btn--pri:hover { background: linear-gradient(135deg, #4f8ff7, #b36bf8); }

[data-step="form"].lsx__step { flex-wrap: wrap; padding-top: 2px; padding-bottom: 2px; }
.lsx__copy { flex: 1 1 100%; }
.lsx__h { margin: 2px 0 2px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.lsx__sub { margin: 0; font-size: 13px; color: var(--lsx-muted); line-height: 1.45; }
.lsx__fields { display: flex; gap: 8px; flex: 1 1 100%; }
.lsx__in {
  flex: 1; min-width: 0; height: 40px; padding: 0 14px; border-radius: 999px;
  font: 500 14px Inter, system-ui, sans-serif; color: #fff;
  background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .16); outline: none;
  transition: border-color .2s, background .2s;
}
.lsx__in::placeholder { color: rgba(226, 232, 240, .45); }
.lsx__in:focus { border-color: rgba(129, 140, 248, .9); background: rgba(0, 0, 0, .38); }
.lsx__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.lsx__err { flex: 1 1 100%; margin: 0; font-size: 13px; color: #fca5a5; }
.lsx__err a { color: #fff; }

.lsx__tick {
  flex: none; width: 32px; height: 32px; border-radius: 99px; display: grid; place-items: center;
  color: #052e1a; background: #34d399; box-shadow: 0 0 24px rgba(52, 211, 153, .5);
}

.lsx__btn:focus-visible, .lsx__x:focus-visible, .lsx__in:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }

@media (max-width: 640px) {
  .lsx { bottom: max(10px, env(safe-area-inset-bottom)); width: calc(100vw - 20px); }
  .lsx__glass { padding: 12px; border-radius: 22px; }
  .lsx__step { padding-right: 0; }
  .lsx__q, .lsx__copy { padding-right: 34px; }
  .lsx__step[data-step="ask"] { flex-wrap: wrap; gap: 10px; }
  .lsx__q { font-size: 14.5px; flex: 1 1 calc(100% - 30px); }
  .lsx__acts { flex: 1 1 100%; }
  .lsx__acts .lsx__btn { flex: 1; padding: 0 10px; font-size: 13.5px; }
  .lsx__fields { flex-direction: column; }
  .lsx__fields .lsx__btn { width: 100%; }
  .lsx__step[data-step="done"] { flex-wrap: wrap; }
  .lsx__step[data-step="done"] .lsx__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .lsx, .lsx__step.is-on { transition: opacity .2s; animation: none; }
  .lsx__glass::after, .lsx__dot { animation: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lsx__glass { background: rgba(14, 16, 22, .96); }
}
