.booking-body {
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
}

.booking {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  width: 100%;
}

.booking-topbar {
  background: var(--brand);
  color: var(--brand-ink);
}

.booking-topbar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-5);
}

.booking-topbar__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-ink);
  color: var(--brand);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.booking-topbar__name {
  min-width: 0;
  overflow: hidden;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-topbar__tag {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--brand-ink);
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
}

.booking-hero {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-5) var(--space-4);
}

.booking-hero__name {
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, var(--text-3xl));
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
}

.booking-hero__tagline {
  max-width: 44ch;
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
}

.booking-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}

.booking-hero__meta .ph {
  flex: 0 0 auto;
  color: var(--accent);
}

.booking-steps {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  width: 100%;
  border-top: var(--line-thin) solid var(--line);
  border-bottom: var(--line-thin) solid var(--line);
  background: var(--bg);
}

.booking-steps__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-1);
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-2) var(--space-1);
  list-style: none;
}

.booking-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  min-width: 0;
  padding: var(--space-1) 0;
  text-align: center;
}

.booking-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: var(--line-thin) solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.booking-step__label {
  overflow: hidden;
  max-width: 100%;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-step.is-previous .booking-step__num {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink);
}

.booking-step.is-active .booking-step__num {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-ink);
}

.booking-step.is-active .booking-step__label {
  color: var(--ink);
  font-weight: var(--weight-semibold);
}

.booking-main {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--space-5) calc(120px + env(safe-area-inset-bottom));
}

.booking-main--state {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.booking-main--confirm {
  padding-top: var(--space-5);
  padding-bottom: var(--space-6);
}

.booking-step-section {
  padding-top: var(--space-4);
  scroll-margin-top: 88px;
}

.booking-back {
  margin-bottom: var(--space-3);
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}

.booking-step-head {
  margin-bottom: var(--space-5);
}

.booking-eyebrow {
  margin-bottom: var(--space-1);
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.booking-step-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 6vw, var(--text-2xl));
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  outline: none;
}

.booking-step-text {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.booking-groups {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.booking-group__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
}

.booking-group__dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.booking-services {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.service-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  width: 100%;
  min-height: 64px;
  padding: var(--space-3) var(--space-4);
  border: var(--line-thin) solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-out),
    opacity var(--dur-fast) linear;
}

.service-option:hover {
  border-color: var(--muted);
}

.service-option:has(input:focus-visible) {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
}

.service-option input:focus-visible + .service-option__check {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
}

.service-option.is-selected {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.service-option__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border: 2px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: transparent;
}

.service-option.is-selected .service-option__check {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-ink);
}

.service-option__check .ph {
  opacity: 0;
  transform: scale(0.6);
  transition:
    transform var(--dur-fast) var(--ease-out),
    opacity var(--dur-fast) linear;
}

.service-option.is-selected .service-option__check .ph {
  opacity: 1;
  transform: none;
}

.service-option__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.service-option__name {
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
}

.service-option__desc {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.4;
}

.service-option__meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  line-height: var(--leading-snug);
}

.booking-staff {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.staff-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 64px;
  padding: var(--space-3) var(--space-4);
  border: var(--line-thin) solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  transition:
    transform var(--dur-fast) var(--ease-out),
    opacity var(--dur-fast) linear;
}

.staff-option:hover {
  border-color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.staff-option.is-selected {
  border-color: var(--brand);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.staff-option__avatar {
  font-size: var(--text-md);
}

.staff-option__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.staff-option__name {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
}

.staff-option__role {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.4;
}

.staff-option__check {
  flex: 0 0 auto;
  color: var(--brand);
}

.booking-time {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.date-strip {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding: var(--space-1) 2px var(--space-3);
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.date-chip {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 64px;
  min-height: 78px;
  padding: var(--space-2) var(--space-1);
  border: var(--line-thin) solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  scroll-snap-align: start;
  transition:
    transform var(--dur-fast) var(--ease-out),
    opacity var(--dur-fast) linear;
}

.date-chip:hover {
  border-color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.date-chip.is-selected {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-ink);
}

.date-chip.is-empty {
  border-style: dashed;
}

.date-chip.is-empty .date-chip__day {
  color: var(--muted);
}

.date-chip__weekday,
.date-chip__month {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.2;
}

.date-chip__day {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.date-chip.is-selected .date-chip__weekday,
.date-chip.is-selected .date-chip__month {
  color: var(--brand-ink);
}

.date-chip__dot {
  width: 5px;
  height: 5px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--ok);
}

.date-chip.is-selected .date-chip__dot {
  background: var(--brand-ink);
}

.booking-slots {
  min-width: 0;
}

.booking-slots__date {
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
}

.slot-group {
  margin-top: var(--space-3);
}

.slot-group__title {
  margin-bottom: var(--space-2);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: var(--space-2);
}

.slot {
  min-height: var(--tap-min);
  padding: 0 var(--space-2);
  border: var(--line-thin) solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  transition:
    transform var(--dur-fast) var(--ease-out),
    opacity var(--dur-fast) linear;
}

.slot:hover {
  border-color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.slot.is-selected {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-ink);
}

.booking-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: var(--line-thin) solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--ink);
}

.booking-alert--danger {
  border-color: var(--danger);
  background: var(--surface);
}

.booking-alert__icon {
  flex: 0 0 auto;
  color: var(--accent);
}

.booking-alert--danger .booking-alert__icon {
  color: var(--danger);
}

.booking-alert__text {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
}

.booking-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 148px;
  padding: var(--space-5);
  border: var(--line-thin) dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  text-align: center;
}

.booking-empty .ph {
  color: var(--muted);
}

.booking-empty p {
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}

.booking-empty__hint {
  font-size: var(--text-xs);
}

.booking-slots-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 160px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.booking-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: booking-spin 700ms linear infinite;
}

