.booking-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.booking-modal.is-open {
  display: flex;
}

.booking-modal .booking-modal-dialog {
  background: #f7f3ef;
  border-radius: 10px;
  border: 1px solid var(--primary);
  padding: 24px;
  max-width: 900px;
  width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.booking-modal .booking-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: transparent;
  color: rgba(59, 46, 42, 0.7);
}

.booking-modal .booking-modal-close .icon {
  width: 24px;
  height: 24px;
}

.booking-modal .booking-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.booking-modal .booking-modal-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.booking-modal .booking-modal-subtitle {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 14px;
}

.booking-modal .booking-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 20px;
}

.booking-modal .booking-form-column,
.booking-modal .booking-form-date {
  display: grid;
  gap: 20px;
}

.form-field .form-data {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field .form-time .form-select {
  width: 100%;
  display: block;
}

.form-field .form-time .custom-select {
  width: 100%;
}

.booking-modal .booking-form-footer {
  border-top: 1px solid var(--primary);
  padding-top: 20px;
}

.booking-modal .booking-form-alt {
  text-align: center;
  color: var(--muted-foreground);
  margin: 8px 0;
  font-size: 14px;
}

.booking-modal .booking-form-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.booking-modal .form-label,
.booking-modal .booking-form-caption {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  color: var(--foreground);
}

.booking-modal .form-input,
.booking-modal .form-select,
.booking-modal .form-textarea,
.booking-modal .custom-select-trigger {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 4px 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 300;
  height: 36px;
}

.booking-modal .form-input:focus,
.booking-modal .form-select:focus,
.booking-modal .form-textarea:focus,
.booking-modal .custom-select-trigger:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(195, 162, 122, 0.5);
}

.booking-modal .form-input::placeholder {
  color: var(--muted-foreground);
}

.booking-modal .custom-select-dropdown {
  border: 1px solid rgba(195, 162, 122, 0.5);
  border-radius: 10px;
}

.booking-modal .form-textarea {
  resize: none;
  min-height: 92px;
}

.booking-modal .form-checkbox {
  font-size: 12px;
  color: var(--muted-foreground);
}

.booking-modal .form-checkbox input {
  border-color: rgba(195, 162, 122, 0.7);
  margin: 0;
}

.booking-modal .form-note {
  font-size: 12px;
  color: var(--muted-foreground);
  margin: 8px 0;
}

.booking-modal .button.button-primary {
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.booking-modal .booking-form-links .button {
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border-color: var(--primary);
  color: rgba(59, 46, 42, 0.9);
  background: transparent;
}

.booking-modal .booking-date-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
}

.booking-modal .booking-calendar {
  border: 1px solid transparent;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
}

.booking-modal .booking-calendar-header {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  margin-bottom: 12px;
}

.booking-modal .booking-calendar-month {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: rgba(59, 46, 42, 0.9);
  text-transform: lowercase;
}

.booking-modal .booking-calendar-nav {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(195, 162, 122, 0.4);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(59, 46, 42, 0.7);
}

.booking-modal .booking-calendar-nav:hover {
  border-color: rgba(195, 162, 122, 0.5);
  background: rgba(195, 162, 122, 0.08);
}

.booking-modal .booking-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 12.8px;
  font-weight: 400;
  color: rgba(59, 46, 42, 0.5);
  text-align: center;
  margin-bottom: 12px;
}

.booking-modal .booking-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.booking-modal .booking-calendar-day {
  border: none;
  background: transparent;
  height: 24px;
  border-radius: 6px;
  font-size: 14px;
  color: rgba(59, 46, 42, 0.9);
}

.booking-modal .booking-calendar-day.is-muted {
  color: rgba(59, 46, 42, 0.35);
}

.booking-modal .booking-calendar-day.is-disabled {
  color: rgba(59, 46, 42, 0.35);
  cursor: not-allowed;
  opacity: 0.6;
}

.booking-modal .booking-calendar-day.is-active {
  background: var(--primary);
  color: #fff;
  font-weight: 400;
}

.booking-modal .booking-modal-success {
  text-align: center;
  padding: 40px 0;
  display: none;
}

.booking-modal .booking-modal-success.is-visible {
  display: block;
}

.booking-modal .booking-modal-success h3 {
  font-weight: 400;
}

.booking-modal .booking-modal-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(195, 162, 122, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.booking-modal .booking-modal-success-icon .icon {
  width: 24px;
  height: 24px;
}

@media (max-width: 1090px) {
  .booking-modal .booking-form-grid {
    grid-template-columns: 1fr;
  }
  .booking-modal .booking-form-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .booking-modal .form-checkbox input[type="checkbox"]{
    flex-shrink: 0;
    width: 16px;
    height: 16px;
  }
  .booking-modal .form-checkbox span {
    flex: 1 1 auto;
    min-width: 0;
  }
}