.booking-page {
  min-height: 70vh;
  padding: clamp(2rem, 6vw, 5rem) 1rem;
}

.booking-page #booking-services,
.booking-page #booking-times,
.booking-page #booking-address,
.booking-page #booking-date,
.booking-page [id^="id_"] {
  scroll-margin-top: calc(var(--site-header-height) + 1rem);
}

.booking-shell {
  width: min(100%, 800px);
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 3rem);
  background: var(--surface);
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.booking-heading h1,
.booking-confirmation h1 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1.05;
}

.booking-heading > p:last-child,
.booking-confirmation > p {
  color: var(--muted);
}

.booking-heading > p:last-child a {
  color: var(--text);
  display: inline-block;
  font-weight: 600;
  transition: color 0.2s, transform 0.2s, opacity 0.2s;
}

.booking-heading > p:last-child a:hover,
.booking-heading > p:last-child a:focus-visible {
  color: var(--text);
  transform: translateY(-2px);
  opacity: 0.88;
}

.booking-heading > p:last-child a:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.booking-progress {
  margin: 2rem 0;
  overflow-x: auto;
}

.booking-progress ol {
  display: flex;
  gap: 0.75rem;
  min-width: max-content;
  margin: 0;
  padding: 0 0 0.5rem;
  list-style: none;
}

.booking-progress li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.booking-progress li span {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
}

.booking-progress li[aria-current="step"] {
  color: var(--text);
  font-weight: 700;
}

.booking-progress li[aria-current="step"] span {
  background: var(--button);
  color: var(--inverse);
  border-color: var(--button);
}

.booking-form fieldset {
  min-width: 0;
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
}

.booking-form legend,
.booking-intro h2,
.booking-review h2,
.booking-empty h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.booking-options--vehicle .booking-field-help {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
}

.booking-options--vehicle legend {
  margin-bottom: 0.25rem;
}

.booking-section-label,
.booking-field-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.booking-label-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.booking-label-icon--sparkle,
.booking-label-icon--hand {
  fill: currentColor;
  stroke: none;
}

.booking-label-icon--sparkle {
  width: 1.25rem;
  height: 1.25rem;
}

.booking-label-icon--hand {
  width: 1.45rem;
  height: 1.15rem;
}

.booking-label-icon--calendar {
  transform: translateY(0.1rem);
}

.booking-options > div,
.booking-options > ul {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.booking-options.booking-options--vehicle > div {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.booking-options.booking-options--vehicle > div > label {
  min-height: 3.5rem;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 6px;
  background: var(--surface);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.booking-options.booking-options--vehicle > div > label:hover,
.booking-options.booking-options--vehicle > div > label:has(input:focus-visible) {
  transform: translateY(-2px);
}

.booking-options.booking-options--vehicle > div > label:has(input:checked) {
  background: color-mix(in srgb, var(--button) 10%, var(--surface));
  color: var(--text);
}

.booking-options--vehicle > div > label > input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.booking-options--vehicle > div > label span {
  font-weight: 700;
}

.booking-vehicle-icon {
  width: 3.25rem;
  height: 1.5rem;
  flex: 0 0 auto;
  fill: currentColor;
  color: var(--muted);
  opacity: 0.95;
}

.booking-vehicle-icon--small {
  width: 2.75rem;
}

.booking-vehicle-icon--suv {
  height: 1.7rem;
}

.booking-options label,
.booking-option {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.booking-option span,
.booking-option small {
  display: block;
}

#booking-services .booking-options {
  width: 100%;
}

#booking-services .booking-option {
  position: relative;
  padding-right: 6.5rem;
  border: 0;
  background: transparent;
}

#booking-services .booking-option + .booking-option {
  border-top: 1px solid var(--line);
  border-radius: 0;
}

#booking-services .booking-options--extras {
  opacity: 0.55;
}

#booking-services .booking-options--extras:has(input:not(:disabled)) {
  opacity: 1;
}

.booking-option__price {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}

.booking-option small {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.booking-line-items small {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.booking-duration-icon {
  width: 0.85rem;
  height: 0.85rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.booking-options input,
.booking-check input {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  accent-color: var(--button);
}

.booking-options--vehicle label:has(input:checked) .booking-vehicle-icon {
  color: var(--muted);
  opacity: 0.95;
}

.booking-field {
  margin-bottom: 1.25rem;
}

.booking-field > label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.booking-field > label.booking-field-label {
  display: flex;
}

.booking-date-field > label {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.booking-field input,
.booking-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
}

.booking-date-fallback[hidden],
.booking-calendar[hidden] {
  display: none;
}

.booking-date-fallback p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.booking-calendar {
  --calendar-available-bg: color-mix(in srgb, #1e6fd1 16%, var(--surface));
  --calendar-available-hover: color-mix(in srgb, #1e6fd1 25%, var(--surface));
  width: 100%;
  padding: 0.5rem;
  background: var(--bg);
  border: 0;
}

[data-theme="dark"] .booking-calendar {
  --calendar-available-bg: color-mix(in srgb, #5b9bd5 24%, var(--surface));
  --calendar-available-hover: color-mix(in srgb, #5b9bd5 34%, var(--surface));
}

.booking-calendar__header {
  display: grid;
  width: min(100%, 19rem);
  grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto 0.65rem;
}

.booking-calendar__header h2 {
  margin: 0;
  font-size: clamp(1rem, 4vw, 1.25rem);
  text-align: center;
  text-transform: capitalize;
}

.booking-calendar__nav {
  display: grid;
  width: 2.25rem;
  min-height: 2.25rem;
  place-items: center;
  padding: 0;
  background: transparent;
  color: var(--text);
  border: 0;
  border-radius: 50%;
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
}

.booking-calendar__nav:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.4;
}

.booking-calendar__weekdays,
.booking-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 2.1rem);
  justify-content: center;
  gap: clamp(0.3rem, 1.6vw, 0.65rem);
}

.booking-calendar__weekdays {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.booking-calendar__weekdays span {
  padding: 0.25rem 0;
}

.booking-calendar__days button,
.booking-calendar__spacer {
  width: 2.1rem;
  height: 2.1rem;
}

.booking-calendar__days button {
  display: grid;
  place-items: center;
  padding: 0.2rem;
  background: var(--calendar-available-bg);
  color: var(--text);
  border: 0;
  border-radius: 50%;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.booking-calendar__days button:not(:disabled):hover {
  background: var(--calendar-available-hover);
  transform: translateY(-1px);
}

.booking-calendar__days button.is-selected {
  background: var(--button);
  color: var(--inverse);
}

.booking-calendar__days button.is-past {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
  cursor: default;
  opacity: 0.38;
}

.booking-calendar__days button.is-unavailable {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
  cursor: default;
  opacity: 1;
}

.booking-calendar.is-loading .booking-calendar__days {
  opacity: 0.45;
}

.booking-calendar__status {
  min-height: 1.5rem;
  margin-top: 0.75rem;
  color: var(--muted);
}

.booking-calendar__status p {
  margin: 0;
}

.booking-calendar__status a {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 700;
}

.booking-calendar__status.is-error {
  color: var(--error);
}

.booking-times:focus {
  outline: none;
}

.booking-times:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 5px;
}

.booking-times [data-time-options] > div {
  display: grid;
  gap: 0.75rem;
}

.booking-location__help,
.booking-location__status,
.booking-location__privacy,
.booking-location__fallback {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.booking-location [data-location-prompt] > label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.booking-location__privacy {
  font-size: 0.68rem;
  line-height: 1.45;
  text-align: right;
}

.booking-location__widget {
  margin-top: 0.75rem;
}

.booking-location__widget > gmp-place-autocomplete {
  display: block;
  width: 100%;
  min-height: 46px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  color-scheme: light;
}

[data-theme="dark"] .booking-location__widget > gmp-place-autocomplete {
  color-scheme: dark;
}

.booking-location__widget > gmp-place-autocomplete:focus-within {
  background: color-mix(in srgb, var(--text) 6%, var(--bg));
}

.booking-location__widget > gmp-place-autocomplete::part(input) {
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
}

.booking-location__widget > gmp-place-autocomplete::part(focus-ring) {
  display: none;
}

.booking-location__selected {
  margin-top: 0.75rem;
  padding: 0;
}

.booking-location__selected p {
  margin: 0.35rem 0 0.75rem;
  overflow-wrap: anywhere;
}

.booking-location__selected .button,
.booking-location__fallback a {
  min-height: 44px;
}

.booking-location__house-number {
  margin-top: 0.9rem;
}

.booking-location__house-number > label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.booking-location__house-number > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: stretch;
}

.booking-location__status {
  min-height: 1.5em;
}

.booking-location__status:empty {
  display: none;
}

.booking-location__fallback {
  padding: 0.75rem;
  background: var(--status-bg);
  color: var(--status-text);
  border-left: 4px solid currentColor;
  border-radius: 4px;
}

.booking-location__fallback p {
  margin: 0 0 0.5rem;
}

.booking-location [hidden] {
  display: none !important;
}

.booking-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.booking-form input:focus-visible,
.booking-form textarea:focus-visible,
.booking-form button:focus-visible,
.booking-form a:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.booking-form input:focus-visible,
.booking-form textarea:focus-visible {
  outline: none;
  background: color-mix(in srgb, var(--text) 6%, var(--bg));
}

.booking-status,
.booking-errors {
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--status-bg);
  color: var(--status-text);
  border-left: 4px solid currentColor;
  border-radius: 4px;
}

.booking-status p,
.booking-errors ul {
  margin: 0.4rem 0 0;
}

.booking-errors,
.booking-field-error {
  color: var(--text);
  background: color-mix(in srgb, var(--error) 12%, var(--surface));
}

.booking-errors h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
}

.booking-errors {
  border-left-color: var(--error);
}

.booking-errors ul {
  padding-left: 0;
  color: var(--text);
  font-weight: 600;
  line-height: 1.5;
  list-style-position: inside;
}

.booking-errors a {
  display: inline-block;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s, opacity 0.2s;
}

.booking-errors a:hover,
.booking-errors a:focus-visible {
  color: var(--error);
  transform: translateY(-1px);
  opacity: 0.9;
}

.booking-errors a:focus-visible {
  outline: 3px solid var(--error);
  outline-offset: 3px;
}

.booking-field-error {
  margin: 0.45rem 0 0;
  padding: 0.55rem;
  border-left: 3px solid var(--error);
  border-radius: 3px;
  font-weight: 600;
}

.booking-review dl,
.booking-confirmation dl {
  margin: 1.5rem 0;
}

.booking-review dl > div,
.booking-confirmation dl > div {
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.booking-review dt,
.booking-confirmation dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.booking-review dd,
.booking-confirmation dd,
.booking-review ul,
.booking-confirmation ul {
  margin: 0;
  padding: 0;
  list-style-position: inside;
}

.booking-review h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
}

.booking-quote {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.booking-line-items {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.booking-line-items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.booking-line-items small,
.booking-quote dd small,
.booking-discount-field small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
}

.booking-quote dd small {
  font-size: 0.75rem;
}

.booking-line-item__prices {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  text-align: right;
}

.booking-line-item__prices span {
  color: var(--muted);
  font-size: 0.85rem;
}

.booking-discount-control {
  position: relative;
}

.booking-discount-control input {
  padding-right: 6rem;
}

.booking-discount-apply {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  min-height: 34px;
  padding: 0.35rem 0.55rem;
  transform: translateY(-50%);
  background: transparent;
  color: var(--text);
  border: 0;
  border-radius: 3px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.booking-discount-apply:disabled {
  color: var(--muted);
  cursor: default;
}

.booking-discount-apply:not(:disabled):hover {
  background: color-mix(in srgb, var(--text) 10%, var(--bg));
}

.booking-quote__total {
  font-size: 1.1rem;
  font-weight: 800;
}

.booking-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.booking-label-icon--info {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
}

.booking-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.booking-check--terms {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.booking-consent-title {
  margin: 0.75rem 0 -0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.booking-check a {
  text-decoration: none;
}

.booking-consent-privacy {
  margin: -0.5rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 2rem;
}

.button--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.booking-actions .button--secondary {
  background: color-mix(in srgb, var(--text) 10%, var(--surface));
  border: 0;
}

.booking-actions .button--secondary:hover,
.booking-actions .button--secondary:focus-visible {
  background: color-mix(in srgb, var(--text) 16%, var(--surface));
}

.booking-restart {
  min-height: auto;
  padding: 0.5rem 0;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s, opacity 0.2s;
}

.booking-restart:hover,
.booking-restart:focus-visible {
  color: var(--text);
  transform: translateY(-2px);
  opacity: 0.88;
}

.booking-restart:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.booking-page a:not(.button) {
  display: inline-block;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s, opacity 0.2s;
}

.booking-page a:not(.button):hover {
  color: var(--text);
  transform: translateY(-1px);
  opacity: 1;
}

.booking-page a:not(.button):focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 1px;
}

.booking-page .booking-errors a {
  display: inline;
}

@media (min-width: 600px) {
  .booking-review dl > div,
  .booking-confirmation dl > div {
    grid-template-columns: minmax(9rem, 0.4fr) 1fr;
  }
}

@media (max-width: 420px) {
  .booking-line-items li {
    flex-direction: column;
  }

  .booking-line-item__prices {
    align-items: flex-start;
    text-align: left;
  }

  .booking-location__selected .button,
  .booking-actions .button {
    width: 100%;
  }

  .booking-location__house-number > div {
    grid-template-columns: 1fr;
  }

  .booking-location__house-number .button {
    width: 100%;
  }
}

@media (min-width: 800px) {
  .booking-progress ol {
    justify-content: space-between;
    gap: 0.4rem;
    min-width: 0;
  }

  .booking-progress li {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-page *,
  .booking-page *::before,
  .booking-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
