/* ============================================================
   Life Filtration AI Chatbot v2 — Brand CSS
   Primary: #0a2c5e (deep navy) | Accent: #1a6fbf (blue)
   ============================================================ */

:root {
  --lf-navy:        #0a2c5e;
  --lf-blue:        #1a6fbf;
  --lf-blue-light:  #e8f2fb;
  --lf-white:       #ffffff;
  --lf-gray-50:     #f7f8fa;
  --lf-gray-200:    #e4e7ed;
  --lf-gray-500:    #7a8494;
  --lf-gray-700:    #3a4252;
  --lf-green:       #22c55e;
  --lf-shadow:      0 12px 40px rgba(10,44,94,0.20), 0 2px 10px rgba(10,44,94,0.10);
  --lf-radius:      18px;
  --lf-font:        'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Launcher ── */
#lf-chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2147483640;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px 0 16px;
  height: 52px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--lf-navy) 0%, var(--lf-blue) 100%);
  border: none;
  cursor: pointer;
  color: var(--lf-white);
  font-family: var(--lf-font);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(26,111,191,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
#lf-chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,111,191,0.55);
}
#lf-chat-launcher svg { width: 20px; height: 20px; flex-shrink: 0; }
#lf-launcher-label { line-height: 1; }

/* ── Chat Window ── */
#lf-chat-window {
  position: fixed;
  bottom: 88px;
  right: 24px;
  z-index: 2147483639;
  width: 360px;
  background: var(--lf-white);
  border-radius: var(--lf-radius);
  box-shadow: var(--lf-shadow);
  overflow: hidden;
  font-family: var(--lf-font);
  animation: lfSlideUp 0.28s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes lfSlideUp {
  from { opacity:0; transform:translateY(24px) scale(0.95); }
  to   { opacity:1; transform:translateY(0)    scale(1);    }
}

/* ── Header ── */
#lf-chat-header {
  background: linear-gradient(135deg, var(--lf-navy) 0%, var(--lf-blue) 100%);
  padding: 16px 18px;
}
#lf-chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
#lf-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#lf-avatar-initials {
  color: var(--lf-white);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
}
#lf-chat-title {
  color: var(--lf-white);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
#lf-chat-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}
.lf-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lf-green);
  flex-shrink: 0;
  animation: lfPulse 2.2s infinite;
}
@keyframes lfPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%      { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

/* ── Lead Form ── */
#lf-lead-form {
  padding: 20px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#lf-form-intro p {
  margin: 0 0 2px;
  font-size: 13.5px;
  color: var(--lf-gray-700);
  line-height: 1.5;
}
#lf-lead-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1.5px solid var(--lf-gray-200);
  border-radius: 10px;
  font-size: 13.5px;
  font-family: var(--lf-font);
  color: var(--lf-gray-700);
  background: var(--lf-gray-50);
  outline: none;
  transition: border-color 0.18s, background 0.18s;
}
#lf-lead-form input:focus {
  border-color: var(--lf-blue);
  background: var(--lf-white);
}
#lf-lead-form input::placeholder { color: var(--lf-gray-500); }

#lf-form-submit {
  width: 100%;
  padding: 11px;
  margin-top: 2px;
  background: linear-gradient(135deg, var(--lf-navy), var(--lf-blue));
  color: var(--lf-white);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--lf-font);
  cursor: pointer;
  transition: opacity 0.18s, transform 0.15s;
  letter-spacing: 0.3px;
}
#lf-form-submit:hover    { opacity: 0.9; transform: translateY(-1px); }
#lf-form-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

#lf-form-error {
  font-size: 12px;
  color: #dc2626;
  text-align: center;
  margin: 0;
}
#lf-form-privacy {
  font-size: 11px;
  color: var(--lf-gray-500);
  text-align: center;
  margin: 0;
}

/* ── Success State ── */
#lf-success-state {
  padding: 36px 20px;
  text-align: center;
}
#lf-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
#lf-success-msg {
  font-size: 14px;
  color: var(--lf-gray-700);
  font-weight: 500;
  margin: 0;
}

/* ── Mobile ── */
@media (max-width: 420px) {
  #lf-chat-window   { width: calc(100vw - 20px); right: 10px; bottom: 80px; }
  #lf-chat-launcher { right: 12px; bottom: 16px; padding: 0 16px 0 13px; height: 48px; }
}
