:root {
  color-scheme: light;
  --ink: #1d2528;
  --muted: #66747a;
  --line: #d7dedf;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-dark: #0b5f59;
  --disabled: #c9d1d3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(29, 37, 40, 0.45), rgba(29, 37, 40, 0.55)),
    url("https://images.unsplash.com/photo-1604014237800-1c9102c219da?auto=format&fit=crop&w=1800&q=80") center / cover fixed;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.booking {
  max-width: 760px;
  min-height: calc(100vh - 96px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.masthead {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

.masthead p:last-child {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.date-bar {
  display: grid;
  grid-template-columns: 1fr 180px 132px;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}

input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(15, 118, 110, 0.15);
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 16px;
}

button:hover {
  background: var(--accent-dark);
}

button:disabled {
  background: var(--disabled);
  cursor: not-allowed;
}

.status {
  min-height: 26px;
  color: var(--muted);
  font-size: 15px;
}

.status.error {
  color: #b42318;
}

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 10px;
  margin: 16px 0 24px;
}

.slot {
  min-height: 52px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.slot.available {
  border-color: rgba(15, 118, 110, 0.45);
}

.slot.selected {
  background: var(--accent);
  color: #fff;
}

.slot.unavailable {
  color: #7a878b;
  background: #eef1f1;
  text-decoration: line-through;
}

.details {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.selected {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 14px 16px;
}

.selected span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 720px) {
  body {
    background-attachment: scroll;
  }

  .shell {
    width: 100%;
    padding: 0;
  }

  .booking {
    min-height: 100vh;
    border-radius: 0;
    border: 0;
  }

  .date-bar {
    grid-template-columns: 1fr;
  }
}
