/* ===== Lux Lavare — AI Chat Widget Styles ===== */

/* Section wrapper */
.ai-quote-section {
  padding: 72px 0;
  background: linear-gradient(180deg, rgba(61,214,204,.03) 0%, transparent 100%);
  border-top: 1px solid rgba(61,214,204,.08);
  border-bottom: 1px solid rgba(61,214,204,.08);
  position: relative;
  z-index: 1;
}

.ai-section-head {
  margin-bottom: 32px;
  max-width: 720px;
}

/* Live badge */
.ai-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(61,214,204,.07);
  border: 1px solid rgba(61,214,204,.22);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.ai-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: ai-pulse 2s infinite;
}

@keyframes ai-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Chat container */
.ai-chat-wrap {
  background: #050505;
  border: 1px solid rgba(61,214,204,.2);
  border-radius: 16px;
  overflow: hidden;
  max-width: 800px;
}

/* Chat header */
.ai-chat-header {
  background: rgba(255,255,255,.025);
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-chat-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: #000;
  flex-shrink: 0;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
}

.ai-chat-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.ai-chat-status {
  font-size: 11px;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
}

.ai-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  animation: ai-pulse 2s infinite;
}

.ai-chat-badge {
  margin-left: auto;
  background: rgba(61,214,204,.08);
  border: 1px solid rgba(61,214,204,.2);
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

/* Messages area */
.ai-chat-msgs {
  padding: 20px;
  min-height: 280px;
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-chat-msgs::-webkit-scrollbar { width: 3px; }
.ai-chat-msgs::-webkit-scrollbar-track { background: transparent; }
.ai-chat-msgs::-webkit-scrollbar-thumb {
  background: rgba(61,214,204,.25);
  border-radius: 2px;
}

/* Message bubbles */
.ai-msg {
  display: flex;
  gap: 10px;
  max-width: 86%;
}

.ai-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-msg-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  margin-top: 2px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
}

.ai-msg.ai .ai-msg-av {
  background: var(--teal);
  color: #000;
}

.ai-msg.user .ai-msg-av {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 8px;
  letter-spacing: 0;
}

.ai-msg-bub {
  padding: 11px 15px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.65;
}

.ai-msg.ai .ai-msg-bub {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.88);
}

.ai-msg.user .ai-msg-bub {
  background: var(--teal);
  color: #000;
  font-weight: 600;
}

/* Bold/strong inside AI bubbles */
.ai-msg.ai .ai-msg-bub b,
.ai-msg.ai .ai-msg-bub strong {
  color: var(--teal);
}

/* Typing indicator */
.ai-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px 0;
}

.ai-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: ai-bop 1.2s infinite;
}

.ai-typing span:nth-child(2) { animation-delay: .2s; }
.ai-typing span:nth-child(3) { animation-delay: .4s; }

@keyframes ai-bop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Quick prompt buttons */
.ai-quick-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-top: 1px solid rgba(255,255,255,.05);
  background: rgba(0,0,0,.25);
}

.ai-qbtn {
  background: transparent;
  border: 1px solid rgba(61,214,204,.18);
  color: var(--muted);
  padding: 6px 13px;
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  border-radius: 7px;
  cursor: pointer;
  transition: all .15s;
  letter-spacing: .2px;
}

.ai-qbtn:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(61,214,204,.04);
}

/* Input row */
.ai-chat-input-row {
  display: flex;
  border-top: 1px solid rgba(255,255,255,.06);
}

.ai-chat-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 18px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  resize: none;
  line-height: 1.5;
}

.ai-chat-input::placeholder {
  color: rgba(255,255,255,.28);
}

.ai-chat-send {
  background: var(--teal);
  border: none;
  padding: 0 22px;
  color: #000;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.ai-chat-send:hover { background: var(--teal-d); }
.ai-chat-send:disabled { opacity: 0.4; cursor: not-allowed; }

/* Disclaimer */
.ai-disclaimer {
  margin-top: 14px;
  font-size: 11px;
  color: rgba(255,255,255,.3);
  letter-spacing: .3px;
  max-width: 800px;
}

/* Mobile */
@media (max-width: 640px) {
  .ai-chat-msgs { max-height: 320px; }
  .ai-quick-btns { gap: 5px; }
  .ai-qbtn { font-size: 11px; padding: 5px 10px; }
  .ai-chat-send { padding: 0 16px; font-size: 11px; }
}
