/* Step 5.3 — CSS trang /booking/ (REQ-WEB-03).
   Phần 1: nguyên văn block <style> trang từ content-snapshot/booking.html
   dòng 154-218 (u-section-2 + responsive), không sửa.
   Phần 2: wizard tự viết thay widget Bookly — màu nhấn #f4662f theo
   inline style nguồn (--bookly-main-color), bố cục theo ảnh live
   06/10/2026 (log 5.3). */

.u-section-2 .u-sheet-1 {
  min-height: 726px;
}
.u-section-2 .u-shortcode-1 {
  min-height: 81px;
  height: auto;
  margin: 48px 40px 0 0;
}
.u-section-2 .u-text-1 {
  font-size: 1.25rem;
  background-image: none;
  margin: 30px 110px 60px;
}
/*RESPONSIVE_MEDIA*/
@media (max-width: 1199px) {
  .u-section-2 .u-shortcode-1 {
    width: 907px;
    position: relative;
    margin-right: 0;
  }
  .u-section-2 .u-text-1 {
    margin-left: 91px;
    margin-right: 91px;
  }
}
/*/RESPONSIVE_MEDIA*/

/*RESPONSIVE_MEDIA*/
@media (max-width: 991px) {
  .u-section-2 .u-shortcode-1 {
    width: 695px;
  }
  .u-section-2 .u-text-1 {
    margin-left: 70px;
    margin-right: 70px;
  }
}
/*/RESPONSIVE_MEDIA*/

/*RESPONSIVE_MEDIA*/
@media (max-width: 767px) {
  .u-section-2 .u-sheet-1 {
    min-height: auto;
  }
  .u-section-2 .u-shortcode-1 {
    width: 540px;
  }
  .u-section-2 .u-text-1 {
    margin-left: 53px;
    margin-right: 53px;
  }
}
/*/RESPONSIVE_MEDIA*/

/*RESPONSIVE_MEDIA*/
@media (max-width: 575px) {
  .u-section-2 .u-shortcode-1 {
    width: 340px;
  }
  .u-section-2 .u-text-1 {
    margin-left: 33px;
    margin-right: 33px;
  }
}
/*/RESPONSIVE_MEDIA*/

