/* chatbot.css — Demo chatbot widget styles */

.nav-back {
  margin-left: auto;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.nav-back:hover { text-decoration: underline; }

/* Demo layout */
.chatbot-demo {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}
.demo-header { text-align: center; margin-bottom: 56px; }
.demo-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: #e6f7f7;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.demo-headline {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}
.demo-sub { font-size: 18px; color: var(--text-muted); line-height: 1.6; }

.demo-layout {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 48px;
  align-items: start;
}

/* Chat widget */
.chat-wrapper {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.chat-avatar {
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.chat-title { font-weight: 600; font-size: 15px; color: var(--text); }
.chat-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.chat-status {
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
}
.chat-status.online { background: #22c55e; }

.chat-messages {
  height: 400px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}
.msg { display: flex; }
.msg--user { justify-content: flex-end; }
.msg-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.5;
}
.msg--assistant .msg-bubble {
  background: var(--bg-alt);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.msg--user .msg-bubble {
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 4px;
}

/* Lead capture */
.chat-capture {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--coral-light);
}
.capture-label { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.capture-fields { display: flex; flex-direction: column; gap: 8px; }
.capture-input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
}
.capture-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.capture-btn:hover { background: var(--accent-dark); }

/* Booking prompt */
.chat-booking {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: #e6f7f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.booking-text { font-size: 14px; color: var(--text); }
.booking-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  width: fit-content;
}
.booking-skip {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  padding: 0;
}
.booking-skip:hover { text-decoration: underline; }

/* Chat input */
.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.chat-input:focus { border-color: var(--accent); }
.chat-send {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* Calendly overlay */
.calendly-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.calendly-modal {
  background: white;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 800px;
  height: 80vh;
  position: relative;
  overflow: hidden;
}
.calendly-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  z-index: 1;
  color: var(--text-muted);
  line-height: 1;
}
.calendly-embed iframe { width: 100%; height: 100%; border: none; }

/* Feature cards */
.feature-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-card .feature-icon { font-size: 28px; margin-bottom: 14px; }
.feature-card h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 900px) {
  .demo-layout { grid-template-columns: 1fr; }
  .chat-wrapper { position: static; }
  .feature-cards { grid-template-columns: 1fr; }
}