@font-face {
  font-family: 'AntiqueLegacy';
  src: url('../fonts/AntiqueLegacy-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'FragmentMono';
  src: url('../fonts/FragmentMono-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --canvas: #f9f9f9;
  --ink: #111;
  --line: #d7d7d7;
  --accent: #bfff04;
  --gutter: clamp(20px, 4vw, 56px);
}

* {
  box-sizing: border-box;
}

html {
  background: #f9f9f9;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #f9f9f9;
  color: var(--ink);
  font-family: 'AntiqueLegacy', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

.booking-main {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.booking-panel {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, .56);
}

.booking-view {
  width: 100%;
}

.booking-view--schedule {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.15fr) minmax(0, .9fr);
}

.booking-view--project {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.6fr);
}

.booking-view[hidden] {
  display: none;
}

.booking-details,
.booking-calendar,
.booking-times {
  min-width: 0;
  padding: clamp(24px, 3vw, 44px);
}

.booking-calendar,
.booking-times {
  border-left: 1px solid var(--line);
}

.booking-kicker,
.booking-details__eyebrow,
.booking-details li,
.booking-weekdays,
.booking-status,
.booking-project-form-wrap form header p,
.booking-confirmation > p:first-child {
  font-family: 'FragmentMono', monospace;
}

.booking-main {
  padding-top: clamp(128px, 11vw, 168px);
  padding-bottom: clamp(44px, 6vw, 88px);
}

.booking-intro {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 64px);
  text-align: center;
  animation: booking-intro-enter 820ms cubic-bezier(.16, 1, .3, 1) both;
}

.booking-kicker,
.booking-details__eyebrow,
.booking-project-form-wrap form header p,
.booking-confirmation > p:first-child {
  margin: 0;
  color: #6e6e6e;
  font-size: 12px;
  letter-spacing: .04em;
}

.booking-intro h1 {
  margin: 10px 0 16px;
  font-size: clamp(48px, 6vw, 86px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.booking-intro > p:last-child {
  max-width: 590px;
  margin: 0 auto;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.18;
  text-wrap: balance;
}

.booking-panel {
  box-shadow: 0 34px 90px rgba(20, 20, 20, .06);
  animation: booking-panel-enter 900ms cubic-bezier(.16, 1, .3, 1) 120ms both;
}

.booking-details {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 590px;
  background: rgba(255, 255, 255, .5);
}

.booking-details h2,
.booking-calendar h2,
.booking-times h2,
.booking-project-summary h2,
.booking-project-form-wrap h2 {
  margin: 0;
  font-weight: 400;
}

.booking-details h2 {
  margin-top: 34px;
  font-size: clamp(38px, 3.1vw, 54px);
  line-height: .95;
  letter-spacing: -.035em;
}

.booking-details > p:not(.booking-details__eyebrow) {
  max-width: 330px;
  margin: 22px 0 0;
  font-size: 20px;
  line-height: 1.25;
}

.booking-details ul {
  display: grid;
  gap: 14px;
  margin: 42px 0 32px;
  padding: 0;
  list-style: none;
}

.booking-details li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
}

.booking-details li::before {
  content: '';
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.booking-calendar__toolbar,
.booking-times__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
}

.booking-calendar__toolbar h2,
.booking-times__toolbar h2 {
  font-size: clamp(24px, 2vw, 31px);
  letter-spacing: -.025em;
}

.booking-day,
.booking-slot,
[data-time-format],
.booking-calendar__toolbar button,
.booking-step-back,
.booking-project-form-wrap button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    filter 240ms ease,
    opacity 240ms ease,
    box-shadow 240ms ease;
}

.booking-calendar__toolbar button,
[data-time-format] {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
}

.booking-calendar__toolbar button:hover,
.booking-step-back:hover,
.booking-slot:hover:not([aria-pressed="true"]),
.booking-day:hover:not(:disabled, [aria-pressed="true"]) {
  border-color: #aaa;
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(17, 17, 17, .06);
}

.booking-weekdays,
.booking-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.booking-weekdays {
  margin: 34px 0 12px;
  color: #777;
  font-size: 11px;
  text-align: center;
}

.booking-weekdays span {
  display: grid;
  place-items: center;
  min-height: 24px;
}

.booking-day {
  aspect-ratio: 1;
  min-width: 44px;
  padding: 0;
  border-color: transparent;
  border-radius: 14px;
  background: transparent;
}

.booking-day.is-outside {
  visibility: hidden;
}

.booking-day.is-today:not([aria-pressed="true"]) {
  border-color: #aaa;
}

.booking-day:disabled {
  opacity: .28;
  cursor: not-allowed;
}

.booking-day[aria-pressed="true"],
.booking-slot[aria-pressed="true"],
[data-time-format][aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.booking-times__toolbar > div {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
}

[data-time-format] {
  min-height: 36px;
  min-width: 50px;
  border-color: transparent;
  background: transparent;
  font-size: 13px;
}

.booking-slots {
  display: grid;
  gap: 10px;
  max-height: 445px;
  margin-top: 30px;
  padding-right: 5px;
  overflow-y: auto;
  scrollbar-color: #bbb transparent;
  scrollbar-width: thin;
}

.booking-slot {
  min-height: 52px;
  border-radius: 999px;
  font-size: 17px;
}

.booking-status {
  min-height: 18px;
  margin: 18px 0 0;
  color: #777;
  font-size: 12px;
}

.booking-day:focus-visible,
.booking-slot:focus-visible,
[data-time-format]:focus-visible,
.booking-calendar__toolbar button:focus-visible,
.booking-step-back:focus-visible,
.booking-project-form-wrap :is(input, select, textarea, button):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.booking-project-summary,
.booking-project-form-wrap {
  min-width: 0;
  padding: clamp(24px, 3vw, 44px);
}

.booking-project-summary {
  background: rgba(255, 255, 255, .5);
}

.booking-project-form-wrap {
  border-left: 1px solid var(--line);
}

.booking-step-back {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  margin-bottom: 34px;
  padding: 0 16px;
  border-radius: 999px;
}

.booking-project-summary h2 {
  margin-top: 24px;
  font-size: clamp(38px, 3.1vw, 54px);
  line-height: .95;
  letter-spacing: -.035em;
}

.booking-project-summary > p:not(.booking-details__eyebrow) {
  max-width: 330px;
  margin: 20px 0 0;
  font-size: 19px;
  line-height: 1.25;
}

.booking-project-summary dl {
  display: grid;
  gap: 16px;
  margin: 38px 0 0;
}

.booking-project-summary dl div {
  display: grid;
  gap: 4px;
}

.booking-project-summary dt {
  color: #777;
  font: 11px/1.2 'FragmentMono', monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.booking-project-summary dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.booking-project-form-wrap form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.booking-project-form-wrap form header,
.booking-project-form-wrap label[for="booking-details"],
.booking-project-form-wrap form > button {
  grid-column: 1 / -1;
}

.booking-project-form-wrap form header {
  margin-bottom: 8px;
}

.booking-project-form-wrap h2 {
  margin-top: 10px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: .92;
  letter-spacing: -.04em;
}

.booking-panel + .site-footer {
  width: 100vw;
  max-width: none;
  margin-top: clamp(120px, 15vw, 220px);
  margin-inline: calc(50% - 50vw);
}

.booking-project-form-wrap label {
  display: grid;
  gap: 9px;
  font-size: 16px;
}

.booking-project-form-wrap :is(input, select, textarea) {
  width: 100%;
  min-height: 50px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.booking-project-form-wrap :is(input, select, textarea)[aria-invalid="true"] {
  border-color: #b52b1e;
}

.booking-native-select--enhanced {
  position: absolute;
  width: 1px !important;
  height: 1px;
  min-height: 0 !important;
  padding: 0 !important;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}

.booking-select {
  position: relative;
  width: 100%;
}

.booking-select__trigger {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
  font-size: 16px;
  text-align: left;
}

.booking-select__trigger::after {
  content: '';
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin: -4px 3px 0 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms cubic-bezier(.16, 1, .3, 1);
}

.booking-select.is-open .booking-select__trigger {
  border-color: #aaa;
  background: #fff;
  box-shadow: 0 9px 24px rgba(17, 17, 17, .06);
}

.booking-select.is-open .booking-select__trigger::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.booking-select__menu {
  position: absolute;
  z-index: 20;
  inset: calc(100% + 8px) 0 auto;
  display: grid;
  gap: 2px;
  max-height: 240px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(17, 17, 17, .1);
  animation: booking-select-reveal 180ms cubic-bezier(.16, 1, .3, 1) both;
  scrollbar-color: #bbb transparent;
  scrollbar-width: thin;
}

.booking-project-form-wrap .booking-select__option {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-size: 15px;
  text-align: left;
  transform: none;
}

.booking-select__option::after {
  content: '';
  width: 6px;
  height: 11px;
  margin-right: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0;
  transform: rotate(45deg);
}

.booking-select__option:hover,
.booking-select__option:focus-visible,
.booking-select__option[aria-selected="true"] {
  background: #f1f1f1;
  transform: none;
}

.booking-select__option[aria-selected="true"]::after {
  opacity: 1;
}

.booking-native-select--enhanced[aria-invalid="true"]
  + .booking-select .booking-select__trigger,
.booking-select__trigger[aria-invalid="true"] {
  border-color: #b52b1e;
}

.booking-project-form-wrap textarea {
  resize: vertical;
}

.booking-project-form-wrap [data-error-for] {
  min-height: 16px;
  color: #b52b1e;
  font: 12px/1.2 'FragmentMono', monospace;
}

.booking-project-form-wrap form > button {
  min-height: 56px;
  border-color: var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 17px;
}

.booking-project-form-wrap form > button:hover {
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
}

.booking-confirmation {
  padding: clamp(42px, 7vw, 86px);
  border: 1px solid rgba(17, 17, 17, .12);
  border-radius: 28px;
  background: var(--accent);
  text-align: center;
}

.booking-confirmation h2 {
  margin: 14px 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .9;
  letter-spacing: -.045em;
}

.booking-confirmation > p:last-child {
  max-width: 560px;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.25;
}

.booking-view.is-clarifying,
.booking-confirmation {
  animation: booking-clarify 560ms cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes booking-intro-enter {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes booking-panel-enter {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(28px) scale(.985);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes booking-clarify {
  from {
    opacity: 0;
    filter: blur(14px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes booking-select-reveal {
  from {
    opacity: 0;
    filter: blur(5px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@media (max-width: 820px) {
  .booking-main {
    padding-top: 118px;
    padding-bottom: 72px;
  }

  .booking-intro {
    margin-bottom: 34px;
    text-align: left;
  }

  .booking-intro h1 {
    max-width: 350px;
    font-size: clamp(46px, 15vw, 64px);
  }

  .booking-intro > p:last-child {
    margin-left: 0;
    text-wrap: pretty;
  }

  .booking-panel,
  .booking-view--schedule,
  .booking-view--project {
    grid-template-columns: 1fr;
  }

  .booking-panel {
    border-radius: 20px;
  }

  .booking-calendar,
  .booking-times {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .booking-details,
  .booking-calendar,
  .booking-times {
    padding: 28px 20px;
  }

  .booking-details {
    min-height: auto;
  }

  .booking-project-form-wrap {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .booking-details h2 {
    font-size: 44px;
  }

  .booking-details ul {
    margin-bottom: 0;
  }

  .booking-weekdays,
  .booking-days {
    gap: 5px;
  }

  .booking-day {
    min-width: 0;
    border-radius: 11px;
  }

  .booking-slots {
    max-height: none;
  }

  .booking-project-form-wrap form {
    grid-template-columns: 1fr;
  }

  .booking-project-form-wrap form header,
  .booking-project-form-wrap label[for="booking-details"],
  .booking-project-form-wrap form > button {
    grid-column: auto;
  }

  .booking-project-form-wrap h2 {
    font-size: min(10vw, 40px);
  }

  .booking-panel + .site-footer {
    margin-top: 112px;
  }

  .booking-confirmation {
    border-radius: 20px;
  }
}

@media (max-width: 420px) {
  .booking-calendar__toolbar h2,
  .booking-times__toolbar h2 {
    font-size: 24px;
  }

  [data-time-format] {
    min-width: 44px;
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-intro,
  .booking-panel {
    animation-duration: 320ms;
  }

  .booking-view.is-clarifying,
  .booking-confirmation {
    animation-duration: 240ms;
  }

  .booking-select__menu {
    animation-duration: 120ms;
  }

  .booking-day,
  .booking-slot,
  [data-time-format],
  .booking-calendar__toolbar button,
  .booking-step-back,
  .booking-project-form-wrap button {
    transition-duration: 240ms;
  }
}
