/* Clinora sample booking. Scoped to .cdemo; uses the public brand palette. */
.cdemo {
  --cd-ink: #183140; --cd-muted: #516779; --cd-line: #d7e1e8; --cd-soft: #f6fafc;
  --cd-accent: #0f766e; --cd-accent-strong: #0d5f59; --cd-accent-soft: #e4f4f2;
  --cd-booked: #eef1fb; --cd-booked-line: #6474c9;
  box-sizing: border-box; max-width: 1180px; margin: 0 auto; padding: 3rem 1rem;
  color: var(--cd-ink); scroll-margin-top: 5rem;
}
.cdemo *, .cdemo *::before, .cdemo *::after { box-sizing: border-box; }
.cdemo [hidden] { display: none !important; }
.cdemo__intro { max-width: 40rem; margin-bottom: 1.5rem; }
.cdemo__intro h1, .cdemo__intro h2 { margin: .25rem 0 .5rem; font-size: clamp(1.6rem, 4vw, 2.25rem); line-height: 1.15; }
.cdemo__intro p:not(.eyebrow) { margin: 0 0 .5rem; color: var(--cd-muted); font-size: 1.0625rem; line-height: 1.55; }

.cdemo__app {
  background: #fff; border: 1px solid var(--cd-line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 46px rgba(15, 23, 42, .09); scroll-margin: 1rem;
}
.cdemo__bar {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
  padding: .75rem 1rem; border-bottom: 1px solid var(--cd-line); background: var(--cd-soft);
}
.cdemo__bar-title { font-weight: 700; }
.cdemo__badge {
  font-size: .8125rem; font-weight: 600; color: var(--cd-accent-strong);
  background: var(--cd-accent-soft); padding: .25rem .6rem; border-radius: 999px;
}
.cdemo__body { display: grid; }

/* Homepage: the product section is a two-column grid on desktop. */
#product.public-benefits > .cdemo { grid-column: 1 / -1; width: 100%; max-width: none; padding-inline: 0; }

