/* BeatBooker Public Styles */

/* ------------------------------------------------------------------ */
/*  Base                                                               */
/* ------------------------------------------------------------------ */
.bb-request-form,
.bb-booking-view {
  max-width: 720px;
  margin: 0 auto;
  font-family: inherit;
  color: #333;
}

/* ------------------------------------------------------------------ */
/*  Form Elements                                                      */
/* ------------------------------------------------------------------ */
.bb-field {
  margin-bottom: 1.2em;
}

.bb-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35em;
  font-size: 0.95em;
}

.bb-req {
  color: #c0392b;
}

.bb-input,
.bb-select,
.bb-textarea {
  width: 100%;
  padding: 0.6em 0.8em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  font-family: inherit;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.bb-input:focus,
.bb-select:focus,
.bb-textarea:focus {
  outline: none;
  border-color: #d4a94c;
  box-shadow: 0 0 0 2px rgba(212, 169, 76, 0.2);
}

.bb-textarea {
  resize: vertical;
}

.bb-row {
  display: flex;
  gap: 1em;
}

.bb-half {
  flex: 1;
}

/* ------------------------------------------------------------------ */
/*  Radio & Checkbox                                                   */
/* ------------------------------------------------------------------ */
.bb-radio-group {
  display: flex;
  gap: 1.5em;
  flex-wrap: wrap;
}

.bb-radio,
.bb-checkbox {
  cursor: pointer;
  font-size: 0.95em;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

/* ------------------------------------------------------------------ */
/*  Buttons                                                            */
/* ------------------------------------------------------------------ */
.bb-btn {
  display: inline-block;
  padding: 0.7em 1.8em;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s, opacity 0.2s;
  font-family: inherit;
}

.bb-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bb-btn-primary {
  background-color: #d4a94c;
  color: #1a1a1a;
}

.bb-btn-primary:hover:not(:disabled) {
  background-color: #c49a3a;
}

.bb-btn-accent {
  background-color: #2c3e50;
  color: #fff;
}

.bb-btn-accent:hover {
  background-color: #1a252f;
  color: #fff;
}

.bb-btn-secondary {
  background-color: #eee;
  color: #333;
}

.bb-btn-secondary:hover {
  background-color: #ddd;
}

.bb-btn-sm {
  padding: 0.4em 1em;
  font-size: 0.9em;
  margin-bottom: 1em;
}

/* ------------------------------------------------------------------ */
/*  Messages                                                           */
/* ------------------------------------------------------------------ */
.bb-success {
  background: #eafaf1;
  border: 1px solid #27ae60;
  border-radius: 8px;
  padding: 1.5em;
  text-align: center;
}

.bb-success h3 {
  color: #27ae60;
  margin-top: 0;
}

.bb-error {
  background: #fdf2f2;
  border: 1px solid #c0392b;
  border-radius: 6px;
  padding: 0.8em 1em;
  color: #c0392b;
  margin-bottom: 1em;
  font-size: 0.95em;
}

.bb-loading {
  text-align: center;
  padding: 2em;
  color: #666;
}

.bb-no-slots {
  padding: 1.5em;
  text-align: center;
  color: #666;
  background: #f9f9f9;
  border-radius: 8px;
  margin: 1em 0;
}

/* ------------------------------------------------------------------ */
/*  Active Events / Direct Booking                                     */
/* ------------------------------------------------------------------ */
.bb-active-events {
  margin-bottom: 1.5em;
}

.bb-direct-hint {
  font-weight: 600;
  margin-bottom: 0.5em;
}

.bb-direct-btn-wrap {
  margin-bottom: 0.5em;
}

.bb-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 1.5em 0;
}

.bb-or-text {
  color: #666;
  font-size: 0.95em;
}

/* ------------------------------------------------------------------ */
/*  Booking View                                                       */
/* ------------------------------------------------------------------ */
.bb-event-title {
  margin-bottom: 0.2em;
}

.bb-event-dates {
  color: #666;
  margin-bottom: 1.5em;
}

.bb-section {
  margin-bottom: 2em;
}

.bb-section-title {
  margin-bottom: 1em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid #d4a94c;
}

/* Legacy alias */
.bb-step {
  margin-bottom: 2em;
}

.bb-step-title {
  margin-bottom: 1em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid #d4a94c;
}

/* ------------------------------------------------------------------ */
/*  Instructor Cards                                                   */
/* ------------------------------------------------------------------ */
.bb-instructor-cards {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  margin-bottom: 1.5em;
}

.bb-card {
  flex: 1;
  min-width: 150px;
  padding: 1.2em 1em;
  border: 2px solid #ddd;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  font-size: 1em;
}

.bb-card:hover {
  border-color: #d4a94c;
}

.bb-card.active {
  border-color: #d4a94c;
  box-shadow: 0 0 0 3px rgba(212, 169, 76, 0.25);
  background: #fdf8ef;
}

/* ------------------------------------------------------------------ */
/*  Time Slots Grid                                                    */
/* ------------------------------------------------------------------ */
.bb-date-group {
  margin-bottom: 1.5em;
}

.bb-date-heading {
  margin-bottom: 0.6em;
  color: #555;
}

.bb-slots-grid {
  display: flex;
  gap: 0.6em;
  flex-wrap: wrap;
}

.bb-slot {
  padding: 0.6em 1.2em;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 0.9em;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.bb-slot:hover:not(:disabled) {
  border-color: #d4a94c;
}

.bb-slot.selected {
  border-color: #d4a94c;
  background: #fdf8ef;
  font-weight: 600;
}

.bb-slot.booked {
  background: #f5f5f5;
  color: #aaa;
  text-decoration: line-through;
  cursor: not-allowed;
  border-color: #eee;
}

/* ------------------------------------------------------------------ */
/*  Summary                                                            */
/* ------------------------------------------------------------------ */
.bb-selected-summary {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 1em 1.2em;
  margin-bottom: 1.5em;
}

.bb-selected-summary p {
  margin: 0.3em 0;
}

/* ------------------------------------------------------------------ */
/*  Responsive                                                         */
/* ------------------------------------------------------------------ */
@media (max-width: 600px) {
  .bb-row {
    flex-direction: column;
    gap: 0;
  }

  .bb-instructor-cards {
    flex-direction: column;
  }

  .bb-slots-grid {
    flex-direction: column;
  }

  .bb-slot {
    text-align: center;
  }
}
