@font-face {
  font-family: "Shadowland Serif TC";
  src: url("./assets/fonts/NotoSerifTC-wght.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: "Shadowland Cormorant";
  src: url("./assets/fonts/CormorantGaramond-wght.ttf") format("truetype");
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --ink: #f3eee6;
  --soft-ink: rgba(243, 238, 230, 0.68);
  --mist: rgba(243, 238, 230, 0.08);
  --line: rgba(243, 238, 230, 0.16);
  --paper: #3d4042;
  --panel: rgba(50, 53, 55, 0.72);
  --deep: #f3eee6;
  --blue-gray: rgba(243, 238, 230, 0.62);
  --white-veiled: rgba(243, 238, 230, 0.055);
  --button-ink: #333638;
  --radius: 8px;
  --serif-zh: "Shadowland Serif TC", "Noto Serif TC", "Source Han Serif TC", "PingFang TC", serif;
  --brand-serif-zh: "Shadowland Serif TC", "Noto Serif TC", "Source Han Serif TC", serif;
  --serif-en: "Shadowland Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 0%, rgba(243, 238, 230, 0.07), transparent 28rem),
    linear-gradient(180deg, #414446 0%, #3a3d3f 55%, #343739 100%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button, a, input { font: inherit; }

.booking-shell {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 64px 28px 82px;
  overflow-x: hidden;
}

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.booking-hero {
  display: grid;
  justify-items: center;
  gap: 54px;
  padding: 0 0 58px;
  text-align: center;
}

.brand-lockup {
  display: inline-grid;
  width: fit-content;
  justify-items: center;
  gap: 9px;
  margin: 0;
}

.brand-title-zh {
  font-family: var(--brand-serif-zh);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 360;
  letter-spacing: 0.2em;
  line-height: 1;
}

.brand-title-en {
  color: rgba(243, 238, 230, 0.72);
  font-family: var(--serif-en);
  font-size: clamp(13px, 1.7vw, 18px);
  font-weight: 500;
  letter-spacing: 0.42em;
  line-height: 1;
  text-transform: uppercase;
}

.booking-home-link {
  justify-self: center;
  margin-top: 12px;
  border-bottom: 1px solid rgba(243, 238, 230, 0.32);
  color: rgba(243, 238, 230, 0.72);
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease;
}

.booking-home-link:hover {
  border-color: var(--paper);
  color: #fffaf1;
}

.hero-copy { max-width: 720px; }

.eyebrow {
  margin: 0;
  color: var(--blue-gray);
  font-family: var(--serif-en);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  font-family: var(--serif-zh);
  font-weight: 340;
  letter-spacing: 0.015em;
}

h1 {
  max-width: 100%;
  font-size: clamp(38px, 5.45vw, 58px);
  line-height: 1.22;
  white-space: nowrap;
}

h2 {
  font-size: 32px;
  line-height: 1.35;
  font-weight: 340;
}

.hero-en {
  margin: 10px 0 0;
  color: rgba(243, 238, 230, 0.78);
  font-family: var(--serif-en);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: 0.32em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-rule {
  display: none;
  width: min(370px, 70vw);
  height: 1px;
  margin: 42px auto 0;
  background: rgba(243, 238, 230, 0.45);
}

.booking-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(243, 238, 230, 0.12);
}

.booking-overview.compact {
  background: rgba(243, 238, 230, 0.08);
}

.booking-overview div {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 5px;
  background: rgba(243, 238, 230, 0.045);
  padding: 16px;
}

.booking-overview span,
.bank-box span,
.slot-card span {
  color: rgba(243, 238, 230, 0.72);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.booking-overview strong {
  font-family: var(--serif-zh);
  font-size: 21px;
  font-weight: 340;
  line-height: 1.2;
}

.booking-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
}

.booking-entry {
  display: grid;
  gap: 28px;
}

.entry-head {
  display: grid;
  gap: 10px;
  text-align: center;
}

.service-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-choice-card {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 470px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  background: rgba(243, 238, 230, 0.035);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.service-choice-card:hover,
.service-choice-card:focus-visible {
  border-color: rgba(243, 238, 230, 0.42);
  background: rgba(243, 238, 230, 0.065);
  transform: translateY(-2px);
  outline: 0;
}

.service-choice-card span {
  color: var(--blue-gray);
  font-family: var(--serif-en);
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-choice-card strong {
  font-family: var(--serif-zh);
  font-size: clamp(28px, 3.7vw, 38px);
  font-weight: 340;
  line-height: 1.2;
}

.service-choice-card p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 16px;
  line-height: 1.85;
}

.service-choice-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-top: 2px;
}

.service-choice-card div {
  display: grid;
  gap: 3px;
}

.service-choice-card dt {
  color: rgba(243, 238, 230, 0.58);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.service-choice-card dd {
  margin: 0;
  color: rgba(243, 238, 230, 0.88);
  font-size: 15px;
  line-height: 1.65;
}

.service-choice-card em {
  align-self: end;
  display: inline-flex;
  justify-content: center;
  min-height: 48px;
  margin-top: 6px;
  padding: 12px 18px;
  border: 1px solid rgba(243, 238, 230, 0.28);
  border-radius: var(--radius);
  color: var(--button-ink);
  background: var(--ink);
  font-style: normal;
  font-weight: 700;
}

.service-choice-card.primary-choice {
  background: rgba(243, 238, 230, 0.06);
}

.booking-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  padding: 34px;
  backdrop-filter: none;
  box-shadow: none;
}

.section-head {
  display: flex;
  justify-content: flex-start;
  gap: 44px;
  align-items: baseline;
  margin-bottom: 30px;
}

.section-head > div,
.payment-panel {
  display: grid;
  gap: 16px;
}

.slot-list {
  display: grid;
  gap: 14px;
}

.calendar-wrap {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.calendar-head {
  display: grid;
  grid-template-columns: 42px 1fr 42px auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.calendar-head strong {
  color: var(--ink);
  font-family: var(--serif-zh);
  font-size: 24px;
  font-weight: 340;
  text-align: center;
}

.calendar-nav {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.calendar-today {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
}

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

.calendar-weekdays {
  margin-bottom: 8px;
}

.calendar-weekdays span {
  color: rgba(243, 238, 230, 0.76);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.calendar-day {
  position: relative;
  min-height: 56px;
  border: 1px solid rgba(243, 238, 230, 0.16);
  border-radius: 0;
  background: rgba(243, 238, 230, 0.055);
  color: rgba(243, 238, 230, 0.52);
  font-family: var(--serif-en);
  font-size: 21px;
  cursor: default;
}

.calendar-day.has-slots {
  border-color: rgba(243, 238, 230, 0.58);
  background: rgba(243, 238, 230, 0.1);
  color: var(--ink);
  cursor: pointer;
}

.calendar-day.has-slots::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
}

.calendar-day.selected {
  background: var(--deep);
  color: var(--button-ink);
}

.calendar-day.is-today {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 2px rgba(243, 238, 230, 0.2);
}

.calendar-day.blank {
  border-color: transparent;
  background: transparent;
}

.time-panel {
  margin-top: 26px;
}

.selected-date-label {
  margin: 0 0 8px;
  color: rgba(243, 238, 230, 0.78);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.slot-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 180px);
  gap: 22px;
  align-items: center;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 22px 0;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.slot-card:hover,
.slot-card.selected {
  border-color: rgba(243, 238, 230, 0.42);
  background: transparent;
}

.slot-card strong {
  display: block;
  margin-top: 3px;
  font-family: var(--serif-zh);
  font-size: 30px;
  font-weight: 320;
  line-height: 1.1;
}

.slot-card p {
  margin: 8px 0 0;
  color: var(--soft-ink);
}

.slot-card .slot-location {
  margin-top: 8px;
  color: rgba(243, 238, 230, 0.82);
  font-size: 15px;
  line-height: 1.65;
}

.slot-card button,
.line-button {
  min-height: 44px;
  border: 1px solid rgba(243, 238, 230, 0.86);
  border-radius: 0;
  background: var(--deep);
  color: var(--button-ink);
  padding: 0 16px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.payment-panel.is-disabled {
  opacity: 0.58;
}

.selected-slot-summary {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif-zh);
  font-size: 20px;
  font-weight: 330;
  line-height: 1.7;
}

.notice-box {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.notice-box h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.notice-box ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: rgba(243, 238, 230, 0.82);
  font-size: 16px;
  line-height: 1.75;
}

.confirm-form {
  display: grid;
  gap: 12px;
}

.confirm-form label {
  display: grid;
  gap: 6px;
  color: var(--blue-gray);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.confirm-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(243, 238, 230, 0.08);
  color: var(--ink);
  padding: 13px 12px;
  outline: none;
}

.confirm-form input:focus {
  border-color: rgba(243, 238, 230, 0.62);
  background: rgba(243, 238, 230, 0.12);
}

.confirm-form input::placeholder {
  color: rgba(243, 238, 230, 0.38);
}

.slot-card button:hover,
.line-button:hover { background: #fffaf1; }

.slot-card button:disabled {
  cursor: not-allowed;
  opacity: 0.82;
}

.slot-card.unavailable {
  opacity: 0.58;
}

.slot-hold-status {
  margin-top: 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}

.slot-card.muted {
  display: block;
  color: var(--soft-ink);
  font-weight: 700;
}

.steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding-left: 22px;
  color: var(--soft-ink);
  font-family: var(--serif-zh);
  font-size: 22px;
  font-weight: 330;
  line-height: 1.8;
}

.bank-box {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(243, 238, 230, 0.1);
}

.bank-box div {
  display: grid;
  gap: 4px;
  background: var(--white-veiled);
  padding: 14px;
}

.bank-box strong {
  font-family: var(--serif-zh);
  font-size: 20px;
  font-weight: 330;
  word-break: break-word;
}

.confirm-note {
  margin: 0;
  color: rgba(243, 238, 230, 0.86);
  font-size: 15px;
  line-height: 1.85;
}

.line-button {
  display: grid;
  place-items: center;
}

.line-button.disabled {
  border-color: var(--line);
  background: var(--mist);
  color: var(--soft-ink);
  cursor: not-allowed;
}

.review-success-dialog {
  width: min(560px, calc(100vw - 32px));
  border: 1px solid rgba(51, 54, 56, 0.18);
  background: #f3eee6;
  color: #333638;
  padding: 0;
}

.review-success-dialog::backdrop {
  background: rgba(16, 18, 20, 0.72);
}

.review-success-card {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.review-success-card h2 {
  margin: 0;
  color: #333638;
  font-family: var(--serif-zh);
  font-size: 28px;
  font-weight: 330;
}

.review-success-card .eyebrow {
  color: rgba(51, 54, 56, 0.58);
}

.review-success-card ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 22px;
  color: rgba(51, 54, 56, 0.78);
  font-size: 16px;
  line-height: 1.75;
}

.review-success-card .line-button {
  border-color: rgba(51, 54, 56, 0.18);
  background: #333638;
  color: #f3eee6;
}

.review-success-card .line-button:hover {
  background: #202325;
}

.review-closed-panel {
  display: grid;
  gap: 14px;
  text-align: center;
}

.review-closed-panel[hidden] {
  display: none;
}

.hidden {
  display: none !important;
}

.review-closed-panel p:not(.eyebrow) {
  margin: 0;
  color: rgba(243, 238, 230, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.review-complete .booking-content {
  display: none;
}

::selection { background: rgba(126, 138, 147, 0.22); }

@media (max-width: 860px) {
  body { background: linear-gradient(180deg, #414446, #343739), var(--paper); }

  .booking-overview,
  .booking-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .booking-shell {
    width: 100%;
    padding: 28px 14px 42px;
  }

  .booking-hero {
    gap: 38px;
    padding-bottom: 36px;
  }

  .booking-home-link {
    justify-self: center;
  }

  .brand-title-zh {
    font-size: 30px;
    letter-spacing: 0.16em;
  }

  .brand-title-en {
    font-size: 13px;
    letter-spacing: 0.28em;
  }

  h1 {
    font-size: clamp(24px, 6.8vw, 30px);
    letter-spacing: 0;
    line-height: 1.28;
    white-space: normal;
  }

  h2 { font-size: 28px; }

  .hero-en {
    font-size: 16px;
    letter-spacing: 0.22em;
  }

  .slot-card,
  .booking-overview {
    grid-template-columns: 1fr;
  }

  .calendar-day {
    min-height: 50px;
    font-size: 18px;
  }

  .booking-overview {
    margin-bottom: 0;
  }

  .booking-overview div {
    min-height: auto;
    padding: 17px;
  }

  .booking-overview strong {
    font-size: 20px;
  }

  .booking-content {
    gap: 24px;
  }

  .service-choice-grid {
    grid-template-columns: 1fr;
  }

  .service-choice-card {
    min-height: auto;
    padding: 24px 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .service-choice-card:hover,
  .service-choice-card:focus-visible {
    transform: none;
  }

  .service-choice-card strong {
    font-size: clamp(30px, 10vw, 42px);
  }

  .booking-panel {
    padding: 22px 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .section-head {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
  }

  .eyebrow {
    font-size: 16px;
    letter-spacing: 0.16em;
  }

  .slot-card {
    gap: 14px;
    padding: 20px 0 24px;
  }

  .slot-card strong {
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1.15;
    word-break: keep-all;
  }

  .slot-card button,
  .line-button {
    min-height: 48px;
    width: 100%;
  }

  .steps {
    padding-left: 0;
    list-style-position: inside;
    font-size: 20px;
    line-height: 1.75;
  }

  .bank-box strong {
    font-size: 22px;
  }

  .confirm-note {
    font-size: 15px;
    line-height: 1.85;
    word-break: break-word;
  }
}
