.booking {
  max-width: 720px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PT Sans", sans-serif;
}

.booking fieldset {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
  padding: 28px 0;
}

.booking legend {
  padding: 0 14px 0 0;
  font-family: Georgia, "PT Serif", serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.duration-options,
.slot-times {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.duration-options label,
.slot {
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--card);
  padding: 9px 14px;
  cursor: pointer;
}

.duration-options label:has(input:checked),
.slot.selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.duration-options input {
  accent-color: var(--accent);
}

.booking-note {
  margin: 0 0 22px;
  color: var(--ink-dim);
  font-size: .88rem;
}

.slot-day {
  margin: 0 0 24px;
}

.slot-day h2 {
  margin: 0 0 9px;
  font-size: .9rem;
  text-transform: capitalize;
}

.slot {
  min-width: 72px;
  color: var(--ink);
  font: inherit;
}

.slot:hover {
  border-color: var(--accent);
}

.selected-time {
  color: var(--accent);
  font-weight: 600;
}

.field {
  display: block;
  margin: 20px 0;
}

.field span {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--card);
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
}

.field input:focus,
.field textarea:focus,
.slot:focus-visible,
.booking-button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.booking-button {
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 11px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.booking-button:disabled {
  opacity: .55;
  cursor: wait;
}

.booking-message {
  margin-top: 20px;
}

.booking-message.success,
.booking-message.error {
  border: 1px solid var(--rule);
  background: var(--card);
  padding: 18px;
}

.booking-message.success {
  border-left: 4px solid var(--accent-2);
}

.booking-message.error {
  border-left: 4px solid var(--accent);
}

.booking-message a {
  color: var(--focus);
}

.booking-confirmation h2 {
  margin: 0 0 8px;
  font-family: Georgia, "PT Serif", serif;
  font-size: 1.35rem;
}

.booking-confirmation > p {
  margin: 0;
}

.booking-details {
  margin: 24px 0;
  border-top: 1px solid var(--rule);
}

.booking-detail {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}

.booking-detail dt {
  color: var(--ink-dim);
}

.booking-detail dd {
  margin: 0;
  font-weight: 600;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.booking-action {
  display: inline-block;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: transparent;
  color: var(--accent);
  padding: 10px 15px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.booking-action.primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.booking-action:hover {
  filter: brightness(.92);
}

.booking-reminder {
  margin-top: 18px !important;
  color: var(--ink-dim);
  font-size: .88rem;
}

@media (max-width: 560px) {
  .duration-options {
    display: grid;
  }

  .booking-detail {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
