/* ── Booking Widget Styles ──────────────────────────────────────────────────── */

:root {
  --bg: #0f0f12;
  --bg-alt: #141418;
  --fg: #fafaf8;
  --fg-muted: #a8a8a0;
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --border: rgba(250, 250, 248, 0.08);
  --radius: 12px;
}

/* Book page layout */
.book-page { min-height: 100vh; background: var(--bg); color: var(--fg); font-family: 'DM Sans', sans-serif; }

/* Chat container */
.chat-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Header */
.book-header { margin-bottom: 2rem; }
.book-header h1 { font-family: 'DM Serif Display', serif; font-size: 2rem; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.book-header p { color: var(--fg-muted); font-size: 0.95rem; }
.book-header .badge { display: inline-block; background: var(--accent-dim); color: var(--accent); font-size: 0.75rem; font-weight: 500; padding: 0.25rem 0.6rem; border-radius: 6px; margin-bottom: 0.75rem; }

/* Message bubbles */
.messages { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 1.5rem; }

.msg { display: flex; gap: 0.75rem; animation: msgIn 0.3s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.msg.bot { align-self: flex-start; max-width: 85%; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; max-width: 80%; }

.msg-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-dim); border: 1px solid rgba(245,158,11,0.3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.msg-avatar svg { width: 16px; height: 16px; }

.msg-bubble { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.875rem 1.125rem; font-size: 0.95rem; line-height: 1.6; }
.msg.user .msg-bubble { background: var(--accent); color: #0f0f12; border-color: transparent; }

.msg-bubble p { margin: 0 0 0.5rem; }
.msg-bubble p:last-child { margin-bottom: 0; }

/* Service quick-select buttons */
.quick-services { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.quick-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.quick-btn:hover { border-color: var(--accent); color: var(--accent); }
.quick-btn.selected { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

/* Time slot grid */
.time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.75rem; }
.time-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.time-btn:hover { border-color: var(--accent); color: var(--accent); }
.time-btn.selected { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

/* Input area */
.input-row { position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg); border-top: 1px solid var(--border); padding: 1rem; }
.input-inner { max-width: 720px; margin: 0 auto; display: flex; gap: 0.75rem; align-items: flex-end; }
.chat-input {
  flex: 1;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  resize: none;
  min-height: 48px;
  max-height: 120px;
  outline: none;
  transition: border-color 0.15s;
}
.chat-input:focus { border-color: var(--accent); }
.chat-input::placeholder { color: var(--fg-muted); }

.send-btn {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.send-btn:hover { opacity: 0.85; }

/* Confirmation card */
.confirm-card { background: var(--bg-alt); border: 1px solid rgba(245,158,11,0.4); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.confirm-card .check-icon { width: 48px; height: 48px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.confirm-card h3 { font-family: 'DM Serif Display', serif; font-size: 1.3rem; margin-bottom: 1rem; }
.confirm-detail { display: flex; justify-content: center; gap: 2rem; margin-top: 1rem; }
.confirm-detail .cd-item { text-align: center; }
.confirm-detail .cd-label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); }
.confirm-detail .cd-value { font-size: 0.95rem; font-weight: 500; color: var(--accent); margin-top: 0.25rem; }

/* Service list */
.svc-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.svc-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.875rem;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.svc-item:hover { border-color: var(--accent); }
.svc-item.selected { background: var(--accent-dim); border-color: var(--accent); }
.svc-item .svc-icon { font-size: 1.1rem; }
.svc-item .svc-name { font-size: 0.9rem; font-weight: 500; }

/* Responsive */
@media (max-width: 600px) {
  .time-grid { grid-template-columns: repeat(2, 1fr); }
  .confirm-detail { flex-direction: column; gap: 0.75rem; }
}

/* Typing indicator */
.typing-dots { display: flex; gap: 4px; padding: 0.5rem 0; }
.typing-dots span { width: 6px; height: 6px; background: var(--fg-muted); border-radius: 50%; animation: bounce 1.2s infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }