/**
 * Reusable "Book your demo" section (frontend/partials/_demo_form.php).
 * Scoped under .tb-demo so it renders identically on the integration page
 * (frontend/openapi.php) and the marketing landing page (frontend/landing.php).
 */
.tb-demo {
  --d-ink: #1C2740;
  --d-ink2: #2A3960;
  --d-gold: #C79A3B;
  --d-goldd: #9A7422;
  --d-line: #E3E4E1;
  --d-mut: #6A7076;
  --d-card: #fff;
  --d-bg: #F7F7F5;
  background: var(--d-bg);
  border-top: 1px solid var(--d-line);
  border-bottom: 1px solid var(--d-line);
  padding: 64px 0;
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
  color: var(--d-ink);
}
.tb-demo .tb-demo-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
@media (max-width: 860px) {
  .tb-demo .tb-demo-wrap { grid-template-columns: 1fr; gap: 30px; }
}
.tb-demo h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(25px, 3vw, 33px);
  line-height: 1.15;
  margin: 0 0 12px;
  font-weight: 700;
}
.tb-demo h2 .accent { color: var(--d-gold); }
.tb-demo .tb-sub {
  font-size: 16px;
  line-height: 1.6;
  color: #3A414B;
  max-width: 52ch;
  margin-bottom: 22px;
}
.tb-demo ul.tb-feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.tb-demo ul.tb-feats li { display: flex; gap: 12px; align-items: flex-start; }
.tb-demo ul.tb-feats .check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--d-ink);
  color: #fff;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.tb-demo ul.tb-feats strong { display: block; font-size: 14.5px; }
.tb-demo ul.tb-feats span { display: block; font-size: 13.5px; color: var(--d-mut); line-height: 1.5; }
.tb-demo .tb-card {
  background: var(--d-card);
  border: 1px solid var(--d-line);
  border-radius: 16px;
  padding: 34px;
  box-shadow: 0 16px 40px rgba(28, 39, 64, .10);
}
.tb-demo .tb-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 6px;
}
.tb-demo .tb-card .tb-note { font-size: 13.5px; color: var(--d-mut); margin: 0 0 24px; }
.tb-demo .tb-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 520px) {
  .tb-demo .tb-row2 { grid-template-columns: 1fr; }
}
.tb-demo .tb-field { margin-bottom: 14px; }
.tb-demo label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.tb-demo input,
.tb-demo textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--d-line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--d-ink);
  background: #fff;
  outline: none;
  transition: border-color .12s;
}
.tb-demo input:focus,
.tb-demo textarea:focus { border-color: var(--d-gold); }
.tb-demo textarea { resize: vertical; min-height: 74px; }
.tb-demo .tb-err {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #dc2626;
  margin-bottom: 14px;
}
.tb-demo .tb-btn {
  width: 100%;
  padding: 13px 22px;
  background: var(--d-gold);
  color: var(--d-ink);
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.tb-demo .tb-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(199, 154, 59, .35); }
.tb-demo .tb-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.tb-demo .tb-success { display: none; text-align: center; padding: 24px 0; }
.tb-demo .tb-success .ok {
  width: 56px;
  height: 56px;
  background: #dcfce7;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.tb-demo .tb-success h4 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.tb-demo .tb-success p { font-size: 14px; color: var(--d-mut); margin: 0; }
