/* ==========================================================================
   ValuationZone v12 — Site-Wide Floating AI Valuation Concierge & Lead Magnet
   Positioned bottom-left to stay clear of Tawk.to (bottom-right).
   ========================================================================== */

#vz-ai-fab {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid rgba(200, 162, 74, 0.45);
  border-radius: 9999px;
  background: linear-gradient(135deg, #051C2C 0%, #0F2B42 100%);
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 32px rgba(5, 28, 44, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms ease, border-color 180ms ease;
}

#vz-ai-fab:hover {
  transform: translateY(-2px);
  border-color: #C8A24A;
  box-shadow: 0 16px 36px rgba(5, 28, 44, 0.36);
}

#vz-ai-fab .vz-ai-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #C8A24A;
  box-shadow: 0 0 0 4px rgba(200, 162, 74, 0.25);
  flex-shrink: 0;
}

#vz-ai-drawer {
  position: fixed;
  left: 20px;
  bottom: 78px;
  z-index: 9995;
  width: min(410px, calc(100vw - 24px));
  max-height: min(620px, calc(100vh - 104px));
  display: none;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid rgba(5, 28, 44, 0.14);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(5, 28, 44, 0.26);
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

#vz-ai-drawer.is-open {
  display: flex;
  animation: vzAiSlideUp 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes vzAiSlideUp {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.vz-ai-head {
  background: linear-gradient(135deg, #051C2C 0%, #0F2B42 100%);
  color: #FFFFFF;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #C8A24A;
}

.vz-ai-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.25;
  margin: 0;
}

.vz-ai-sub {
  font-size:0.75rem;
  color: #CBD5E1;
  margin: 2px 0 0;
}

.vz-ai-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #FFFFFF;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.vz-ai-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.vz-ai-body {
  padding: 14px 16px;
  overflow-y: auto;
  flex: 1;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vz-ai-msg {
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.52;
  color: #0F172A;
  white-space: pre-wrap;
  word-break: break-word;
}

.vz-ai-msg.bot {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  align-self: flex-start;
  max-width: 94%;
}

.vz-ai-msg.user {
  background: #051C2C;
  color: #FFFFFF;
  align-self: flex-end;
  max-width: 88%;
}

.vz-ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vz-ai-chip {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #051C2C;
  border-radius: 9999px;
  padding: 6px 11px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
}

.vz-ai-chip:hover {
  border-color: #005FCC;
  color: #005FCC;
  background: #EFF6FF;
}

.vz-ai-lead-box {
  background: #FFFFFF;
  border: 1px solid rgba(200, 162, 74, 0.45);
  border-radius: 12px;
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 8px;
}

.vz-ai-lead-box.is-visible {
  display: flex;
}

.vz-ai-lead-box input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 0.82rem;
  font-family: inherit;
  box-sizing: border-box;
}

.vz-ai-lead-btn {
  background: linear-gradient(135deg, #005FCC 0%, #00449E 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.vz-ai-foot {
  padding: 10px 12px;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  display: flex;
  gap: 8px;
}

.vz-ai-foot input {
  flex: 1;
  min-width: 0;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.85rem;
  font-family: inherit;
}

.vz-ai-foot button {
  background: #051C2C;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.vz-ai-foot button:hover {
  background: #005FCC;
}

.vz-ai-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.vz-ai-link-pill {
  display: inline-block;
  font-size:0.75rem;
  font-weight: 700;
  color: #005FCC;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 9999px;
  padding: 4px 10px;
  text-decoration: none;
}

@media (max-width: 480px) {
  #vz-ai-fab {
    left: 12px;
    bottom: 14px;
    padding: 10px 14px;
    font-size: 0.82rem;
  }
  #vz-ai-drawer {
    left: 12px;
    bottom: 66px;
    width: calc(100vw - 24px);
  }
}
