@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/CormorantGaramond.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #080907;
  --ink-raised: #0d0f0c;
  --ivory: #eee8da;
  --muted: #aaa498;
  --bronze: #cf9a61;
  --line: rgba(238, 232, 218, 0.16);
  --line-strong: rgba(238, 232, 218, 0.3);
  --danger: #d79b8d;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 78% 16%, rgba(113, 80, 45, 0.14), transparent 34%),
    linear-gradient(135deg, #080907 0%, #0c0e0b 54%, #090a08 100%);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
a {
  font: inherit;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.booking-shell {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
}

.booking-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}

.booking-header__brand {
  justify-self: start;
  font-family: var(--display);
  font-size: 1.35rem;
  text-decoration: none;
}

.booking-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.booking-header__back {
  justify-self: end;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
}

.booking-main {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(460px, 1.22fr);
  gap: clamp(54px, 8vw, 132px);
  align-items: start;
  padding: clamp(54px, 9vh, 112px) 0 72px;
}

.booking-intro {
  position: sticky;
  top: 48px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--bronze);
  font-size: 0.72rem;
  font-weight: 650;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 540px;
  font-size: clamp(3.4rem, 6.2vw, 6.4rem);
  line-height: 0.86;
}

.booking-intro__lead {
  max-width: 510px;
  margin: 30px 0 0;
  color: rgba(238, 232, 218, 0.82);
  font-size: clamp(0.94rem, 1.15vw, 1.05rem);
}

.booking-facts {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 26px;
  margin: 34px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}

.booking-facts div {
  display: grid;
  gap: 3px;
}

.booking-facts dt {
  color: var(--muted);
  font-size: 0.68rem;
}

.booking-facts dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 650;
}

.booking-panel {
  min-height: 430px;
  border-top: 1px solid var(--line-strong);
}

.booking-step {
  padding: 28px 0 0;
  animation: step-in 180ms var(--ease-out) both;
}

.booking-step__header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  margin-bottom: 28px;
}

.booking-step__header h2 {
  font-size: clamp(2.1rem, 3.7vw, 3.4rem);
  line-height: 0.94;
}

.booking-step__header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.slot-groups {
  display: grid;
  gap: 30px;
}

.slot-group {
  display: grid;
  grid-template-columns: minmax(140px, 0.42fr) 1fr;
  gap: 22px;
  align-items: start;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.slot-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.slot-group h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 450;
  line-height: 1;
}

.slot-group h3 span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.66rem;
  font-weight: 550;
}

.slot-group__times {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.slot-button {
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition:
    border-color 150ms var(--ease-out),
    background-color 150ms var(--ease-out),
    color 150ms var(--ease-out);
}

.slot-button:hover {
  border-color: rgba(207, 154, 97, 0.7);
  background: rgba(207, 154, 97, 0.08);
}

.slot-button strong {
  display: block;
  font-size: 0.92rem;
}

.slot-button span {
  color: var(--muted);
  font-size: 0.64rem;
}

.selected-slot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 34px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.selected-slot p {
  margin: 0;
}

.selected-slot strong {
  display: block;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 450;
}

.selected-slot span {
  color: var(--muted);
  font-size: 0.72rem;
}

.text-button {
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--muted);
  font-size: 0.72rem;
  cursor: pointer;
}

.booking-form {
  display: grid;
  gap: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--muted);
  font-size: 0.72rem;
}

.field input {
  width: 100%;
  min-height: 56px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ivory);
  font-size: 1rem;
}

.field input::placeholder {
  color: rgba(170, 164, 152, 0.55);
}

.field small {
  color: var(--muted);
  font-size: 0.66rem;
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 56px;
  margin-top: 8px;
  padding: 14px 24px;
  border: 1px solid var(--ivory);
  border-radius: 0;
  background: var(--ivory);
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
  transition:
    background-color 150ms var(--ease-out),
    color 150ms var(--ease-out);
}

.primary-button:hover {
  background: transparent;
  color: var(--ivory);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.legal-note {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.55;
}

.legal-note a {
  text-underline-offset: 3px;
}

.booking-secondary {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.booking-secondary a {
  color: var(--ivory);
  text-underline-offset: 4px;
}

.empty-state,
.loading-state {
  min-height: 240px;
  display: grid;
  align-content: center;
  justify-items: start;
}

.empty-state h2 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 0.94;
}

.empty-state p,
.loading-state {
  color: var(--muted);
}

.empty-state p {
  max-width: 500px;
}

.empty-state a {
  margin-top: 14px;
  text-underline-offset: 4px;
}

.form-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.76rem;
}

.booking-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
}

.booking-footer nav {
  display: flex;
  gap: 18px;
}

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

.success-main {
  min-height: calc(100dvh - 145px);
  display: grid;
  place-items: center;
  padding: 60px 0;
}

.success-card {
  width: min(760px, 100%);
  text-align: center;
}

.success-card h1 {
  max-width: none;
  font-size: clamp(3.4rem, 8vw, 6.8rem);
}

.success-card__status {
  margin: 28px auto 0;
  color: rgba(238, 232, 218, 0.84);
}

.success-card__time {
  width: min(540px, 100%);
  margin: 34px auto 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.success-card__time strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 450;
}

.success-card__time span {
  color: var(--muted);
  font-size: 0.74rem;
}

.success-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin-top: 34px;
}

.success-actions a {
  text-underline-offset: 4px;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 900px) {
  .booking-main {
    grid-template-columns: 1fr;
    gap: 54px;
    padding-top: 48px;
  }

  .booking-intro {
    position: static;
  }

  .booking-intro__lead {
    max-width: 650px;
  }
}

@media (max-width: 620px) {
  .booking-shell {
    width: min(100% - 32px, 1240px);
  }

  .booking-header {
    grid-template-columns: 1fr auto;
    min-height: 62px;
  }

  .booking-header > p {
    display: none;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 4.5rem);
  }

  .booking-facts {
    grid-template-columns: repeat(2, max-content);
    gap: 18px 28px;
  }

  .booking-step__header {
    display: block;
  }

  .booking-step__header p {
    margin-top: 8px;
  }

  .slot-group {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .selected-slot {
    align-items: flex-end;
  }

  .booking-footer {
    display: grid;
  }

  .booking-footer nav {
    display: grid;
    gap: 8px;
  }
}
