/* sec-demo.css: Book a demo (three steps in one pale olive card) and its confirmation. Owned by phase-2 builder P3. Tokens only.
   The stepper is the template's Monthly/Annual toggle vocabulary (cream track, active tab in the CTA fill, DETAILS device 7); the day
   and time controls are 2px ink-bordered 8px squares with the button hover scale (device 5); the card is the pale olive card (device 8).
   The hero rules below repeat sec-company.css on purpose: each module loads only its own sheet. */
:root { --co-tilt: -7.7deg; }
.dm-form [hidden], .dm-band [hidden], .co-hero [hidden], .dm-done__body [hidden] { display: none !important; }

/* ---- hero (same as sec-company.css) ------------------------------------------------------------------------------------------- */
.co-hero { padding-bottom: var(--gap-xxl); }
.co-hero__grid { display: grid; gap: var(--gap-xl); }
.co-hero__text { min-width: 0; }
.co-h1 { font-size: var(--fs-h2big); }
.co-hero .actions { margin-top: var(--gap-l); }
.co-hero--center .crumbs ol { justify-content: center; }
.co-hero--center .actions { justify-content: center; }
.co-hero--center .co-hero__grid { justify-items: center; }
@media (min-width: 992px) {
  .co-hero--split .co-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-xxl); align-items: start; }
}

/* ---- the intro under the headline ------------------------------------------------------------------------------------------------ */
.dm-intro { display: grid; gap: var(--gap-m); margin-top: var(--gap-l); }
.dm-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--gap-s); }
.dm-chips li { padding: 8px 14px; border: 2px solid var(--ink); border-radius: var(--r-pill); background: var(--ground); font: 600 15px/1.2 var(--body); }
.dm-response { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; }
.dm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: var(--shadow-chip); flex: none; }
.dm-compare { margin: 0; color: var(--ink-70); }
.dm-tlink { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; color: var(--ink); font-weight: 600; text-decoration: none; }
.dm-tlink span { text-decoration: underline; text-underline-offset: 4px; }
.dm-tlink:hover span { text-decoration-thickness: 2px; }
.dm-arrow { width: 20px; height: 20px; flex: none; }

/* ---- the card and the stepper ------------------------------------------------------------------------------------------------------ */
.dm-card { padding: var(--gap-l); background: var(--card); border-radius: var(--r-xl); }
.dm-steps { list-style: none; display: flex; gap: 4px; margin: 0 0 var(--gap-l); padding: 4px; background: var(--ground); border: 2px solid var(--card); border-radius: 14px; }
.dm-step { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: var(--gap-s); min-height: 36px; padding: 8px 12px; border-radius: var(--r-sm); font: 600 15px/1.2 var(--body); color: var(--ink-70); text-align: center; transition: color .3s; }
.dm-step.is-current { background: var(--cta); color: var(--ink); }
.dm-step.is-done { color: var(--ink); }
.dm-step__n { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border: 2px solid currentColor; border-radius: 50%; font-size: 12px; line-height: 1; }
.dm-step.is-done .dm-step__n { background: var(--ink); border-color: var(--ink); color: var(--ground); }

/* ---- panels ------------------------------------------------------------------------------------------------------------------------- */
.dm-panel.is-entering { animation: dm-in .45s var(--ease-rise) both; }
@keyframes dm-in { from { opacity: 0; translate: 0 var(--rise-y); } to { opacity: 1; translate: 0 0; } }
.dm-panel__h { margin: 0 0 var(--gap-s); }
.dm-panel__h:focus { outline: none; }
.dm-panel__note { margin: 0 0 var(--gap-l); color: var(--ink-70); }
.dm-fields { display: grid; gap: var(--gap-m); }
.dm-hp { position: absolute; left: -9999px; top: 0; width: 48px; height: 48px; overflow: hidden; }
.dm-hp input { width: 48px; height: 48px; }
.dm-privacy { margin: var(--gap-m) 0 0; font-size: 14px; color: var(--ink-70); }
.dm-privacy__link { display: inline-block; min-height: 24px; line-height: 24px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.dm-form .field label { font-size: 15px; font-weight: 600; }
.dm-form .field input, .dm-form .field textarea { min-height: 48px; background: var(--ground); }
.dm-form .field textarea { min-height: 96px; }
.dm-form ::placeholder { color: var(--ink-70); opacity: 1; }
.dm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--gap-l); }
.dm-actions--split { justify-content: space-between; }
.dm-actions .btn { min-height: 52px; }
.dm-actions .dm-arrow { margin-right: -4px; }
@media (min-width: 560px) {
  .dm-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dm-fields .field:nth-child(3), .dm-fields .field:nth-child(6) { grid-column: 1 / -1; }
}
@media (max-width: 767px) { .dm-card { padding: var(--gap-m); border-radius: var(--r-lg); } }
@media (max-width: 479px) {
  .dm-step { padding-inline: 8px; white-space: nowrap; }
  .dm-step:not(.is-current) { flex: 0 0 48px; }
  .dm-step:not(.is-current) .dm-step__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dm-actions .btn { flex: 1 1 auto; }
}

