/* Bellslate website — Book a demo (calendar, times, details, confirmation) */

.booking {
  background: linear-gradient(180deg, var(--paper), var(--cream));
}

.booker {
  display: grid;
  grid-template-columns: 320px 1fr;
  border-radius: calc(var(--radius) + 10px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  scroll-margin-top: 100px;
}

/* Side summary */
.booker-side {
  display: grid;
  align-content: start;
  gap: 26px;
  padding: 32px 28px;
  background: var(--ink);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}

.booker-side::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -120px;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 184, 46, 0.35), transparent 70%);
  pointer-events: none;
}

.booker-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.booker-brand img {
  width: 44px;
  height: auto;
  padding: 8px;
  border-radius: 14px;
  background: var(--cream);
}

.booker-brand small {
  display: block;
  font-size: 15px;
  color: var(--on-dark-2);
}

.booker-brand b {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}

.booker-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  font-weight: 600;
}

.booker-facts li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.booker-facts .i {
  color: var(--brass);
  margin-top: 2px;
}

.booker-when {
  padding: 14px;
  border-radius: 14px;
  background: rgba(245, 184, 46, 0.14);
  border: 1px solid rgba(245, 184, 46, 0.4);
  flex-wrap: wrap;
  animation: fadeUp 0.4s var(--ease);
}

.booker-when > span {
  flex: 1;
}

.booker-when b {
  color: var(--cream);
}

.booker-change {
  border: 0;
  background: none;
  color: var(--brass);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.booker-cover {
  display: grid;
  gap: 12px;
}

.booker-cover b {
  font-size: 15px;
  color: var(--brass);
}

.booker-cover .ticks li {
  color: var(--on-dark-2);
  font-size: 15px;
}

.booker-cover .ticks li::before {
  background-color: var(--brass);
}

/* Main column */
.booker-main {
  padding: clamp(20px, 3vw, 36px);
  display: grid;
  align-content: start;
  gap: 22px;
  min-width: 0;
}

.booker-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  counter-reset: step;
}

.booker-steps li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--line);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-2);
  transition: border-color 0.3s, color 0.3s;
}

.booker-steps i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-style: normal;
  font-size: 14px;
  background: var(--cream);
  flex: none;
}

.booker-steps li[aria-current],
.booker-steps li.done {
  color: var(--ink);
  border-color: var(--brass);
}

.booker-steps li[aria-current] i {
  background: var(--ink);
  color: var(--cream);
}

.booker-steps li.done i {
  background: var(--brass);
  color: var(--ink);
}

.booker-pane {
  display: grid;
  gap: 20px;
  animation: fadeUp 0.45s var(--ease);
}

/* Mode */
.mode-pick {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mode-pick legend {
  font-weight: 700;
  margin-bottom: 10px;
  padding: 0;
}

.mode-pick label {
  position: relative;
}

.mode-pick input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.mode-pick span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.mode-pick input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.mode-pick input:focus-visible + span {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

/* Soonest */
.soonest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
}

.soon {
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--brass-soft);
  color: #7a4f00;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}

.soon:hover {
  transform: translateY(-2px);
}

/* Calendar + times */
.pick {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.cal {
  display: grid;
  gap: 10px;
}

.cal[aria-busy="true"] .cal-grid:not(.cal-week) {
  min-height: 260px;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--cream) 25%, var(--paper) 50%, var(--cream) 75%) 0 0 / 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cal-head b {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

.cal-nav {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--white);
  cursor: pointer;
}

.cal-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.flip {
  transform: scaleX(-1);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-week span {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
}

.cal-day {
  aspect-ratio: 1;
  max-height: 52px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-weight: 600;
  font-size: 16px;
  color: rgba(19, 38, 31, 0.32);
  position: relative;
}

.cal-day:not(:disabled) {
  background: var(--brass-soft);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s;
}

.cal-day:not(:disabled):hover {
  transform: scale(1.08);
}

.cal-day.today::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: currentColor;
}

.cal-day[aria-pressed="true"] {
  background: var(--ink) !important;
  color: var(--cream) !important;
  box-shadow: 0 8px 18px -8px rgba(16, 56, 45, 0.8);
}

.cal-tz {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
}

.cal-tz .i {
  color: var(--brass-deep);
}

.times {
  display: grid;
  gap: 10px;
}

.times-day {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  min-height: 42px;
  display: flex;
  align-items: center;
}

.times-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding: 2px 4px 4px 2px;
}

