.booking-form {
  display: grid;
  gap: 14px;
  padding: clamp(14px, 3vw, 22px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.booking-form :where(fieldset) {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.booking-form :where(legend) {
  margin-block-end: 8px;
  padding: 0;
  font-weight: 700;
}

.field {
  display: grid;
  gap: 6px;
  min-inline-size: 0;
}

label.field > :first-child, .field > label {
  font-size: .88rem;
  font-weight: 700;
}

.booking-form :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea),
:where(input, select, textarea).field {
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: 44px;
  padding: 9px 12px;
  border: 1px solid #a88e9a;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
}

.booking-form :where(textarea) {
  min-block-size: 96px;
  resize: vertical;
}

.booking-form :where(input[type=tel], input[autocomplete=one-time-code]) {
  direction: ltr;
  text-align: start;
}

.booking-form :where([aria-invalid=true]) {
  border-color: #a33850;
  border-width: 2px;
}

.field-note {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.65;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 78px), 1fr));
  gap: 8px;
}

.choice-grid :where(.choice, .slot, button) {
  min-inline-size: 0;
  min-block-size: 44px;
  padding: 7px 8px;
  border: 1px solid #aa959e;
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface);
  overflow-wrap: anywhere;
  cursor: pointer;
}

.choice-grid :where([aria-pressed=true], [aria-selected=true]) {
  border-color: var(--wine);
  background: var(--rose);
  color: var(--wine-dark);
  box-shadow: inset 0 0 0 1px var(--wine);
  font-weight: 700;
}

.feedback {
  padding: 10px 12px;
  border: 1px solid #dbc9ab;
  border-inline-start: 4px solid #936325;
  border-radius: 10px;
  background: #fff5e5;
  color: #65471f;
  overflow-wrap: anywhere;
  font-size: .88rem;
  line-height: 1.7;
}

.feedback.error, .feedback[role=alert] {
  border-color: #b3435b;
  background: #fff0f2;
  color: #7a1f37;
}

.feedback.success {
  border-color: #567251;
  background: #edf5e9;
  color: #365335;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.booking-actions :where(.secondary, .danger) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 44px;
  padding: 8px 14px;
  border: 1px solid var(--wine);
  border-radius: 12px;
  background: var(--surface);
  color: var(--wine-dark);
  text-align: center;
  font-weight: 700;
  cursor: pointer;
}

.booking-actions :where(.danger) {
  border-color: #9a3a51;
  color: #802b40;
}

:where(.booking-form, .booking-actions, .choice-grid) button:disabled {
  cursor: not-allowed;
  opacity: .64;
}

.booking-form > .summary { margin-block: 0; }

.summary-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 0;
  padding-block: 5px;
}

.summary-row + .summary-row { border-block-start: 1px solid var(--line); }

@media (max-width: 460px) {
  .booking-actions > :where(a, button) {
    inline-size: 100%;
  }
}
