/* Richland Studios Booking & Inquiry Modals */
body.booking-modal-open { overflow: hidden; }

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.booking-modal[hidden] { display: none; }

.booking-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 15, 0.82);
  backdrop-filter: blur(8px);
}

.booking-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: #17181c;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.booking-modal-dialog-sm { max-width: 540px; }

.booking-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: #121318;
  color: #ffffff;
  border-bottom: 3px solid #eb7a3a;
  flex-shrink: 0;
}
.booking-modal-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffad78;
  margin-bottom: 4px;
}
.booking-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.booking-modal-close {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.booking-modal-close:hover { background: rgba(255, 255, 255, 0.18); }

.booking-modal-body {
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.booking-service-select-wrap { margin-bottom: 20px; }
.booking-service-select-wrap label,
.booking-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5c554e;
  margin-bottom: 6px;
}
.booking-service-select-wrap select,
.booking-field input,
.booking-field select,
.booking-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d8d0c7;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: #17181c;
  background: #ffffff;
}
.booking-service-select-wrap select:focus,
.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus {
  outline: 2px solid #eb7a3a;
  outline-offset: 1px;
  border-color: #eb7a3a;
}
.booking-service-summary {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #6b635b;
}

.booking-calendar-block {
  border: 1px solid #e6dfd7;
  border-radius: 14px;
  padding: 16px;
  background: #faf8f5;
}
.booking-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.booking-calendar-head strong { font-size: 16px; }
.booking-cal-nav {
  background: #ffffff;
  border: 1px solid #d8d0c7;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  color: #17181c;
}
.booking-cal-nav:hover:not(:disabled) { border-color: #eb7a3a; color: #c95b1c; }
.booking-cal-nav:disabled { opacity: 0.35; cursor: not-allowed; }

.booking-cal-weekdays,
.booking-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.booking-cal-weekdays span {
  font-size: 11px;
  font-weight: 700;
  color: #8a8178;
  text-transform: uppercase;
  padding-bottom: 6px;
}
.booking-cal-day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: #17181c;
  cursor: pointer;
  position: relative;
}
.booking-cal-day.has-slots { background: #ffffff; border-color: #e0d8cf; }
.booking-cal-day.has-slots::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #eb7a3a;
}
.booking-cal-day.has-slots:hover { border-color: #eb7a3a; background: #fff5ee; }
.booking-cal-day.is-selected {
  background: #eb7a3a !important;
  color: #ffffff;
  border-color: #eb7a3a;
}
.booking-cal-day.is-selected::after { background: #ffffff; }
.booking-cal-day:disabled { color: #c4bcb3; cursor: default; background: transparent; }
.booking-cal-day.is-empty { visibility: hidden; }
.booking-cal-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: #7a7269;
  text-align: center;
}

.booking-slots-block { margin-top: 20px; }
.booking-slots-block h4 { margin: 0 0 10px; font-size: 15px; }
.booking-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.booking-slot-btn {
  padding: 10px 8px;
  border: 1px solid #d8d0c7;
  border-radius: 10px;
  background: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  color: #17181c;
  cursor: pointer;
  text-align: center;
}
.booking-slot-btn:hover { border-color: #eb7a3a; background: #fff8f2; }
.booking-slot-btn.is-selected {
  background: #17181c;
  color: #ffffff;
  border-color: #17181c;
}

.booking-details-form { margin-top: 22px; border-top: 1px solid #ece5dd; padding-top: 20px; }
.booking-selected-summary {
  background: #fff5ee;
  border-left: 3px solid #eb7a3a;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  color: #2b2623;
}
.booking-location-toggle {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: #faf8f5;
  border-radius: 10px;
  border: 1px solid #e6dfd7;
}
.booking-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}
.booking-radio input { width: auto; margin: 0; }

.booking-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.booking-field-full { grid-column: 1 / -1; }
.booking-field label span { text-transform: none; font-weight: 400; color: #8a8178; letter-spacing: 0; }

.booking-hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
}

.booking-payment-note {
  margin: 16px 0;
  padding: 12px 14px;
  background: #f4f5f7;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: #3c3f45;
}
.booking-error {
  margin: 12px 0;
  padding: 10px 14px;
  background: #fff0ed;
  border: 1px solid #f5c6bc;
  color: #a33222;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
}
.booking-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
  cursor: pointer;
  border: none;
  font-size: 15px;
}
.booking-submit-btn:disabled { opacity: 0.6; cursor: wait; }
.booking-privacy-note {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: #8a8178;
  text-align: center;
}

.booking-success-step { text-align: center; padding: 16px 4px; }
.booking-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e8f6ee;
  color: #1f7a4c;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.booking-success-step h4 { margin: 0 0 10px; font-size: 22px; }
.booking-success-step p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: #4a4540; }
.booking-success-details {
  background: #faf8f5;
  border: 1px solid #e6dfd7;
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: left;
}

@media (max-width: 560px) {
  .booking-modal { padding: 12px 8px; }
  .booking-modal-dialog { max-height: calc(100dvh - 24px); border-radius: 16px; }
  .booking-modal-header { padding: 16px 18px; }
  .booking-modal-header h3 { font-size: 18px; }
  .booking-modal-body { padding: 18px; }
  .booking-form-grid { grid-template-columns: 1fr; }
  .booking-slots-grid { grid-template-columns: 1fr 1fr; }
}