.times-group {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-2);
}

.times-empty {
  grid-column: 1 / -1;
  color: var(--text-2);
}

.slot {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 12px 8px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-size: 16px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
  animation: fadeUp 0.35s var(--ease) both;
}

.slot:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.slot small {
  font-size: 13px;
  color: var(--text-2);
}

.slot[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.slot[aria-pressed="true"] small {
  color: var(--on-dark-2);
}

.booker-msg {
  min-height: 1.2em;
  font-weight: 600;
  color: var(--coral-deep);
}

.booker-msg:empty {
  display: none;
}

.booker-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Details form (also used by Contact us) */
.booker-form label,
.demo-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
}

.booker-form input,
.booker-form select,
.booker-form textarea,
.demo-form textarea {
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-weight: 500;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.booker-form textarea,
.demo-form textarea {
  resize: vertical;
}

.booker-form :is(input, select, textarea):focus,
.demo-form textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(245, 184, 46, 0.35);
  outline: none;
}

.booker-form .invalid,
.demo-form .invalid {
  border-color: var(--coral-deep);
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Confirmed */
.booker-done {
  justify-items: center;
  text-align: center;
  padding: 10px 0;
}

.booker-done:focus {
  outline: none;
}

.done-badge {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--mint-deep);
  animation: pop 0.6s var(--ease) both;
}

.done-badge .i {
  width: 42px;
  height: 42px;
  stroke-width: 3;
}

@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}

.booker-done h3 {
  font-size: clamp(30px, 3.4vw, 42px);
}

.done-ref {
  color: var(--text-2);
}

.done-ref b {
  color: var(--ink);
  letter-spacing: 0.02em;
}

.done-card {
  display: grid;
  gap: 12px;
  width: min(520px, 100%);
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-align: start;
  font-weight: 600;
}

.done-card div {
  display: flex;
  gap: 12px;
  align-items: center;
}

.done-card .i {
  color: var(--brass-deep);
}

.done-card a {
  color: var(--sky-deep);
  text-decoration: underline;
  word-break: break-all;
}

.done-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.done-next {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  width: min(520px, 100%);
  text-align: start;
  counter-reset: next;
}

.done-next li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 2px 12px;
  counter-increment: next;
}

.done-next li::before {
  content: counter(next);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brass);
  color: var(--ink);
  font-weight: 800;
}

.done-next span {
  color: var(--text-2);
}

.link-btn {
  border: 0;
  background: none;
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.booker-offline {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 24px;
  border-radius: 18px;
  background: var(--coral);
}

/* The demo page (home/demo/) */
.booking-page {
  padding-top: clamp(40px, 6vw, 72px);
  background:
    radial-gradient(600px 360px at 90% 0%, rgba(245, 184, 46, 0.22), transparent 70%),
    linear-gradient(180deg, var(--paper), var(--cream));
}

.booking-page .section-head {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.demo-expect {
  padding-top: 0;
  background: var(--cream);
}

.expect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.expect {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.expect b {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  color: var(--brass-deep);
}

.expect h3 {
  font-size: 23px;
}

.expect p {
  color: var(--text-2);
}

/* Responsive */
@media (max-width: 1080px) {
  .booker {
    grid-template-columns: 1fr;
  }

  .booker-side {
    grid-template-columns: 1fr 1fr;
    padding: 24px;
  }

  .booker-cover {
    display: none;
  }
}

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

  .pick {
    grid-template-columns: 1fr;
  }

  .times-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
  }
}

@media (max-width: 600px) {
  .booker-side {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .booker-steps span {
    display: none;
  }

  .booker-steps li {
    justify-content: center;
  }

  .times-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode-pick label,
  .mode-pick span {
    width: 100%;
  }

  .booker-actions .btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cal[aria-busy="true"] .cal-grid:not(.cal-week) {
    animation: none;
  }
}
