/* ========================================
   Personal Lesson Booking
   Inherits base from reserve.css
   ======================================== */

/* Step 2: Menu Cards */
.menu-section {
  margin-bottom: 28px;
}

.menu-card {
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 28px 24px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: inherit;
  color: inherit;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
  width: 100%;
  text-align: left;
}

.menu-card:hover {
  border-color: var(--blue-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.menu-card.selected {
  border-color: var(--blue-accent);
  background: var(--blue-light);
}

.menu-card-title {
  font-size: 1rem;
  font-weight: 700;
}

.menu-card-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
}

.menu-card-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-accent);
}

/* Class Selection */
.class-select {
  margin-top: 20px;
}

.class-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.class-chip {
  padding: 10px 20px;
  border: 2px solid #ddd;
  border-radius: 30px;
  background: var(--white);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.class-chip:hover {
  border-color: var(--blue-accent);
}

.class-chip.selected {
  border-color: var(--blue-accent);
  background: var(--blue-accent);
  color: var(--white);
}

/* Duration Select */
.duration-select {
  margin-top: 20px;
}

.duration-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.duration-option {
  padding: 10px 20px;
  border: 2px solid #ddd;
  border-radius: 30px;
  background: var(--white);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.duration-option:hover {
  border-color: var(--blue-accent);
}

.duration-option.selected {
  border-color: var(--blue-accent);
  background: var(--blue-accent);
  color: var(--white);
}

/* Staff Count for member single */
.staff-count-select {
  margin-top: 20px;
}

.staff-count-options {
  display: flex;
  gap: 16px;
}

.staff-count-card {
  flex: 1;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  font-family: inherit;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.staff-count-card:hover {
  border-color: var(--blue-accent);
}

.staff-count-card.selected {
  border-color: var(--blue-accent);
  background: var(--blue-light);
}

.staff-count-label {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.staff-count-price {
  font-size: 0.82rem;
  color: var(--green-accent);
  font-weight: 600;
}

/* Step 3: Staff + Location */
.staff-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.staff-card {
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  color: inherit;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.staff-card:hover {
  border-color: var(--blue-accent);
  transform: translateY(-2px);
}

.staff-card.selected {
  border-color: var(--blue-accent);
  background: var(--blue-light);
}

.staff-card.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.staff-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.staff-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.location-select {
  margin-top: 28px;
}

.location-options {
  display: flex;
  gap: 16px;
}

.location-card {
  flex: 1;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  font-family: inherit;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.location-card:hover {
  border-color: var(--blue-accent);
}

.location-card.selected {
  border-color: var(--blue-accent);
  background: var(--blue-light);
}

.location-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.location-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.dispatch-input {
  margin-top: 16px;
}

.dispatch-input input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
}

.dispatch-input input:focus {
  outline: none;
  border-color: var(--blue-accent);
}

.dispatch-note {
  margin-top: 12px;
  padding: 12px 16px;
  background: #fff8e1;
  border-radius: 10px;
  border-left: 4px solid #ffc107;
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Step 4: Time Slots */
.time-slots-wrap {
  margin-top: 20px;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.time-slot {
  padding: 10px 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
}

.time-slot:hover:not(.busy) {
  border-color: var(--blue-accent);
  background: var(--blue-light);
}

.time-slot.selected {
  border-color: var(--blue-accent);
  background: var(--blue-accent);
  color: var(--white);
  font-weight: 600;
}

.time-slot.busy {
  background: #f5f5f5;
  color: #ccc;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Selected Slots Chips */
.selected-slots {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.slot-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--green-light);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-accent);
}

.slot-chip-remove {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.1);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.slot-chip-remove:hover {
  background: rgba(0,0,0,0.2);
}

.slots-remaining {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Price Summary */
.price-summary {
  background: var(--green-light);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 24px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 6px 0;
}

.price-row.total {
  border-top: 1px solid var(--green);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-accent);
}

/* Payment method */
.payment-options {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.payment-card {
  flex: 1;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  font-family: inherit;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.payment-card:hover {
  border-color: var(--blue-accent);
}

.payment-card.selected {
  border-color: var(--blue-accent);
  background: var(--blue-light);
}

/* Terms checkbox */
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  background: var(--beige-light);
  border-radius: 10px;
  margin-top: 20px;
}

.terms-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--blue-accent);
  margin-top: 2px;
  flex-shrink: 0;
}

.terms-check label {
  font-size: 0.85rem;
  line-height: 1.6;
  cursor: pointer;
}

.terms-check a {
  color: var(--blue-accent);
  text-decoration: underline;
}

/* Calendar loading */
.cal-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .staff-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .staff-count-options {
    flex-direction: column;
    gap: 12px;
  }

  .location-options {
    flex-direction: column;
    gap: 12px;
  }

  .time-slots-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .payment-options {
    flex-direction: column;
    gap: 12px;
  }

  .class-chips {
    gap: 8px;
  }

  .class-chip {
    padding: 8px 16px;
    font-size: 0.82rem;
  }
}
