/*
 * Demo page (page-demo.php) and demo thank-you page (page-demo-thank-you.php).
 * Builds on free-trial.css (hero, section heads, flow steps, gradient band) and,
 * on the demo page, free-trial-thank-you.css (the booking calendar).
 */

/* ---- Five-step flow (demo: what you'll see; thank-you: the session) ------ */
.a4dm-flow5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.a4dm-flow5::before { right: calc((100% - 96px) / 5 - 24px); }
.a4dm-flow5 .a4ft-flow__step h3 { font-size: 18px; }
.a4dm-flow5 .a4ft-flow__step p { font-size: 14.5px; }
@media (max-width: 1199px) {
  .a4dm-flow5 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .a4dm-flow5::before { top: 24px; bottom: 24px; left: 24px; right: auto; width: 1px; height: auto; background: var(--grad); }
  .a4dm-flow5 .a4ft-flow__step { padding-left: 72px; }
  .a4dm-flow5 .a4ft-flow__node { position: absolute; left: 0; top: 0; margin: 0; }
  .a4dm-flow5 .a4ft-flow__step p { max-width: 560px; }
}

/* ---- Demo page: demo type dropdown in the booking form ------------------- */
.c4dbk-fg select {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 11px 38px 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background-color: var(--alt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f398f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-standard), background-color 0.2s var(--ease-standard), box-shadow 0.2s var(--ease-standard);
}
.c4dbk-fg select:invalid { color: var(--faint); }
.c4dbk-fg select:focus { outline: none; border-color: var(--purple); background-color: #fff; box-shadow: 0 0 0 4px rgba(95, 57, 143, 0.1); }
.c4dbk-fg select.bad { border-color: #c0392b; background-color: #fff; box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.08); }

/* ---- Demo page: what to bring ------------------------------------------- */
.a4dm-bring { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.a4dm-bring .h-section { margin: 0 0 16px; }
.a4dm-bring__cta { margin-top: 28px; }
.a4dm-bring__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.a4dm-bring__list li {
  position: relative;
  padding: 18px 0 18px 40px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.a4dm-bring__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad);
}
.a4dm-bring__list li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 25px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ---- Demo thank-you: hero ------------------------------------------------ */
.a4dt-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.a4dt-crumbs a { color: var(--muted); text-decoration: none; }
.a4dt-crumbs a:hover { color: var(--purple); }
.a4dt-crumbs [aria-current] { color: var(--purple); }

.a4dt-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(61, 220, 151, 0.12);
  color: #1d6b45;
  font-size: 13px;
  font-weight: 600;
}
.a4dt-pill span { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.2); }

.a4dt-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
  margin: 24px 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.a4dt-facts dt,
.a4dt-strip dt { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.a4dt-facts dd { margin: 6px 0 0; font-size: 16px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.a4dt-note {
  position: relative;
  margin: 0;
  padding: 14px 16px 14px 42px;
  border-radius: 12px;
  background: var(--alt);
  border: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.a4dt-note::before { content: ""; position: absolute; left: 16px; top: 18px; width: 12px; height: 12px; border-radius: 4px; background: var(--grad); }

/* ---- Demo thank-you: session footnote ----------------------------------- */
.a4dt-footnote { margin: 48px auto 0; text-align: center; font-size: 15px; color: var(--muted); }

/* ---- Demo thank-you: scenario table (the site's comparison-table look) --- */
.a4dt-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.a4dt-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.a4dt-table thead th { padding: 16px 24px; background: var(--alt); text-align: left; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple); border-bottom: 1px solid var(--line); }
.a4dt-table tbody th,
.a4dt-table tbody td { padding: 20px 24px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.a4dt-table tbody tr:last-child th,
.a4dt-table tbody tr:last-child td { border-bottom: 0; }
.a4dt-table tbody th { width: 28%; font-size: 16px; font-weight: 600; color: var(--ink); }
.a4dt-table tbody td { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
@media (hover: hover) { .a4dt-table tbody tr:hover { background: var(--alt); } }

/* ---- Demo thank-you: before the session --------------------------------- */
.a4dt-prep-wrap { padding: 0 0 96px; }
.a4dt-prep {
  max-width: 1040px;
  margin: 0 auto;
  padding: 72px 32px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 90% at 15% 0%, rgba(95, 57, 143, 0.08), transparent 70%),
    radial-gradient(60% 90% at 85% 100%, rgba(145, 56, 132, 0.08), transparent 70%),
    var(--alt);
}
.a4dt-prep .eyebrow { justify-content: center; }
.a4dt-prep h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; max-width: 720px; margin: 0 auto 16px; text-wrap: balance; }
.a4dt-prep p { max-width: 620px; margin: 0 auto 28px; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }

/* ---- Demo thank-you: summary strip on the gradient band ----------------- */
.a4dt-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 760px;
  margin: 36px auto 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  text-align: left;
}
.a4dt-strip > div { padding: 16px 20px; }
.a4dt-strip > div + div { border-left: 1px solid rgba(255, 255, 255, 0.2); }
.a4dt-strip dt { color: rgba(255, 255, 255, 0.72); }
.a4dt-strip dd { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: #fff; overflow-wrap: anywhere; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 991px) {
  /* One column: heading, then the confirmation card, then the intro and checklist. */
  .a4dt-hero .a4ft-copy > .a4ft-lede,
  .a4dt-hero .a4ft-copy > .a4ft-points { order: 3; }
  .a4dt-cardwrap { order: 2; margin: 8px 0 36px; }
  .a4dm-bring { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .a4dt-prep { padding: 56px 24px; }
  .a4dt-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a4dt-strip > div:nth-child(3) { border-left: 0; }
  .a4dt-strip > div:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.2); }
}
@media (max-width: 600px) {
  .a4dt-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 16px; }
  .a4dt-facts dd { font-size: 15px; }
}
