/*
 * Book a Demo page — 1:1 port of design-import/Demo.dc.html.
 * Owned by the book-a-demo page agent. Tokens come from
 * assets/css/design/base.css (Foundation). Enqueued after base.css by slug.
 *
 * Sizes/colors are verbatim from the Demo.dc.html inline styles:
 * section 72/24/88 on the white → var(--c-sand) gradient; 1000px rail;
 * 1fr/480px grid, 56px gap; 40px var(--d-tile) icon tiles (radius 10);
 * white card radius 16, border var(--d-line), shadow 0 24px 70px rgba(23,37,31,.08);
 * inputs var(--d-frame-bg) on var(--d-input-border) borders, radius 9. Responsive per the design:
 * grid stacks <=900, form grid stacks <=560.
 */

/* ── Section + left column ─────────────────────────────────────────────── */
.dbd-hero {
  padding: 72px 24px 88px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--d-bg) 100%);
}

.dbd-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  gap: 48px;
  align-items: start;
}

.dbd-badge {
  display: inline-block;
  border: 1px solid var(--d-input-border);
  background: #fff;
  border-radius: 99px;
  padding: 6px 15px;
  font-size: 13px;
  font-weight: 700;
  color: var(--d-green);
  margin: 0;
}

body.syncrx-site .dbd-hero h1 {
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.1;
  margin: 20px 0 0;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.dbd-lede {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--d-body);
  max-width: 420px;
  margin: 16px 0 0;
}

.dbd-points {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dbd-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.dbd-point__tile {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--d-tile);
  color: var(--d-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dbd-point__title {
  font-size: 14.5px;
  font-weight: 800;
}

.dbd-point__body {
  font-size: 13.5px;
  color: var(--d-body);
  margin-top: 3px;
  line-height: 1.5;
}

/* ── Demo-request card ─────────────────────────────────────────────────── */
.dbd-card {
  background: #fff;
  border: 1px solid var(--d-line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--d-shadow-frame-lg);
}

.dbd-card .dbd-card__title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: normal;
  margin: 0;
}

.dbd-card .dbd-card__lede {
  font-size: 13.5px;
  color: var(--d-body);
  margin: 6px 0 16px;
  line-height: 1.55;
}

/* Server status notices (demo_status GET) + the JS pending notice, restyled
   to the card. The success state echoes the design's sent-button var(--c-green). */
.dbd-card .form-status {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--d-input-border);
  border-radius: 10px;
  background: var(--d-frame-bg);
  color: var(--d-ink);
  font-size: 13.5px;
  line-height: 1.55;
}

.dbd-card .form-status--success {
  background: var(--d-accent);
  border-color: var(--d-accent);
  color: #fff;
}

.dbd-card .form-status--error {
  border-color: var(--d-strike);
}

/* ── Form ──────────────────────────────────────────────────────────────── */
.dbd-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dbd-form__grid > * {
  min-width: 0;
}

.dbd-form input[type="text"],
.dbd-form input[type="email"],
.dbd-form select,
.dbd-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--d-input-border);
  border-radius: 9px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14.5px;
  background: var(--d-frame-bg);
  color: var(--d-ink);
}

.dbd-form select {
  font-size: 14px;
}

.dbd-form input::placeholder,
.dbd-form textarea::placeholder {
  color: var(--d-muted);
  opacity: 1;
}

.dbd-form input:focus-visible,
.dbd-form select:focus-visible,
.dbd-form textarea:focus-visible {
  outline: 2px solid var(--d-green);
  outline-offset: 1px;
}

.dbd-form__message {
  margin-top: 12px;
  resize: vertical;
}

.dbd-form__submit {
  width: 100%;
  margin-top: 12px;
  background: var(--d-green);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease;
}

.dbd-form__submit:hover,
.dbd-form__submit:focus-visible {
  background: var(--d-green-hover);
}

/* theme.js disables the button while sending; mirror the design's sent
   state (var(--c-green)). */
.dbd-form__submit[disabled] {
  background: var(--d-accent);
  cursor: default;
}

.dbd-form__fineprint {
  text-align: center;
  font-size: 12px;
  color: var(--d-muted);
  margin: 10px 0 0;
}

/* ── Responsive (Demo.dc.html helmet rules) ────────────────────────────── */
@media (min-width: 1600px) {
  .dbd-grid {
    max-width: 1120px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    gap: 56px;
  }
}

@media (max-width: 900px) {
  .dbd-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .dbd-form__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Motion safety ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .dbd-form__submit {
    transition: none;
  }
}

/* ── Hero on deep green ───────────────────────────────────────────────────
   IMPORTANT: this hero contains the white .dbd-card form. Only the .dbd-intro
   column is re-coloured for a dark surface. Applying light text to the whole
   hero would make the card's own heading and labels invisible, which is exactly
   the defect that hit .home-connected-section. */
.dbd-hero {
  --srx-header-h: 98px;
  margin-top: calc(-1 * var(--srx-header-h));
  padding-top: calc(72px + var(--srx-header-h));
  background:
    radial-gradient(120% 90% at 50% 0%, var(--d-deep-glow) 0%, transparent 60%),
    linear-gradient(180deg, var(--d-deep-lift) 0%, var(--d-deep) 100%);
}

.dbd-intro h1 {
  color: #fff;
}

.dbd-intro .d-highlight {
  color: var(--c-sage);
}

.dbd-badge {
  color: var(--c-sage);
  border-color: color-mix(in srgb, var(--c-sage) 42%, transparent);
  background: color-mix(in srgb, var(--c-sage) 12%, transparent);
}

.dbd-lede,
.dbd-point__body {
  color: var(--d-sage-text);
}

.dbd-point__title {
  color: #fff;
}

.dbd-point__tile {
  background: color-mix(in srgb, var(--c-sage) 16%, transparent);
  color: var(--c-sage);
}

/* The `.dbd-intro h1` rule above is specificity (0,1,1) and was being outranked,
   leaving the heading its light-mode ink on the new green hero: measured 1.42:1,
   i.e. invisible. This matches the (0,2,2) of `body.syncrx-site .dbd-hero h1`
   further up the file and comes later, so it wins. */
body.syncrx-site .dbd-hero h1 {
  color: #fff;
}

body.syncrx-site .dbd-hero h1 .d-highlight {
  color: var(--c-sage);
}
