/* Demo page styles — extends theme.css */

/* Demo Nav */
.demo-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.demo-nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.demo-nav-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
  text-decoration: none;
}
.demo-nav-badge {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.demo-nav-links { margin-left: auto; display: flex; gap: 20px; }
.demo-nav-links a {
  font-size: 14px;
  color: var(--fg-muted);
  text-decoration: none;
  font-weight: 500;
}
.demo-nav-links a:hover { color: var(--fg); }

/* Demo Hero */
.demo-hero {
  background: var(--fg);
  color: white;
  padding: 80px 24px;
  text-align: center;
}
.demo-hero-inner { max-width: 800px; margin: 0 auto; }
.demo-hero-eyebrow {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.demo-hero-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  color: white;
  margin-bottom: 16px;
}
.demo-hero-sub {
  font-size: 17px;
  color: #9CA3AF;
  line-height: 1.7;
  margin-bottom: 32px;
}
.demo-hero-actions { display: flex; gap: 12px; justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  transition: transform 0.15s, opacity 0.15s;
}
.btn:hover { transform: translateY(-1px); opacity: 0.9; }
.btn-primary { background: var(--accent); color: white; }
.btn-secondary { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); }

/* Demo section */
.demo-section { padding: 80px 24px; }
.demo-section-alt { background: #F9FAFB; }
.demo-inner { max-width: 1140px; margin: 0 auto; }
.demo-section-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--fg);
  text-align: center;
  margin-bottom: 12px;
}
.demo-section-sub {
  font-size: 15px;
  color: var(--fg-muted);
  text-align: center;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Two column layout */
.demo-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 800px) {
  .demo-grid-2 { grid-template-columns: 1fr; }
}

/* Live Chat Widget */
.chat-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.chat-header {
  background: var(--fg);
  color: white;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-header-icon {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.chat-header-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
}
.chat-header-sub { font-size: 12px; color: #9CA3AF; }
.chat-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #86EFAC;
}
.chat-status-dot {
  width: 8px; height: 8px;
  background: #86EFAC;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.chat-body { padding: 16px; height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.chat-msg-in { background: #F3F4F6; color: var(--fg); }
.chat-msg-out { background: #ECFDF5; color: #065F46; }
.chat-msg-out .msg-name { font-weight: 700; color: #059669; display: block; margin-bottom: 4px; font-size: 12px; }
.chat-msg-out .msg-text { }
.chat-time { font-size: 11px; color: var(--fg-muted); margin-top: 2px; }
.chat-booking-card {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
}
.chat-booking-card-title { font-weight: 700; color: #065F46; margin-bottom: 4px; }
.chat-booking-card-detail { color: #059669; }

/* Chat input */
.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  background: #FAFAFA;
}
.chat-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}
.chat-input:focus { border-color: var(--accent); }
.chat-send {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
}
.chat-send:hover { opacity: 0.9; }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; }
.chat-presets {
  padding: 0 16px 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chat-preset-btn {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--fg);
  cursor: pointer;
  font-family: var(--font-body);
}
.chat-preset-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Booking Form */
.booking-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.booking-form-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
}
.booking-form-sub { font-size: 14px; color: var(--fg-muted); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--fg); margin-bottom: 6px; }
.form-input, .form-select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
  background: white;
}
.form-input:focus, .form-select:focus { border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.form-success-icon { font-size: 32px; margin-bottom: 8px; }
.form-success-title { font-weight: 700; color: #065F46; margin-bottom: 4px; }
.form-success-detail { font-size: 13px; color: #059669; }

/* Recent Appointments */
.appt-list { display: flex; flex-direction: column; gap: 10px; }
.appt-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: box-shadow 0.2s;
}
.appt-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.appt-icon {
  width: 40px; height: 40px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.appt-info { flex: 1; }
.appt-name { font-weight: 600; font-size: 14px; color: var(--fg); }
.appt-detail { font-size: 12px; color: var(--fg-muted); }
.appt-time { font-size: 12px; font-weight: 600; color: var(--accent); text-align: right; white-space: nowrap; }
.appt-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}
.appt-status-confirmed { background: var(--accent-light); color: var(--accent); }
.appt-status-pending { background: #FEF3C7; color: #D97706; }
.appt-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--fg-muted);
  font-size: 14px;
}
.appt-empty-icon { font-size: 32px; margin-bottom: 8px; opacity: 0.4; }

/* Tech section */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 800px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}
.tech-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.tech-icon { font-size: 28px; margin-bottom: 8px; }
.tech-name { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--fg); margin-bottom: 4px; }
.tech-desc { font-size: 12px; color: var(--fg-muted); }

/* Loom section */
.loom-card {
  background: var(--fg);
  color: white;
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.loom-title {
  font-family: var(--font-head);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}
.loom-desc { font-size: 15px; color: #9CA3AF; margin-bottom: 32px; }
.loom-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.loom-cta:hover { opacity: 0.9; }

/* Setup section */
.setup-list { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.setup-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
}
.setup-num {
  width: 28px; height: 28px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--font-head);
}
.setup-info { flex: 1; }
.setup-step { font-weight: 700; font-size: 14px; color: var(--fg); }
.setup-detail { font-size: 13px; color: var(--fg-muted); margin-top: 2px; }

/* Footer */
.demo-footer { background: #F9FAFB; border-top: 1px solid var(--border); padding: 32px 24px; text-align: center; }
.demo-footer-text { font-size: 13px; color: var(--fg-muted); }