/* Booking System Styles — matches site style.css color scheme */
/* Override site-level global resets for booking components */
.bk-wizard *, .bk-wizard *::before, .bk-wizard *::after { box-sizing: border-box; }
.bk-wizard button { width: auto; margin: 0; }
.bk-wizard input, .bk-wizard select, .bk-wizard textarea { width: 100%; }

/* ========== Wizard Container ========== */
.bk-wizard {
  max-width: 700px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}
.bk-step { display: none; }
.bk-step.is-active { display: block; }

.bk-step-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--hh-navy, #1a2744);
}

/* ========== Step Progress Bar ========== */
.bk-steps-bar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  padding: 0 10px;
}
.bk-step-indicator {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.bk-step-num {
  width: 36px; height: 36px;
  min-width: 36px; min-height: 36px;
  border-radius: 50%;
  background: #e5e8ed;
  color: #999;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: all .3s;
  padding: 0;
  margin: 0;
  border: none;
}
.bk-step-label {
  font-size: 12px;
  color: #999;
  font-weight: 500;
  transition: color .3s;
  white-space: nowrap;
}
.bk-step-indicator.is-active .bk-step-num {
  background: var(--hh-teal, #5bb5c5);
  color: #fff;
  box-shadow: 0 2px 8px rgba(91, 181, 197, .35);
}
.bk-step-indicator.is-active .bk-step-label { color: var(--hh-teal, #5bb5c5); font-weight: 600; }
.bk-step-indicator.is-done .bk-step-num {
  background: var(--hh-navy, #1a2744);
  color: #fff;
}
.bk-step-indicator.is-done .bk-step-label { color: var(--hh-navy, #1a2744); }
.bk-step-line {
  flex: 1;
  height: 2px;
  background: #e5e8ed;
  margin: 0 6px;
  margin-bottom: 20px;
  min-width: 20px;
}
@media (max-width: 480px) {
  .bk-step-label { display: none; }
  .bk-step-line { margin-bottom: 0; }
  .bk-step-num { width: 30px; height: 30px; min-width: 30px; min-height: 30px; font-size: 13px; }
}

/* ========== Selected Summary ========== */
.bk-selected-summary {
  background: var(--hh-bg-light, #f8f9fb);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--hh-text, #333);
}

/* ========== Service Cards ========== */
.bk-category-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--hh-navy, #1a2744);
  margin: 24px 0 12px;
}
.bk-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 480px) {
  .bk-services-grid { grid-template-columns: 1fr 1fr; }
}
.bk-service-card {
  border: 2px solid #e5e8ed;
  border-radius: 10px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all .2s;
  background: #fff;
  text-align: left;
}
.bk-service-card:hover {
  border-color: var(--hh-teal, #5bb5c5);
  box-shadow: 0 4px 16px rgba(91, 181, 197, .15);
  transform: translateY(-2px);
}
.bk-service-card.is-selected {
  border-color: var(--hh-navy, #1a2744);
  background: rgba(26, 39, 68, .03);
  box-shadow: 0 0 0 3px rgba(26, 39, 68, .1);
}
.bk-service-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--hh-navy, #1a2744);
  margin-bottom: 4px;
}
.bk-service-meta {
  font-size: 14px;
  color: #666;
}
.bk-service-price {
  font-weight: 700;
  color: var(--hh-teal, #5bb5c5);
  font-size: 16px;
}
.bk-service-desc {
  font-size: 13px;
  color: #999;
  margin-top: 6px;
  line-height: 1.4;
}
.bk-svc-toggle {
  font-size: 13px;
  color: var(--hh-teal);
  cursor: pointer;
  font-weight: 500;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}
.bk-svc-toggle:hover { color: var(--hh-navy); }
.bk-svc-arrow {
  font-size: 10px;
  transition: transform .2s;
  display: inline-block;
}
.bk-svc-toggle.is-open .bk-svc-arrow { transform: rotate(180deg); }
.bk-svc-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.bk-svc-details.is-open { max-height: 800px; }
.bk-svc-details-content {
  font-size: 13px;
  color: var(--hh-text-light);
  line-height: 1.6;
  padding: 8px 0 4px;
  text-align: left;
}
.bk-svc-details-content h3 { display: none; }
.bk-svc-details-content p { margin: 0 0 8px; text-align: left; }
.bk-svc-details-content ul,
.bk-svc-details-content ol { margin: 6px 0 8px; padding-left: 20px; text-align: left; list-style-position: outside; }
.bk-svc-details-content li { margin: 3px 0; text-align: left; }
.bk-svc-details-content strong { color: var(--hh-navy); }

/* ========== Calendar ========== */
.bk-calendar { user-select: none; }
.bk-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.bk-cal-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--hh-navy, #1a2744);
}
.bk-cal-nav {
  background: #fff !important;
  border: 1px solid #e5e8ed !important;
  border-radius: 6px;
  padding: 6px 14px !important;
  cursor: pointer;
  font-size: 18px;
  width: auto !important;
  margin: 0 !important;
  transition: background .15s;
  line-height: 1;
  color: var(--hh-navy, #1a2744);
}
.bk-cal-nav:hover { background: #f0f0f5 !important; }
.bk-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
}
.bk-cal-dow {
  font-size: 12px;
  color: #999;
  padding: 8px 0;
  font-weight: 600;
  text-transform: uppercase;
}
.bk-cal-day {
  padding: 11px 0;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
}
.bk-cal-day:hover { background: #f0f8ff; }
.bk-cal-day.is-available { font-weight: 600; color: var(--hh-navy, #1a2744); }
.bk-cal-day.is-unavailable { color: #ccc; cursor: default; }
.bk-cal-day.is-unavailable:hover { background: none; }
.bk-cal-day.is-selected {
  background: var(--hh-navy, #1a2744);
  color: #fff;
}
.bk-cal-day.is-today { box-shadow: inset 0 0 0 2px var(--hh-teal, #5bb5c5); }
.bk-cal-day.is-empty { cursor: default; }
.bk-cal-day.is-empty:hover { background: none; }

/* ========== Time Slots ========== */
.bk-slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bk-slot {
  padding: 10px 20px !important;
  border: 2px solid #e5e8ed !important;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: all .15s;
  background: #fff !important;
  width: auto !important;
  margin: 0 !important;
  text-align: center;
  display: inline-flex !important;
  flex-direction: column;
  gap: 2px;
  color: var(--hh-navy, #1a2744);
}
.bk-slot:hover {
  border-color: var(--hh-teal, #5bb5c5) !important;
  background: rgba(91, 181, 197, .06) !important;
}
.bk-slot.is-selected {
  border-color: var(--hh-navy, #1a2744) !important;
  background: var(--hh-navy, #1a2744) !important;
  color: #fff !important;
}
.bk-slot-time { font-weight: 600; }
.bk-slot-spots { font-size: 11px; opacity: .7; }
.bk-slot.is-selected .bk-slot-spots { opacity: .85; }

/* ========== Person Card (multi-person) ========== */
.bk-person-card {
  background: #fff;
  border: 1px solid #e5e8ed;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}
.bk-person-card .form-group { margin-bottom: 10px; }
.bk-person-card label { font-size: 13px; font-weight: 500; color: #555; margin-bottom: 2px; display: block; }
.bk-person-card .form-control { padding: 8px 12px; font-size: 14px; }
.bk-welcome-msg {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 4px;
}
.bk-msg--ok { background: #e8ffea; color: #00893e; }

/* ========== Summary ========== */
.bk-summary {
  background: var(--hh-bg-light, #f8f9fb);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.bk-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 14px;
}
.bk-summary-row span { color: #888; }

/* ========== Buttons ========== */
.bk-btn-back {
  display: inline-block !important;
  background: none !important;
  border: none !important;
  color: var(--hh-teal, #5bb5c5) !important;
  cursor: pointer;
  font-size: 14px;
  padding: 4px 0 !important;
  margin-bottom: 16px;
  width: auto !important;
  font-weight: 500;
  box-shadow: none !important;
}
.bk-btn-back:hover { color: var(--hh-navy, #1a2744) !important; }

/* ========== Confirmation ========== */
.bk-confirm { text-align: center; padding: 20px 0; }
.bk-confirm-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #e8ffea;
  color: #00b42a;
  font-size: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* ========== Add Person Button ========== */
.bk-wizard #btnAddPerson {
  width: auto !important;
  display: inline-block !important;
  padding: 8px 20px !important;
  background: transparent !important;
  border: 2px solid var(--hh-teal, #5bb5c5) !important;
  color: var(--hh-teal, #5bb5c5) !important;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all .2s;
}
.bk-wizard #btnAddPerson:hover {
  background: var(--hh-teal, #5bb5c5) !important;
  color: #fff !important;
}
.bk-remove-person {
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: none !important;
}

/* ========== Submit button ========== */
.bk-wizard #submitBtn {
  width: 100% !important;
  padding: 14px !important;
  font-size: 17px !important;
  font-weight: 700;
}

/* ========== Loading ========== */
.bk-loading {
  text-align: center;
  padding: 24px;
  color: #999;
}

/* ========== RTL Support (Arabic) ========== */
.is-rtl .bk-wizard { direction: rtl; }
.is-rtl .bk-steps-bar { flex-direction: row-reverse; }
.is-rtl .bk-services-grid { direction: rtl; }
.is-rtl .bk-service-card { text-align: right; }
.is-rtl .bk-cal-grid { direction: rtl; }
.is-rtl .bk-summary-row { flex-direction: row-reverse; }
.is-rtl .bk-person-card { text-align: right; }
.is-rtl .bk-person-card label { text-align: right; }
.is-rtl .bk-btn-back::before { content: '→ '; }
.is-rtl .bk-btn-back { text-align: right; }
.is-rtl .bk-slots-grid { direction: rtl; }
.is-rtl .bk-selected-summary { text-align: right; }

/* ══════════════════════════════════════════════════════════
   加购弹窗
   选完服务後跳出，只列这个服务允许加购的项目。

   注意：勾选框要用 input[type="checkbox"] 而不是单纯 input ——
   本档上面有一条 `.bk-wizard input { width: 100% }`，权重跟
   `.bk-addon-item input` 一样，载入顺序会让它赢，勾选框会被撑成整行宽。
   ══════════════════════════════════════════════════════════ */
.bk-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 24, 28, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  animation: bkFade .15s ease;
}
.bk-modal-overlay[hidden] { display: none; }
@keyframes bkFade { from { opacity: 0 } to { opacity: 1 } }

.bk-modal {
  position: relative;
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
  animation: bkRise .18s ease;
}
@keyframes bkRise { from { transform: translateY(12px); opacity: .6 } to { transform: none; opacity: 1 } }

.bk-modal-close {
  position: absolute;
  top: 10px; right: 12px;
  width: 32px; height: 32px;
  border: 0; background: none;
  font-size: 26px; line-height: 1;
  color: #86909c;
  cursor: pointer;
  border-radius: 8px;
}
.bk-modal-close:hover { background: #f2f3f5; color: #1d2129; }

.bk-modal-head { padding: 20px 22px 12px; border-bottom: 1px solid #eef1f4; }
.bk-modal-title { font-size: 18px; font-weight: 700; color: var(--hh-navy, #1d2129); }
.bk-modal-sub   { margin-top: 3px; font-size: 13.5px; color: #86909c; }

/* 项目清单 —— 会卷动，标题与按钮固定 */
.bk-addons-list {
  padding: 12px 22px;
  overflow-y: auto;
  flex: 1;
  display: grid;
  gap: 8px;
}
.bk-addon-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid #e5e8ed;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.bk-addon-item:hover { border-color: #c9cdd4; background: #fafbfc; }
.bk-addon-item input[type="checkbox"] {
  width: 18px; height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--hh-teal, #2c5f53);
}
.bk-addon-item:has(input[type="checkbox"]:checked) {
  border-color: var(--hh-teal, #2c5f53);
  background: #f2f8f6;
}
.bk-addon-name { flex: 1; font-size: 15px; color: #1d2129; }
.bk-addon-meta { font-size: 13.5px; color: #86909c; white-space: nowrap; }

.bk-modal-foot {
  padding: 14px 22px 18px;
  border-top: 1px solid #eef1f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.bk-addon-total { font-size: 15px; font-weight: 700; color: var(--hh-teal, #2c5f53); min-height: 20px; }
.bk-modal-actions { display: flex; gap: 8px; margin-left: auto; }

/* 弹窗按钮：站台的 .btn-primary 会被 .bk-wizard 的规则拉成整行宽，
   所以这裡自己定义一组，不要沿用。 */
.bk-modal-btn {
  padding: 11px 20px;
  border-radius: 8px;
  font: 600 14.5px/1 inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s;
}
.bk-modal-btn-ghost {
  background: none;
  border-color: #dfe3e8;
  color: #4e5969;
}
.bk-modal-btn-ghost:hover { background: #f2f3f5; }

.bk-modal-btn-primary {
  background: var(--hh-teal, #2c5f53);
  border-color: var(--hh-teal, #2c5f53);
  color: #fff;
}
.bk-modal-btn-primary:hover { background: #245046; border-color: #245046; }

@media (max-width: 560px) {
  .bk-modal-overlay { padding: 0; align-items: flex-end; }
  .bk-modal { max-width: none; max-height: 92vh; border-radius: 16px 16px 0 0; }
  .bk-modal-foot { flex-direction: column; align-items: stretch; }
  .bk-modal-actions { margin-left: 0; }
  .bk-modal-actions button { flex: 1; }
}
