:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #5f6368;
  --line: #d7dce2;
  --paper: #f5f7f9;
  --accent: #0f766e;
  --accent-ink: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.booking-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 480px);
}

.slot-pane,
.form-pane {
  padding: 40px;
}

.slot-pane {
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.brand {
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 28px;
}

h1,
h2 {
  margin: 0 0 12px;
  letter-spacing: 0;
}

h1 {
  font-size: 36px;
  line-height: 1.1;
}

h2 {
  font-size: 22px;
}

.intro,
.status,
.result {
  color: var(--muted);
}

.booking-picker {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}

.calendar-panel,
.time-panel {
  min-width: 0;
}

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

.calendar-head h2,
.time-panel h2 {
  margin: 0;
  text-align: center;
}

.calendar-nav {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

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

.calendar-weekdays {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}

.calendar-grid {
  margin-top: 8px;
}

.slots {
  display: grid;
  gap: 10px;
}

.slots {
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  margin-top: 12px;
}

.calendar-day,
.slot {
  min-height: 54px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}

.calendar-day {
  position: relative;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 8px;
}

.calendar-day span {
  font-weight: 700;
}

.calendar-day strong {
  position: absolute;
  right: 6px;
  bottom: 5px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e8f3f1;
  color: var(--accent);
  font-size: 12px;
}

.calendar-day.outside-month {
  color: #a0a6ad;
  background: #fafbfc;
}

.calendar-day:disabled {
  color: #b8bec5;
  background: #f7f8f9;
  cursor: default;
}

.calendar-day[aria-pressed="true"] strong {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
}

.calendar-day[aria-pressed="true"],
.slot[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.selected-day {
  margin-top: 8px;
  color: var(--muted);
}

form {
  display: grid;
  gap: 14px;
}

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

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
}

button[type="submit"] {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.result {
  margin-top: 18px;
}

@media (max-width: 820px) {
  .booking-shell {
    grid-template-columns: 1fr;
  }

  .slot-pane,
  .form-pane {
    padding: 24px;
  }

  .slot-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  h1 {
    font-size: 30px;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 5px;
  }

  .calendar-day {
    min-height: 46px;
    padding: 4px;
  }

  .calendar-day strong {
    right: 3px;
    bottom: 3px;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
  }
}
