/* Lead capture: floating "Ask Manish" button + 30-second pain-point funnel */
.engage { --eng-bottom: 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Floating button */
.ask-fab {
  position: fixed; right: 24px; bottom: var(--eng-bottom); z-index: 95;
  display: inline-flex; align-items: center; gap: 12px; padding: 6px 18px 6px 6px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(18,10,42,.92); color: var(--white); text-align: left;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(196,181,253,.35), 0 16px 40px rgba(0,0,0,.35), 0 0 30px rgba(139,92,246,.35);
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), opacity 250ms var(--ease);
  animation: fabIn 600ms var(--ease) 1.2s both;
}
.ask-fab:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(196,181,253,.6), 0 20px 50px rgba(0,0,0,.4), 0 0 40px rgba(139,92,246,.5); }
.ask-fab[aria-expanded="true"] { opacity: 0; pointer-events: none; transform: translateY(10px); }
.ask-fab-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: #E9E7EC; box-shadow: 0 0 0 2px var(--violet-400); }
.ask-fab-text { display: grid; line-height: 1.2; }
.ask-fab-text b { font-size: .9rem; }
.ask-fab-text span { font-size: .78rem; color: var(--violet-300); font-weight: 600; }
.ask-fab-dot { position: absolute; left: 38px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 2px var(--night-900); }
@keyframes fabIn { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }

/* Shared panel look */
.ask-panel, .pain {
  position: fixed; z-index: 96; color: var(--body); background: var(--white); border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(26,15,61,.08), 0 30px 80px rgba(11,6,24,.35), 0 0 60px rgba(139,92,246,.18);
  animation: engIn 420ms var(--ease) both;
}
.ask-panel[hidden], .pain[hidden] { display: none; }
@keyframes engIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.eng-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: var(--paper); color: var(--ink); z-index: 2;
}
.eng-close svg { width: 16px; height: 16px; transform: rotate(45deg); }
.eng-close:hover { background: var(--violet-100); color: var(--violet-700); }

/* Ask panel */
.ask-panel { right: 24px; bottom: var(--eng-bottom); width: min(400px, calc(100vw - 32px)); max-height: calc(100vh - 110px); overflow-y: auto; }
.ask-head { position: relative; display: flex; gap: 12px; align-items: center; padding: 18px 60px 18px 18px; border-radius: 22px 22px 0 0; color: var(--on-dark-muted);
  background: radial-gradient(300px 160px at 100% 0%, rgba(232,121,249,.25), transparent 70%), radial-gradient(300px 200px at 0% 0%, rgba(139,92,246,.45), transparent 70%), var(--night-900); }
.ask-head img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: #E9E7EC; box-shadow: 0 0 0 2px var(--violet-400); flex: none; }
.ask-head h2 { font-size: 1.15rem; color: var(--white); letter-spacing: -0.02em; }
.ask-head p { font-size: .82rem; }
.ask-head .eng-close { top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); color: var(--white); }
.ask-body { padding: 18px; }

/* Form bits */
.lead-form { display: grid; gap: 12px; }
.eng-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.eng-field { display: grid; gap: 5px; }
.eng-field span { font-size: .78rem; font-weight: 700; color: var(--ink); }
.eng-field input, .eng-field select, .eng-field textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: .9375rem;
}
.eng-field textarea { resize: vertical; min-height: 72px; }
.eng-field input:focus, .eng-field select:focus, .eng-field textarea:focus { outline: none; border-color: var(--violet-500); box-shadow: 0 0 0 3px rgba(139,92,246,.2); }
.eng-field.has-error input { border-color: var(--rose-700); }
.eng-error { font-size: .85rem; font-weight: 600; color: var(--rose-700); background: #FFF1F2; padding: 8px 12px; border-radius: 10px; }
.eng-submit { width: 100%; min-height: 48px; }
.eng-submit[disabled] { opacity: .7; cursor: progress; }
.eng-note { font-size: .78rem; color: var(--muted); text-align: center; }
.eng-note a { color: var(--violet-700); font-weight: 700; }
.eng-thanks { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 26px 20px; }
.eng-thanks[hidden] { display: none; }
.eng-thanks h3 { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.02em; outline: none; }
.eng-check { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: #fff; box-shadow: var(--glow); animation: pop 500ms var(--ease) both; }
.eng-check svg { width: 28px; height: 28px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* Pain-point funnel card */
.pain { right: 24px; bottom: calc(var(--eng-bottom) + 72px); width: min(400px, calc(100vw - 32px)); max-height: calc(100vh - 180px); overflow-y: auto; padding: 22px 22px 20px; isolation: isolate; }
.pain::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #8B5CF6, #E879F9); }
.pain-dots { display: flex; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; }
.pain-dots li { width: 22px; height: 4px; border-radius: 4px; background: var(--violet-100); transition: background 300ms var(--ease); }
.pain-dots li.is-on { background: var(--violet-500); }
.pain-step[hidden] { display: none; }
.pain-eyebrow { font: 600 .72rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--violet-600); }
.pain h2 { margin-top: 8px; padding-right: 30px; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.025em; outline: none; }
.pain-options { margin-top: 16px; display: grid; gap: 8px; }
.pain-options button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 46px; padding: 10px 14px;
  border: 0; border-radius: 12px; cursor: pointer; text-align: left; font: 600 .9375rem var(--font-sans); color: var(--ink);
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: background 200ms var(--ease), box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.pain-options button::after { content: "→"; color: var(--violet-500); opacity: 0; transform: translateX(-4px); transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.pain-options button:hover { background: var(--violet-50); box-shadow: inset 0 0 0 1.5px var(--violet-400); }
.pain-options button:hover::after { opacity: 1; transform: none; }
.pain-insight { margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; font-size: .9375rem; font-weight: 600; color: #6B2134; background: #FFF1F2; box-shadow: inset 3px 0 0 var(--rose-400); }
.pain-insight.is-good { color: var(--violet-700); background: var(--violet-50); box-shadow: inset 3px 0 0 var(--violet-500); }
.pain-result { margin-top: 10px; font-size: .9375rem; }
.pain-book { width: 100%; margin-top: 16px; min-height: 50px; }
.pain-link { display: block; width: 100%; margin-top: 10px; padding: 8px; border: 0; background: none; cursor: pointer; font: 600 .875rem var(--font-sans); color: var(--violet-700); text-decoration: underline; text-underline-offset: 3px; }
.pain-form { margin-top: 12px; padding-top: 14px; border-top: 1px dashed var(--line); }

/* Mobile: sit above the sticky booking bar */
@media (max-width: 959px) {
  .engage { --eng-bottom: calc(var(--mobile-cta-h) + 12px); }
  .ask-fab { right: 16px; padding: 4px; }
  .ask-fab-text { display: none; }
  .ask-fab-dot { left: auto; right: 2px; top: 2px; }
  .ask-panel { right: 12px; left: 12px; width: auto; max-height: calc(100vh - var(--mobile-cta-h) - 90px); }
  .pain { left: 12px; right: 12px; width: auto; bottom: var(--eng-bottom); max-height: calc(100vh - var(--mobile-cta-h) - 90px); overflow-y: auto; }
  .engage.pain-open .ask-fab { opacity: 0; pointer-events: none; }
}
@media (max-width: 420px) { .eng-row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ask-fab, .ask-panel, .pain, .eng-check { animation: none; } }
@media print { .engage { display: none; } }