/* Calendar lane */
.cdemo__day { padding: 1rem; border-bottom: 1px solid var(--cd-line); }
.cdemo__dayhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; margin-bottom: .75rem; }
.cdemo__dayhead span { color: var(--cd-muted); font-size: .9375rem; }
.cdemo__lane {
  --cd-row: 3.125rem;
  display: grid; grid-template-columns: 3.25rem 1fr; grid-template-rows: repeat(8, var(--cd-row)) 1.25rem;
}
.cdemo__time { grid-column: 1; padding-top: .2rem; font-size: .8125rem; color: var(--cd-muted); font-variant-numeric: tabular-nums; }
.cdemo__events {
  grid-column: 2; grid-row: 1 / 9; display: grid; grid-template-rows: repeat(8, var(--cd-row));
  list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--cd-line);
  background: repeating-linear-gradient(to bottom, var(--cd-line) 0 1px, transparent 1px var(--cd-row));
}
.cdemo__event { display: flex; padding: 2px 0; min-width: 0; }
.cdemo__event > * { flex: 1; min-width: 0; }
.cdemo-r1 { grid-row-start: 1; } .cdemo-r2 { grid-row-start: 2; } .cdemo-r3 { grid-row-start: 3; }
.cdemo-r4 { grid-row-start: 4; } .cdemo-r5 { grid-row-start: 5; } .cdemo-r6 { grid-row-start: 6; }
.cdemo-r7 { grid-row-start: 7; } .cdemo-r8 { grid-row-start: 8; } .cdemo-r9 { grid-row-start: 9; }
.cdemo-span-1 { grid-row-end: span 1; } .cdemo-span-2 { grid-row-end: span 2; }
.cdemo-span-3 { grid-row-end: span 3; } .cdemo-span-4 { grid-row-end: span 4; }
.cdemo__event--slot { scroll-margin-top: 5rem; }
.cdemo__appt {
  display: flex; flex-direction: column; justify-content: flex-start; overflow: hidden; padding: .35rem .65rem;
  border-radius: 10px; border-left: 4px solid var(--cd-booked-line); background: var(--cd-booked);
  font-size: .875rem; line-height: 1.3;
}
.cdemo__appt > * { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cdemo__appt > span { color: var(--cd-muted); font-size: .8125rem; }
.cdemo__appt--new { border-left-color: var(--cd-accent); background: var(--cd-accent-soft); }
.cdemo.is-done .cdemo__appt--new { animation: cdemo-land .45s ease-out both; }
@keyframes cdemo-land {
  from { opacity: 0; transform: translateY(-6px) scale(.98); box-shadow: 0 0 0 0 rgba(15, 118, 110, .35); }
  60% { box-shadow: 0 0 0 6px rgba(15, 118, 110, .15); }
  to { opacity: 1; transform: none; box-shadow: 0 0 0 0 rgba(15, 118, 110, 0); }
}
.cdemo__slot {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  width: 100%; min-height: 44px; padding: .35rem .75rem;
  font: inherit; text-align: left; color: var(--cd-accent-strong); cursor: pointer;
  background: #fff; border: 2px dashed var(--cd-accent); border-radius: 10px;
}
.cdemo__slot-label { font-weight: 700; }
.cdemo__slot-hint { font-size: .8125rem; }
.cdemo__slot:hover:not(:disabled) { background: var(--cd-accent-soft); }
.cdemo__slot:disabled { cursor: default; border-color: var(--cd-line); color: var(--cd-muted); }
.cdemo__slot:disabled .cdemo__slot-hint { display: none; }
.cdemo.is-picking .cdemo__slot { border-style: solid; background: var(--cd-accent-soft); }
.cdemo.is-picking .cdemo__slot-hint { font-weight: 700; }
.cdemo.is-picking .cdemo__slot-hint::before { content: "\2713\00a0"; }

/* Step panel */
.cdemo__panel { padding: 1rem 1rem 1.25rem; display: flex; flex-direction: column; }
.cdemo__progress { display: none; }
.cdemo.is-ready .cdemo__progress {
  display: block; margin: 0 0 .25rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--cd-muted);
}
.cdemo__step-title { margin: 0 0 .75rem; font-size: 1.25rem; line-height: 1.25; }
.cdemo__step-title:focus { outline: none; }
.cdemo__step-title:focus-visible { outline: 3px solid var(--cd-accent); outline-offset: 4px; border-radius: 4px; }
.cdemo__step p { margin: 0 0 .75rem; line-height: 1.55; }
.cdemo__js { display: none; }
.cdemo__steps {
  list-style: none; counter-reset: cdemo-step; margin: .5rem 0 0; padding: 0; display: grid; gap: .4rem;
  color: var(--cd-muted); font-size: .9375rem;
}
.cdemo__steps li { counter-increment: cdemo-step; display: flex; align-items: center; gap: .6rem; }
.cdemo__steps li::before {
  content: counter(cdemo-step); display: inline-grid; place-items: center; flex: none;
  width: 1.5rem; height: 1.5rem; border-radius: 50%; font-size: .75rem; font-weight: 700;
  color: var(--cd-accent-strong); background: var(--cd-accent-soft);
}
.cdemo.is-ready .cdemo__js { display: block; }
.cdemo.is-ready .cdemo__nojs { display: none; }
.cdemo__choices { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; gap: .5rem; }
.cdemo__choice {
  position: relative; display: grid; gap: .1rem; width: 100%; min-height: 52px; padding: .6rem 2.75rem .6rem .9rem;
  font: inherit; text-align: left; color: var(--cd-ink); cursor: pointer;
  background: #fff; border: 1px solid var(--cd-line); border-radius: 12px;
  transition: border-color .15s ease, background-color .15s ease;
}
.cdemo__choice:hover { border-color: var(--cd-accent); background: var(--cd-soft); }
.cdemo__choice-title { font-weight: 600; }
.cdemo__choice-detail { font-size: .875rem; color: var(--cd-muted); }
.cdemo__check {
  position: absolute; right: .9rem; top: 50%; width: 1.25rem; height: 1.25rem; margin-top: -.625rem;
  border: 2px solid var(--cd-line); border-radius: 50%;
}
.cdemo__choice[aria-pressed="true"] { border-color: var(--cd-accent); background: var(--cd-accent-soft); }
.cdemo__choice[aria-pressed="true"] .cdemo__check { border-color: var(--cd-accent); background: var(--cd-accent); }
.cdemo__choice[aria-pressed="true"] .cdemo__check::after {
  content: ""; position: absolute; left: .32rem; top: .12rem; width: .3rem; height: .6rem;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.cdemo__meta { font-size: .9375rem; color: var(--cd-muted); }
.cdemo__summary { margin: 0 0 1rem; display: grid; gap: .1rem; }
.cdemo__summary div {
  display: grid; grid-template-columns: 7rem 1fr; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--cd-line);
}
.cdemo__summary dt { color: var(--cd-muted); font-size: .9375rem; }
.cdemo__summary dd { margin: 0; font-weight: 600; }
.cdemo__primary, .cdemo-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.25rem;
  font: inherit; font-weight: 700; color: #fff; text-decoration: none; cursor: pointer;
  background: var(--cd-accent); border: 0; border-radius: 12px;
}
.cdemo__primary { width: 100%; }
.cdemo__primary:hover, .cdemo-cta:hover { background: var(--cd-accent-strong); color: #fff; }
.cdemo__note {
  padding: .75rem .9rem; border-radius: 12px; background: var(--cd-soft); color: var(--cd-muted); font-size: .9375rem;
}
.cdemo__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--cd-accent-strong); font-weight: 600; }
.cdemo__nav { display: flex; gap: .5rem; margin-top: auto; padding-top: .5rem; }
.cdemo__ghost {
  min-height: 44px; padding: .5rem .9rem; font: inherit; font-weight: 600; color: var(--cd-accent-strong); cursor: pointer;
  background: transparent; border: 1px solid var(--cd-line); border-radius: 10px;
}
.cdemo__ghost:hover { background: var(--cd-soft); }
.cdemo button:focus-visible, .cdemo a:focus-visible { outline: 3px solid var(--cd-accent); outline-offset: 3px; }

/* Trial inquiry */
.cdemo__trial {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem;
  margin-top: 1rem; padding: 1rem 1.25rem; border-radius: 16px; background: var(--cd-accent-soft);
}
.cdemo__trial p { margin: 0; line-height: 1.5; }

@media (min-width: 768px) {
  .cdemo { padding: 4rem 1.5rem; }
  .cdemo__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .cdemo__day { padding: 1.25rem; border-bottom: 0; border-right: 1px solid var(--cd-line); }
  .cdemo__panel { padding: 1.25rem 1.5rem 1.5rem; min-height: 24rem; }
  .cdemo__primary { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cdemo.is-done .cdemo__appt--new { animation: none; }
  .cdemo__choice { transition: none; }
}
@media (forced-colors: active) {
  .cdemo__choice[aria-pressed="true"] { outline: 2px solid CanvasText; }
  .cdemo__slot { border-style: solid; }
}