/* ============ Phần 2: wizard (thay widget Bookly) ============ */
.wiz {
  font-family: 'Open Sans', sans-serif;
  color: #111;
  padding-top: 8px;
}
.wiz-loading { text-align: center; padding: 24px 0; color: #777; }

/* Progress tracker: hàng nhãn "1. Service ... 7. Done" + thanh segment */
.wiz-tracker { margin-bottom: 24px; }
.wiz-tracker-labels { display: flex; }
.wiz-tracker-labels span {
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
  color: #111;
  white-space: nowrap;
}
.wiz-tracker-labels span.active { color: #f4662f; }
.wiz-tracker-bar { display: flex; gap: 4px; margin-top: 6px; }
.wiz-tracker-bar i { flex: 1; height: 8px; background: #ccc; border-radius: 4px; }
.wiz-tracker-bar i.done { background: #f4662f; }

.wiz-info { margin: 0 0 18px; line-height: 1.5; white-space: pre-line; }
.wiz-info b { font-weight: 700; }
.wiz-error { color: #c00; margin: 8px 0; }
.wiz-field-error { color: #c00; font-size: 0.85rem; margin-top: 2px; }

/* Bước Date & Giờ: ô ngày mở lịch popup (REQ-BOOK-19, user 13/10) */
.wiz-cal-field { position: relative; }
.wiz-cal {
  position: absolute; z-index: 30; top: calc(100% + 4px); left: 0;
  background: #fff; border: 1px solid #ddd; border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15); padding: 10px; width: 254px;
}
.wiz-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.wiz-cal-title { font-weight: 700; }
.wiz-cal-nav { border: none; background: none; font-size: 18px; line-height: 1; color: #f4662f; cursor: pointer; padding: 2px 10px; }
.wiz-cal-nav:disabled { color: #ccc; cursor: default; }
.wiz-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.wiz-cal-dow { text-align: center; font-size: 11px; color: #888; padding: 2px 0; }
.wiz-cal-day { border: none; background: none; font: inherit; cursor: pointer; padding: 5px 0; border-radius: 4px; }
.wiz-cal-day:hover:not(.off) { background: #fde8de; color: #f4662f; }
.wiz-cal-day.off { color: #ccc; cursor: default; }
.wiz-cal-day.sel { background: #f4662f; color: #fff; }
.wiz-cal-day.today:not(.sel) { outline: 1px solid #f4662f; }

/* Bước Service: 3 cột select */
.wiz-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.wiz-field label { display: block; color: #f4662f; font-weight: 700; margin-bottom: 6px; }
.wiz-field select, .wiz-field input, .wiz-field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
  background: #fff;
}

/* Điều hướng Next/Back — Next phải, Back trái (align_buttons_left=0) */
.wiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #ddd;
  margin-top: 24px;
  padding-top: 24px;
}
.wiz-nav-right { display: flex; gap: 10px; }
.wiz-btn {
  background: #f4662f;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 11px 26px;
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
}
.wiz-btn:hover { background: #d9551f; }
.wiz-btn[disabled] { opacity: 0.5; cursor: default; }

/* Bước Time: mỗi cột một ngày (bookly_app_show_day_one_column=1) */
/* Một hàng cột ≡ nguồn (column_width 127px, không wrap — overflow ra thì
   ‹ › phân trang trong JS, xem renderTime booking.js). */
.wiz-days { display: flex; flex-wrap: nowrap; gap: 10px; align-items: flex-start; overflow: hidden; }
.wiz-day { flex: 0 0 127px; }
.wiz-day-title {
  background: #f4662f;
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding: 7px 4px;
  border-radius: 4px;
}
.wiz-slot {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 7px 4px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  font: inherit;
}
.wiz-slot:hover { border-color: #f4662f; color: #f4662f; }
.wiz-slot.booked { color: #bbb; cursor: default; text-decoration: line-through; }
/* Phân trang lưới slot (Fix 14/10 user, phone): nút ‹ › tròn nổi to hai mép
   + vuốt trái/phải trên lưới (JS touchstart/touchend) */
.wiz-days-wrap { position: relative; }
.wiz-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: #fff; color: #f4662f; font-size: 26px; font-weight: 700;
  line-height: 46px; text-align: center; padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .28); cursor: pointer;
}
.wiz-arrow.left { left: 2px; }
.wiz-arrow.right { right: 2px; }

/* Add-on trong bước gộp (REQ-BOOK-20, 14/10): dropdown per extra, không
   ảnh — thay card .wiz-extra* của bước Add-on cũ (5.3) */
.wiz-extras-sel { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.wiz-extras-head { font-weight: 600; color: #f4662f; }
.wiz-extra-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wiz-extra-row label { flex: 1; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.wiz-extra-row input[type=checkbox] { width: 18px; height: 18px; accent-color: #f4662f; }
.wiz-extra-row select { min-width: 90px; }
.wiz-extra-qty:disabled { opacity: .45; }

/* Bước Cart: bảng Service | Date | Time + edit/drop */
.wiz-cart { width: 100%; border-collapse: collapse; }
.wiz-cart th { text-align: left; font-weight: 400; color: #111; padding: 8px 12px 8px 0; border-bottom: 1px solid #ddd; }
.wiz-cart td { padding: 12px 12px 12px 0; border-bottom: 1px solid #ddd; }
.wiz-cart-sub td { padding: 2px 12px 10px 0; border-bottom: none; color: #555; font-size: 0.9rem; }
.wiz-round {
  width: 30px; height: 30px; border-radius: 50%;
  border: none; background: #f4662f; color: #fff; cursor: pointer; margin-left: 6px;
}
.wiz-round svg { width: 14px; height: 14px; fill: #fff; vertical-align: middle; }

/* Bước Details */
.wiz-form-name { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 18px; }
.wiz-form-contact { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-bottom: 18px; }
/* Guest booking link (REQ-GST-06) */
.wiz-guest-chk { display: flex; align-items: center; gap: 10px;
                 margin: 6px 0 14px; font-size: 15px; cursor: pointer;
                 -webkit-user-select: none; user-select: none; }
.wiz-guest-chk input { width: 18px; height: 18px; margin: 0;
                       accent-color: #f4662f; cursor: pointer; flex: none; }
.wiz-form-notes { margin-bottom: 18px; }
.wiz-form-notes textarea { min-height: 70px; }

/* Bước Payment */
.wiz-pay label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

/* Dialog "Data already in use" */
.wiz-dialog-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4);
  display: flex; align-items: center; justify-content: center; z-index: 1100;
}
.wiz-dialog { background: #fff; border-radius: 6px; padding: 24px; max-width: 420px; }
.wiz-dialog h3 { margin: 0 0 12px; font-size: 1.05rem; }
.wiz-dialog .wiz-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* Bước Done */
.wiz-done-box { background: #f0f9ca; border-radius: 4px; padding: 18px; margin-bottom: 18px; }

@media (max-width: 767px) {
  .wiz-fields, .wiz-form-name, .wiz-form-contact { grid-template-columns: 1fr; }
  /* Mobile: nguồn ẩn nhãn, chỉ hiện hàng tròn nối line (verify live 390px
     06/10/2026) — labels tràn cạnh nên bỏ hẳn, bar → chấm tròn. */
  .wiz-tracker-labels { display: none; }
  .wiz-tracker-bar { position: relative; }
  .wiz-tracker-bar::before {
    content: ""; position: absolute; left: 13px; right: 13px; top: 50%;
    height: 2px; background: #ccc; transform: translateY(-50%);
  }
  .wiz-tracker-bar i {
    flex: 0 0 26px; height: 26px; border-radius: 50%;
    background: #fff; border: 3px solid #ccc; position: relative;
  }
  .wiz-tracker-bar i.done { background: #f4662f; border-color: #f4662f; }
  .wiz-tracker { display: flex; justify-content: center; }
  .wiz-tracker-bar { display: flex; justify-content: space-between; width: 100%; }
}

/* Block "Important Notes" trang booking (14/10): dòng block margin 8px thay
   <br><br> — khoảng cách đều, gọn hơn một dòng trắng */
.note-line { display: block; margin-top: 8px; }
