/* =========================
   DEMO – SITE-LIKE LAYOUT
   ========================= */
   
.demo {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px;
  
}

.demo .demo-section {
  background: var(--bg);
  padding: 3rem 0;
}

.demo .demo-header {
  background: #f7faff;
  padding: 60px 0 60px;
  border-bottom: 1px solid #e6eaf2;
}

.demo .demo-logo {
  height: 36px;
  margin-bottom: 0.5rem;
}

.demo .demo-header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.demo .demo-header p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================
   GRID
   ========================= */

.demo .demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

/* =========================
   LEAD FORM
   ========================= */

.demo #lead-form {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 1px; /* ← adjust this number */
}

.demo .form-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.demo .form-title h2 {
  font-size: 1rem;
}

.demo .small-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.demo #lead-form label {
  display: block;
  margin-top: 10px;
  font-size: 14px;
}

.demo #lead-form input,
#lead-form select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.demo #lead-form button {
  margin-top: 14px;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #10a37f;
  color: white;
  font-weight: bold;
}

/* =========================
   CHAT COLUMN
   ========================= */

.demo .demo-chat-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Selector */
.demo .selector-box {
  background: #ffffff;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  font-size: 14px;
}

/* Chat window */
.demo .chat-window {
  height: 628px;
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -2px 15px rgba(0,0,0,0.1);

  background-color: rgba(255,255,255,0.5);
  background-image: url('../image/wa_bg.png');
  background-repeat: repeat;
  background-size: 420px;
}

.demo #chatMessages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.demo .user-msg {
  margin-left: auto;
  background: #daf8cb;
  border-radius: 12px;
  padding: 10px 14px;
  max-width: 80%;
  margin-bottom: 14px;
  line-height: 1.45;
}

.demo .bot-msg {
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 14px;
  max-width: 80%;
  margin-bottom: 14px;
  line-height: 1.45;
}

.demo .input-area {
  display: flex;
  padding: 12px;
  background: white;
  border-top: 1px solid #ddd;
}

.demo #chatInput {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.demo #sendBtn {
  margin-left: 10px;
  background: #10a37f;
  border: none;
  color: white;
  width: 48px;
  height: 48px;
  font-size: 18px;
  border-radius: 50%;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {
  .demo .demo-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Demo CTA ===== */
.demo .demo-cta {
  margin-top: 40px;
  text-align: center;
}

.demo .demo-cta-text {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 12px;
}

.demo .demo-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.demo .demo-cta-link {
  font-size: 14px;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.demo .demo-cta-link:hover {
  text-decoration: underline;
}