/* ---- the designed month calendar ----------------------------------------------------------------------------------------------------- */
.dm-cal { padding: var(--gap-m); background: var(--ground); border-radius: var(--r-md); }
.dm-cal__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-s); margin-bottom: 12px; }
.dm-cal__title { margin: 0; font: 400 28px/1 var(--display); letter-spacing: -.02em; }
.dm-nav { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: transparent; color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r-sm); cursor: pointer; transition: transform .2s; }
.dm-nav:hover:not(:disabled) { transform: scale(.98); }
.dm-nav:disabled { opacity: .35; cursor: not-allowed; }
.dm-nav svg { width: 20px; height: 20px; }
.dm-dow, .dm-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dm-dow { margin-bottom: var(--gap-s); text-align: center; font: 500 12px/1 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-70); }
.dm-days { list-style: none; margin: 0; padding: 0; }
.dm-day { display: grid; place-items: center; width: 100%; min-height: 36px; aspect-ratio: 1; padding: 0; border-radius: var(--r-sm); font: 600 16px/1 var(--body); }
button.dm-day { background: var(--ground); color: var(--ink); border: 2px solid var(--ink); cursor: pointer; transition: transform .2s, background .2s; }
button.dm-day:hover { transform: scale(.98); background: var(--cta); }
button.dm-day[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.dm-day.is-off { background: var(--card); color: var(--ink-70); font-weight: 500; }

/* ---- time chips ------------------------------------------------------------------------------------------------------------------------- */
.dm-timebox { margin-top: var(--gap-m); min-height: 96px; }
.dm-hint { margin: 0; color: var(--ink-70); }
.dm-times__h { margin: 0 0 12px; font: 600 16px/1.3 var(--body); }
.dm-chiprow { display: flex; flex-wrap: wrap; gap: var(--gap-s); }
.dm-chipwrap { position: relative; display: inline-block; }
.dm-chip__in { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; }
.dm-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; background: var(--ground); border: 2px solid var(--ink); border-radius: var(--r-sm); font: 600 16px/1 var(--body); cursor: pointer; transition: transform .2s, background .2s; }
.dm-chip:hover { transform: scale(.98); background: var(--cta); }
.dm-chip__in:checked + .dm-chip { background: var(--ink); color: var(--ground); }
/* a time already past on the current day: shown, struck through, not selectable */
.dm-chip__in:disabled + .dm-chip { cursor: not-allowed; border-color: var(--edge); color: var(--ink-70); background: transparent; text-decoration: line-through; transform: none; }
.dm-chip__in:focus-visible + .dm-chip { outline: 3px solid var(--link); outline-offset: 3px; }
.dm-zone { margin: var(--gap-m) 0 0; font-size: 14px; color: var(--ink-70); }
.dm-timebox .field__err, .dm-panel .dm-err { margin: var(--gap-s) 0 0; }

/* ---- review, notes ---------------------------------------------------------------------------------------------------------------------- */
.dm-sum { display: grid; margin: 0; }
.dm-sum__r { display: grid; gap: 4px; padding: 14px 0; border-top: 2px solid var(--ground); }
.dm-sum__r:last-child { border-bottom: 2px solid var(--ground); }
.dm-sum dt { font: 500 14px/1.3 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-70); }
.dm-sum dd { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
@media (min-width: 560px) { .dm-sum__r { grid-template-columns: 11rem minmax(0, 1fr); gap: var(--gap-m); } }
.dm-utm { margin: var(--gap-m) 0 0; font-size: 14px; color: var(--ink-70); overflow-wrap: anywhere; }
.dm-note { margin: var(--gap-m) 0 0; padding: 12px 16px; background: var(--ground); border-radius: var(--r-sm); font-weight: 600; color: var(--ink); }
.dm-form .form-noscript { margin: var(--gap-m) 0 0; color: var(--ink); }

/* ---- the confirmation page ----------------------------------------------------------------------------------------------------------------- */
.co-hero--done .wrap { max-width: 46rem; }
.dm-done__badge { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto var(--gap-l); background: var(--cta); border: 2px solid var(--ink); border-radius: 50%; }
.dm-tick { width: 32px; height: 32px; }
.dm-done__body { text-align: left; }
.dm-notice { margin: var(--gap-l) 0 0; padding: 16px 20px; background: var(--card); border-radius: var(--r-md); font-weight: 600; }
.dm-sum--card { margin-top: var(--gap-l); padding: var(--gap-s) var(--gap-l); background: var(--card); border-radius: var(--r-lg); }
.dm-done__next { margin: var(--gap-l) 0 0; font: 400 28px/1.15 var(--display); letter-spacing: -.02em; text-align: center; text-wrap: balance; }
.dm-done__body .actions { justify-content: center; }
