/* Book a demo (/demo.html). Loaded after styles.css and pages.css. */
.dm { padding: 48px 0 112px; }
.dm-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }

/* ---------- Left column ---------- */
.dm-left .eyebrow { display: inline-block; margin-bottom: 16px; }
.dm-left h1 { font-size: 52px; line-height: 56px; font-weight: 800; letter-spacing: -0.04em; }
.dm-left .lead { margin-top: 18px; max-width: 520px; }
/* What you get: three plain lines with a purple tick, no icon tiles */
.dm-gets { list-style: none; display: grid; gap: 14px; margin-top: 32px; }
.dm-gets li { display: flex; gap: 12px; align-items: center; font-size: 16px; line-height: 24px; font-weight: 600; }
.dm-gets svg { flex: none; width: 18px; height: 18px; color: var(--purple); stroke-width: 2.5; }
.dm-logos { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); max-width: 520px; }
.dm-logos .micro { color: var(--label); }
/* Single-row logo carousel (marquee styles from styles.css); faster loop for the shorter row */
.dm-marquee { margin-top: 20px; max-width: none; }
.dm-marquee .marquee-track { animation-duration: 28s; }
/* Phones show fewer logos at once, so the same speed reads as slow: run it faster there */
@media (max-width: 960px) { .dm-marquee .marquee-track { animation-duration: 20s; } }
.dm-marquee img { margin-right: 48px; }

/* ---------- Right card ---------- */
/* Flat soft-grey panel, no outline or drop shadow; fields stay white so they read clearly on it */
.dm-card { position: sticky; top: 96px; background: var(--grey); border-radius: var(--r-card); padding: 32px; scroll-margin-top: 88px; }
.dm-card .dm-field input { background: var(--white); }
.dm-step.is-active.anim { animation: dmIn .4s var(--ease); }
@keyframes dmIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dm-card h2 { font-size: 26px; line-height: 32px; font-weight: 800; letter-spacing: -0.03em; }
.dm-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; font-size: 15px; color: var(--body); }
.dm-sub svg { width: 16px; height: 16px; color: var(--label); }

.dm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dm-field { margin-top: 16px; border: 0; min-width: 0; }
.dm-field label, .dm-field legend { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.dm-field input, .dm-field textarea, .dm-field select { width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid var(--border); padding: 11px 14px; font: inherit; font-size: 15px; color: var(--black); background: var(--white); resize: vertical; }
.dm-field input:focus, .dm-field textarea:focus, .dm-field select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--lavender); }
.dm-field.bad input { border-color: #D64545; }
.dm-err { display: block; font-size: 13px; color: #C23B3B; margin-top: 4px; }
.dm-err:empty { display: none; }

.dm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-chips label { margin: 0; cursor: pointer; }
.dm-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dm-chips span { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--body); transition: background-color .2s, border-color .2s, color .2s; }
@media (hover: hover) { .dm-chips label:hover span { background: var(--grey); } }
.dm-chips input:checked + span { background: var(--lavender); border-color: var(--lavender); color: var(--purple); }
.dm-chips input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px; }
.dm-needs.bad .dm-chips span { border-color: #E9A6A6; }

.dm-plan { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(223, 217, 246, .5); font-size: 14px; font-weight: 600; color: var(--purple-deep); }
/* Same size as the Book a demo buttons across the site, not full width */
.dm-submit { display: flex; margin: 24px auto 0; }

/* ---------- Calendar ---------- */

/* ---------- Done ---------- */
.dm-done { text-align: center; padding: 8px 0; }
.dm-done-ico { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--lavender); color: var(--purple); margin-bottom: 16px; }
.dm-done-ico svg { width: 28px; height: 28px; }
.dm-done .dm-sub { justify-content: center; }
.dm-done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) and (min-width: 961px) { .dm-grid { gap: 40px; } .dm-cal { grid-template-columns: 1fr; } .dm-slots { grid-template-columns: repeat(3, 1fr); max-height: none; } }
@media (max-width: 960px) {
  .dm { padding: 40px 0 64px; }
  .dm-grid { grid-template-columns: 1fr; gap: 40px; }
  .dm-left h1 { font-size: 38px; line-height: 44px; }
  .dm-card { position: static; padding: 24px 18px; }
  .dm-left { display: contents; }
  /* Mobile order: intro, logos, form, then the checklist */
  .dm-left > .eyebrow, .dm-left > h1, .dm-left > .lead, .dm-left > .dm-logos { order: 0; }
  .dm-grid > .dm-card { order: 1; }
  .dm-left > .dm-gets { order: 2; }
  /* Phones: centred intro like every other hero; the checklist and logos follow the form as proof */
  .dm-left > .eyebrow { justify-self: center; }
  .dm-left > h1, .dm-left > .lead { text-align: center; }
  .dm-left > .dm-gets { justify-self: center; margin-top: 0; }
  .dm-left > .dm-logos { margin-top: -12px; padding-top: 0; border-top: 0; text-align: center; }
  .dm-left > .eyebrow { margin-bottom: -28px; }
  .dm-left > .lead { margin-top: -24px; }
  .dm-row { grid-template-columns: 1fr; gap: 0; }
    .dm-done-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .dm-step.is-active.anim { animation: none; }
}