@keyframes booking-spin {
  to {
    transform: rotate(360deg);
  }
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.booking-form .field {
  gap: var(--space-2);
}

.booking-required {
  color: var(--accent);
}

.booking-marketing {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-height: var(--tap-min);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  cursor: pointer;
}

.booking-marketing input {
  flex: 0 0 auto;
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.booking-marketing__text {
  color: var(--ink);
}

.booking-summary {
  margin-top: var(--space-5);
}

.booking-summary__title {
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
}

.booking-summary__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
}

.booking-summary__row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}

.booking-summary__label {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
}

.booking-summary__value {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}

.booking-summary__services {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.booking-summary__service {
  display: block;
}

.booking-summary__pay {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: var(--line-thin) solid var(--line);
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: var(--leading-snug);
}

.booking-summary__pay .ph {
  flex: 0 0 auto;
  color: var(--accent);
}

.booking-blocked {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.booking-blocked__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--danger);
}

.booking-blocked__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
}

.booking-blocked__text {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.booking-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: var(--z-sticky);
  padding: var(--space-2) var(--space-4) calc(var(--space-2) + env(safe-area-inset-bottom));
  border-top: var(--line-thin) solid var(--line);
  background: var(--surface);
  box-shadow: 0 -4px 18px rgba(74, 36, 56, 0.12);
}

.booking-bar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.booking-bar__summary {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.booking-bar__label {
  overflow: hidden;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-bar__total {
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.booking-bar__actions {
  display: flex;
  flex: 0 0 auto;
  gap: var(--space-2);
}

.booking-bar .btn {
  min-width: 120px;
}

.booking-confirm {
  position: relative;
  margin-top: var(--space-4);
  padding: clamp(var(--space-5), 6vw, var(--space-6));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.booking-confirm__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin: 0 auto var(--space-5);
  border-radius: 50%;
  background: var(--status-bevestigd-bg);
  color: var(--ok);
}

.booking-confirm__check {
  width: 64px;
  height: 64px;
  overflow: visible;
}

.booking-confirm__check-circle,
.booking-confirm__check-path {
  stroke-dasharray: 170;
  stroke-dashoffset: 170;
  animation: booking-draw 400ms var(--ease-out) forwards;
}

.booking-confirm__check-path {
  stroke-dasharray: 42;
  stroke-dashoffset: 42;
  animation-delay: 120ms;
}

@keyframes booking-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.booking-confirm__eyebrow {
  margin-bottom: var(--space-1);
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.booking-confirm__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 7vw, 36px);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
}

.booking-confirm__lead {
  max-width: 38ch;
  margin: var(--space-2) auto 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.booking-confirm .booking-summary {
  margin-top: var(--space-5);
  border-color: transparent;
  background: var(--surface-2);
  box-shadow: none;
  text-align: left;
}

.booking-confirm__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.booking-confirm__actions .btn {
  width: 100%;
}

.booking-confirm__reset {
  color: var(--muted);
}

.booking-notfound {
  width: 100%;
  padding: var(--space-6) var(--space-5);
  text-align: center;
}

.booking-notfound__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent);
}

.booking-notfound__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
}

.booking-notfound__text {
  max-width: 36ch;
  margin: var(--space-3) auto var(--space-4);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.booking-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 220px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.booking-noscript {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-5);
}

.booking-noscript h1 {
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
}

@media (min-width: 768px) {
  .booking-topbar__inner,
  .booking-hero,
  .booking-main {
    padding-right: var(--space-6);
    padding-left: var(--space-6);
  }

  .booking-hero {
    padding-top: var(--space-7);
  }

  .booking-steps__list {
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
  }

  .booking-main {
    padding-bottom: calc(140px + env(safe-area-inset-bottom));
  }

  .booking-main--state,
  .booking-main--confirm {
    padding-bottom: var(--space-7);
  }

  .booking-bar {
    padding-right: var(--space-6);
    padding-left: var(--space-6);
  }

  .booking-confirm {
    margin-top: var(--space-7);
    padding: var(--space-7);
  }

  .booking-confirm__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .booking-confirm__actions .btn {
    width: auto;
    flex: 1 1 auto;
  }

  .booking-confirm__reset {
    flex-basis: 100%;
  }

  .booking-summary__row {
    grid-template-columns: 120px minmax(0, 1fr);
  }
}

@media (max-width: 359px) {
  .booking-topbar__inner,
  .booking-hero,
  .booking-main {
    padding-right: var(--space-4);
    padding-left: var(--space-4);
  }

  .booking-bar {
    padding-right: var(--space-3);
    padding-left: var(--space-3);
  }

  .booking-bar .btn {
    min-width: 104px;
  }

  .date-chip {
    width: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-spinner {
    animation: none;
    border-top-color: var(--accent);
  }

  .booking-confirm__check-circle,
  .booking-confirm__check-path {
    animation: none;
    stroke-dashoffset: 0;
  }
}
