/* BeautyBook Client Calendar - Phase 3 */
.bb-cal-client {
  font-family: 'Nunito', -apple-system, sans-serif;
  background: #fff9f6;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: #2c1810;
}
.bb-cal-client *, .bb-cal-client *::before, .bb-cal-client *::after { box-sizing: border-box; }

.bb-cal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: #fff;
  border-bottom: 1px solid #f5e6e0;
}
.bb-cal-back { color: #8b4a3a; text-decoration: none; font-weight: 500; }
.bb-cal-back:hover { color: #d97757; }
.bb-cal-langs { display: flex; gap: 8px; }
.bb-cal-lang {
  padding: 6px 14px;
  border: 1px solid #e8c8bc;
  background: #fff;
  color: #8b4a3a;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}
.bb-cal-lang.active { background: #d97757; color: #fff; border-color: #d97757; }

.bb-cal-hero {
  padding: 48px 24px 32px;
  text-align: center;
  background: linear-gradient(135deg, #fdf4ef 0%, #fae4d6 100%);
}
.bb-cal-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 40px;
  margin: 0 0 12px;
  font-weight: 700;
}
.bb-cal-hero p { color: #5c3c30; font-size: 17px; margin: 0; max-width: 560px; margin-left: auto; margin-right: auto; }

.bb-cal-wizard { max-width: 900px; margin: 0 auto; padding: 32px 20px 80px; }

.bb-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 8px;
  flex-wrap: wrap;
}
.bb-step {
  flex: 1 1 0;
  min-width: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 3px solid #f5e6e0;
  font-size: 13px;
  color: #8b7569;
  transition: all 0.2s;
}
.bb-step.active, .bb-step.completed {
  border-color: #d97757;
  color: #2c1810;
  font-weight: 600;
}
.bb-step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f5e6e0;
  color: #8b4a3a;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.bb-step.active .bb-step-n, .bb-step.completed .bb-step-n { background: #d97757; color: #fff; }

.bb-cal-panel { display: none; background: #fff; border-radius: 16px; padding: 32px; border: 1px solid #f5e6e0; }
.bb-cal-panel.active { display: block; animation: bbFade 0.3s; }
@keyframes bbFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.bb-cal-panel h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  margin: 0 0 24px;
  color: #2c1810;
}

.bb-salon-list, .bb-service-list, .bb-staff-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.bb-pick-card {
  background: #fff;
  border: 2px solid #f5e6e0;
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.bb-pick-card:hover { border-color: #d97757; transform: translateY(-3px); box-shadow: 0 12px 24px rgba(217,119,87,0.12); }
.bb-pick-card.selected { border-color: #d97757; background: #fdf4ef; }
.bb-pick-title { font-family: 'Playfair Display', serif; font-size: 18px; margin: 0 0 4px; color: #2c1810; }
.bb-pick-sub { color: #8b7569; font-size: 13px; margin: 0 0 8px; }
.bb-pick-meta { color: #d97757; font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }

.bb-pick-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d97757, #e89b7e);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
  font-family: 'Playfair Display', serif;
}

.bb-datepick { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 20px; }
.bb-date-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e8c8bc;
  background: #fff;
  color: #8b4a3a;
  cursor: pointer;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bb-date-nav:hover { background: #d97757; color: #fff; border-color: #d97757; }
.bb-week-label { font-weight: 700; color: #2c1810; font-size: 16px; }

.bb-slots-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.bb-slot-day { background: #fdf4ef; border-radius: 10px; padding: 10px 6px; }
.bb-slot-day-label { text-align: center; font-weight: 700; color: #2c1810; font-size: 13px; margin-bottom: 8px; }
.bb-slot-day-date { text-align: center; color: #8b7569; font-size: 11px; margin-bottom: 10px; }
.bb-slot-btn {
  display: block;
  width: 100%;
  padding: 6px 4px;
  margin: 4px 0;
  border: 1px solid #e8c8bc;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  color: #8b4a3a;
  transition: all 0.15s;
}
.bb-slot-btn:hover { background: #d97757; color: #fff; border-color: #d97757; }
.bb-slot-btn.selected { background: #d97757; color: #fff; border-color: #d97757; }
.bb-slot-btn.booked { background: #f5e6e0; color: #c0a090; cursor: not-allowed; text-decoration: line-through; }

.bb-cal-back-btn {
  margin-top: 20px;
  background: transparent;
  border: none;
  color: #8b4a3a;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
.bb-cal-back-btn:hover { color: #d97757; }

.bb-summary {
  background: #fdf4ef;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.bb-summary-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed #e8c8bc; }
.bb-summary-row:last-child { border-bottom: none; font-weight: 700; font-size: 18px; color: #2c1810; }
.bb-summary-lbl { color: #8b7569; }
.bb-summary-val { color: #2c1810; font-weight: 600; }

.bb-contact-form { display: grid; gap: 10px; margin-bottom: 20px; }
.bb-contact-form input {
  padding: 12px 16px;
  border: 1px solid #e8c8bc;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
}
.bb-contact-form input:focus { outline: 2px solid #d97757; border-color: #d97757; }

.bb-pay-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #d97757, #e89b7e);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.bb-pay-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(217,119,87,0.3); }
.bb-pay-note { text-align: center; color: #8b7569; font-size: 13px; margin: 12px 0 0; }

.bb-success { text-align: center; padding: 40px 20px; }
.bb-success-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #d97757, #e89b7e);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 20px;
}
.bb-success h2 { font-family: 'Playfair Display', serif; font-size: 32px; color: #2c1810; margin: 0 0 12px; }
.bb-success p { color: #5c3c30; font-size: 16px; margin: 0 0 24px; }
.bb-btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: #d97757;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 720px) {
  .bb-cal-hero h1 { font-size: 28px; }
  .bb-cal-panel { padding: 20px; }
  .bb-slots-grid { grid-template-columns: repeat(2, 1fr); }
  .bb-step { min-width: 70px; font-size: 11px; padding: 8px 4px; }
}