/* ---------- Polish ---------- */
h1, h2, h3 { text-wrap: balance; }
/* Soft wash: white to grey and back to white before the footer */
.dm { background: var(--white); }

/* ---------- Primary location combobox (SoCreative styled, type to search) ---------- */
.dm-combo-box { position: relative; }
.dm-combo-box input { padding-right: 40px; }
.dm-combo-box > svg { position: absolute; right: 14px; top: 23px; width: 16px; height: 16px; margin-top: -8px; color: var(--label); pointer-events: none; transition: transform .25s var(--ease); }
.dm-combo.open .dm-combo-box > svg { transform: rotate(180deg); }
.dm-combo-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: 264px; overflow-y: auto; list-style: none; margin: 0; padding: 6px;
  background: var(--white); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(27, 27, 27, .22); scrollbar-width: thin; }
/* Keep all four corners rounded: clip the scrolling list (and its scrollbar) to the radius; slim scrollbar with no track */
.dm-combo-list { clip-path: inset(0 round 14px); scrollbar-width: thin; scrollbar-color: #D5D5DC transparent; }
.dm-combo-list::-webkit-scrollbar { width: 10px; }
.dm-combo-list::-webkit-scrollbar-track { background: transparent; margin: 8px 0; }
.dm-combo-list::-webkit-scrollbar-thumb { background: #D5D5DC; border-radius: 10px; border: 3px solid var(--white); }
.dm-combo-list li { padding: 10px 12px; border-radius: 9px; font-size: 15px; line-height: 20px; cursor: pointer; transition: background-color .18s ease, color .18s ease; }
/* Colour only (no bold), so text never shifts as the highlight moves */
.dm-combo-list li[aria-selected="true"] { background: var(--lavender); color: var(--purple); }
.dm-combo-list li.dm-combo-empty { color: var(--label); cursor: default; }

/* ---------- Marketing consent + legal line ---------- */
.dm-consent { position: relative; display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: 13px; line-height: 19px; color: var(--body); cursor: pointer; }
.dm-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
/* The outline is an inset shadow, not a border, so the 14px tick sits on whole pixels (2px in): with a 1.5px border it
   sat at 2.5px and iPhone Safari nudged it by a pixel as it faded in */
.dm-box { flex: none; width: 18px; height: 18px; margin-top: 0; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--border); background: var(--white); display: grid; place-items: center; color: var(--white); transition: background-color .2s, box-shadow .2s; }
.dm-box svg { width: 14px; height: 14px; stroke-width: 3; opacity: 0; transition: opacity .15s; }
@media (hover: hover) { .dm-consent:hover .dm-box { box-shadow: inset 0 0 0 1.5px #C3C7CE; } }
.dm-consent input:checked + .dm-box { background: var(--purple); box-shadow: inset 0 0 0 1.5px var(--purple); }
.dm-consent input:checked + .dm-box svg { opacity: 1; }
.dm-consent input:focus-visible + .dm-box { box-shadow: 0 0 0 3px var(--lavender), inset 0 0 0 1.5px var(--purple); }
.dm-step > .dm-row:first-child .dm-field { margin-top: 0; }
.dm-legal { margin-top: 14px; font-size: 13px; line-height: 20px; color: var(--label); text-align: center; text-wrap: balance; }
.dm-legal a { color: var(--black); text-decoration: underline; text-underline-offset: 2px; }
.dm-legal a:hover { color: var(--black); }
@media (max-width: 600px) { .dm-br { display: none; } }
/* Phone: the logo marquee must not widen the column (grid children default to min-content width) */
.dm-grid > * { min-width: 0; }
.dm-logos { overflow: hidden; }
.dm-send-err { font-size: 14px; color: #C23B3B; margin: 0 0 12px; }
.dm-send-err a { color: inherit; text-decoration: underline; }
