/* Booking modal. Uses the pilot page's existing type, color, and underline fields. */

#booking-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: min(560px, calc(100vw - 32px));
  max-height: min(88vh, 860px);
  height: fit-content;
  margin: auto;
  padding: 28px 24px 32px;
  display: none;
  flex-direction: column;
  gap: 16px;
  overflow: auto;
  background: #141618;
  color: #f5f6f7;
  border: 1px solid rgba(245, 246, 247, 0.2);
}

#booking-modal[open] {
  display: flex;
}

#booking-modal::backdrop {
  background: rgba(13, 14, 16, 0.72);
}

.booking-modal__bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.booking-modal__title {
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.booking-close {
  color: #f5f6f7;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(245, 246, 247, 0.35);
  padding: 8px 0;
  cursor: pointer;
}

.booking-note {
  color: #939ca2;
}

.booking-day {
  margin: 18px 0 8px;
  color: #c4ccd1;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.booking-times {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-slot {
  color: #f5f6f7;
  background: transparent;
  border: 1px solid rgba(245, 246, 247, 0.35);
  padding: 8px 12px;
  cursor: pointer;
}

.booking-slot[aria-pressed="true"] {
  border-color: #f5f6f7;
  background: #f5f6f7;
  color: #141618;
}

#booking-modal input,
#booking-modal textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(245, 246, 247, 0.35);
  color: #f5f6f7;
  font: inherit;
  padding: 12px 0;
}

#booking-modal textarea {
  min-height: 96px;
}

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

#booking-modal button:focus-visible,
#booking-modal input:focus-visible,
#booking-modal textarea:focus-visible {
  outline: 1px solid #f5f6f7;
  outline-offset: 3px;
}

.booking-selected {
  margin-top: 8px;
}
