/* ── Omti Group · CBI Module Styles v2 ─────────────────────────── */

/* Site gradient background (preserved from v1) */
.bg-omti { background: linear-gradient(90deg, #17a2b8 8%, #000080 50%, #17a2b8); }

/* ── Hero ───────────────────────────────────────────────────────── */
.bk-hero {
  background: linear-gradient(135deg, #0a2342 0%, #0d4f6e 60%, #17a2b8 100%);
  padding: 48px 0 36px;
  color: #fff;
  margin-top: 56px;
}
.bk-hero h2  { font-size: 26px; font-weight: 800; margin-bottom: 6px; text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.bk-hero p   { font-size: 14px; opacity: .85; margin-bottom: 20px; }
.bk-search   { max-width: 480px; }
.bk-search .form-control {
  border-radius: 50px 0 0 50px;
  border: none;
  padding-left: 20px;
  height: 44px;
  font-size: 14px;
  box-shadow: none;
}
.bk-search .btn {
  border-radius: 0 50px 50px 0;
  background: #17a2b8;
  border: none;
  color: #fff;
  height: 44px;
  padding: 0 20px;
}
.bk-search .btn:hover { background: #138496; }

/* ── Main content area ──────────────────────────────────────────── */
.bk-main { background: #f4f6f9; min-height: 60vh; padding: 28px 0 80px; }

/* ── Course grid ────────────────────────────────────────────────── */
#courseList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
  align-items: start;
}

/* ── Course cards (e-commerce style) ──────────────────────────────── */
.co-card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.co-card:hover { box-shadow: 0 10px 28px rgba(10,35,66,.14); transform: translateY(-2px); }

.co-banner {
  position: relative;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.co-banner-icon { font-size: 34px; color: rgba(255,255,255,.35); }
.co-banner-img {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.co-ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.co-ribbon-open   { background: #5CB338; color: #fff; }
.co-ribbon-closed { background: #dc3545; color: #fff; }

.co-card-body { padding: 14px 16px 16px; }

.co-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.co-tag  {
  display: inline-block;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.6;
}
.co-tag-blue   { background: #e3f0fb; color: #1565c0; }
.co-tag-teal   { background: #e0f5f5; color: #00695c; }
.co-tag-purple { background: #f1e8fd; color: #6a1b9a; }

.co-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #1a2e4a;
  line-height: 1.35;
  margin-bottom: 10px;
  min-height: 39px;
}

.co-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}
.co-price-from  { flex-basis: 100%; font-size: 11px; font-weight: 600; color: #6c757d; text-transform: uppercase; letter-spacing: .03em; }
.co-price       { font-size: 19px; font-weight: 800; color: #d35400; }
.co-price-muted { font-size: 14px; font-weight: 700; color: #6c757d; }
.co-price-full  { font-size: 12px; color: #adb5bd; text-decoration: line-through; }
.co-price-tag   {
  background: #fdecd8;
  color: #b45309;
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 10.5px;
  font-weight: 700;
}

.co-cta {
  width: 100%;
  background: #f37021;
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s;
}
.co-cta:hover { background: #d35400; }
.co-cta.open  { background: #0a2342; }
.co-cta .fa   { transition: transform .2s; }

.co-btn-row { display: flex; gap: 8px; }
.co-btn-row .co-cta { flex: 1; }
.co-detail-btn {
  flex: 1;
  background: #fff;
  border: 1.5px solid #dee2e6;
  color: #475569;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.co-detail-btn:hover { background: #f8f9fa; border-color: #adb5bd; }

/* ── Course detail modal ────────────────────────────────────────── */
.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #f2f2f2;
}
.detail-row:last-child { border-bottom: none; }
.detail-row .fa { color: #17a2b8; width: 16px; margin-top: 3px; }
.detail-row > div { display: flex; flex-direction: column; }
.detail-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: #94a3b8; }
.detail-value { font-size: 13.5px; font-weight: 600; color: #1a2e4a; }

.detail-image {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 14px;
}
.detail-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 4px;
}
.detail-section-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #17a2b8;
  margin: 16px 0 8px;
}
.detail-criteria {
  background: #f8f9fa;
  border: 1px solid #eef0f2;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}

/* ── Batch list panel ───────────────────────────────────────────── */
.batch-panel {
  border-top: 1px solid #eef0f2;
  background: #f8f9fa;
  padding: 12px 14px;
  display: none;
}
.batch-loading { text-align: center; color: #6c757d; font-size: 13px; padding: 16px 0; }

.batch-row {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.batch-row:last-child { margin-bottom: 0; }

.batch-info { flex: 1 1 200px; }
.batch-dates {
  font-size: 13px;
  font-weight: 700;
  color: #1a2e4a;
}
.batch-dates .fa { color: #17a2b8; margin-right: 4px; }
.batch-code  { font-size: 11px; color: #6c757d; margin-top: 2px; }

.batch-fee-block { text-align: right; min-width: 130px; }
.dep-amt    { font-size: 14px; font-weight: 800; color: #155724; }
.dep-label  { font-size: 10px; color: #6c757d; text-transform: uppercase; letter-spacing: .3px; }
.bal-note   { font-size: 11px; color: #6c757d; margin-top: 2px; }
.bal-note.fully-paid { color: #2e7d32; font-weight: 600; }

.seats-chip {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 600;
  margin-left: 6px;
}
.seats-chip.full { background: #f8d7da; color: #721c24; }

.batch-actions {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 6px;
  flex: 1 1 100%;
}

.add-btn {
  background: #17a2b8;
  border: none;
  color: #fff;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.add-btn:hover   { background: #138496; }
.add-btn.in-cart { background: #28a745; cursor: default; }
.add-btn:disabled { background: #adb5bd; cursor: default; }

.book-now-btn {
  background: #28a745;
  border: none;
  color: #fff;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.book-now-btn:hover { background: #218838; }

/* ── Cart sidebar ───────────────────────────────────────────────── */
.cart-sidebar {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(0,0,0,.10);
  overflow: hidden;
  position: sticky;
  top: 72px;
}
.cart-head {
  background: #0a2342;
  color: #fff;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-badge {
  background: #17a2b8;
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}
.cart-body {
  padding: 12px 14px;
  min-height: 80px;
  max-height: 300px;
  overflow-y: auto;
}
.cart-empty { text-align: center; color: #adb5bd; font-size: 13px; padding: 28px 0; }

.cart-item { border-bottom: 1px solid #f2f2f2; padding: 8px 0; }
.cart-item:last-child { border-bottom: none; }
.ci-name   { font-size: 13px; font-weight: 600; color: #1a2e4a; padding-right: 54px; }
.ci-batch  { font-size: 11px; color: #6c757d; margin-top: 2px; }
.ci-right  { float: right; text-align: right; }
.ci-amt    { font-size: 13px; color: #155724; font-weight: 700; display: block; }
.ci-remove { font-size: 11px; color: #dc3545; cursor: pointer; margin-top: 2px; display: block; }
.ci-remove:hover { text-decoration: underline; }

.cart-foot { border-top: 1px solid #eef0f2; padding: 12px 14px; }
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: #1a2e4a;
  margin-bottom: 10px;
}
.checkout-btn {
  background: #17a2b8;
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 100%;
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.checkout-btn:hover { background: #138496; }
.cart-note { font-size: 11px; color: #6c757d; text-align: center; margin-top: 8px; }

/* ── Filter sidebar ─────────────────────────────────────────────── */
.filter-sidebar {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(0,0,0,.10);
  overflow: hidden;
  position: sticky;
  top: 72px;
}
.filter-head {
  background: #0a2342;
  color: #fff;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
}
.filter-body { padding: 14px; }
.filter-group { margin-bottom: 16px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #1a2e4a;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 5px;
}
.filter-group select {
  font-size: 13px;
  border-radius: 6px;
  border-color: #dee2e6;
}
.filter-foot {
  border-top: 1px solid #eef0f2;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.apply-filter-btn {
  background: #17a2b8;
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 100%;
  padding: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.apply-filter-btn:hover { background: #138496; }
.clear-filter-btn {
  background: #f0f2f5;
  color: #495057;
  border: none;
  border-radius: 8px;
  width: 100%;
  padding: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.clear-filter-btn:hover { background: #e2e6ea; }

/* ── Mobile action bar (Filters | Cart) ────────────────────────────── */
.mob-action-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0a2342;
  padding: 10px 14px;
  gap: 10px;
  z-index: 1040;
  box-shadow: 0 -2px 10px rgba(0,0,0,.15);
}
.mob-bar-btn {
  flex: 1;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.mob-bar-btn-cart { background: #17a2b8; border-color: #17a2b8; }
.mob-bar-badge {
  background: rgba(255,255,255,.25);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* Bottom-sheet style for mobile filter/cart modals */
@media (max-width: 767px) {
  .modal-dialog-bottom {
    margin: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
  }
  .modal-dialog-bottom .modal-content {
    border-radius: 14px 14px 0 0;
    max-height: 85vh;
  }
  .modal-dialog-bottom .modal-body { overflow-y: auto; }
  body { padding-bottom: 62px; } /* clear the fixed action bar */
}

/* ── Checkout Modal ─────────────────────────────────────────────── */
.modal-header.bk-mhdr {
  background: #0a2342;
  color: #fff;
  border-radius: 4px 4px 0 0;
}
.modal-header.bk-mhdr .close { color: rgba(255,255,255,.8); text-shadow: none; }
.modal-header.bk-mhdr .close:hover { color: #fff; }

.step-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #17a2b8;
  margin-bottom: 6px;
}
.lookup-wrap { position: relative; }
.lookup-drop {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.lookup-row { padding: 9px 12px; cursor: pointer; border-bottom: 1px solid #f5f5f5; }
.lookup-row:last-child { border-bottom: none; }
.lookup-row:hover { background: #f0f9ff; }
.lookup-name { font-size: 13px; font-weight: 600; color: #1a2e4a; }
.lookup-sub  { font-size: 11px; color: #6c757d; }

.order-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px dashed #eee;
}
.order-summary-item:last-child { border-bottom: none; }
.order-total {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 800;
  color: #0a2342;
  border-top: 2px solid #dee2e6;
  padding-top: 10px;
  margin-top: 8px;
}
.pay-btn {
  background: #17a2b8;
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 14px;
  transition: background .15s;
}
.pay-btn:hover    { background: #138496; }
.pay-btn:disabled { background: #6c757d; cursor: default; }
.secure-note { font-size: 11px; color: #6c757d; text-align: center; margin-top: 6px; }

/* ── Booking result page ────────────────────────────────────────── */
.result-wrap  { min-height: 72vh; display: flex; align-items: center; justify-content: center; padding: 24px 0 48px; }
.result-card  { background: #fff; border-radius: 14px; box-shadow: 0 4px 24px rgba(0,0,0,.10); padding: 36px 30px; max-width: 620px; width: 100%; }
.icon-circle  { width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 34px; }
.icon-success { background: #d4edda; color: #155724; }
.icon-failed  { background: #f8d7da; color: #721c24; }
.icon-loading { background: #d1ecf1; color: #0c5460; }
.result-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.result-sub   { font-size: 14px; color: #6c757d; margin-bottom: 22px; line-height: 1.6; }

.enroll-block {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
  text-align: left;
}
.enroll-block table { width: 100%; font-size: 13px; border-collapse: collapse; }
.enroll-block td   { padding: 4px 0; vertical-align: top; }
.enroll-block td:first-child { color: #6c757d; width: 42%; }
.enroll-block td:last-child  { font-weight: 600; color: #212529; }
.eb-badges { margin-bottom: 10px; }

.badge-dep  { background: #cce5ff; color: #004085; border-radius: 6px; padding: 3px 10px; font-size: 11px; font-weight: 700; display: inline-block; }
.badge-bal  { background: #fff3cd; color: #856404; border-radius: 6px; padding: 3px 10px; font-size: 11px; font-weight: 700; display: inline-block; margin-left: 5px; }
.badge-paid { background: #d4edda; color: #155724; border-radius: 6px; padding: 3px 10px; font-size: 11px; font-weight: 700; display: inline-block; margin-left: 5px; }

.balance-box {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 13px;
  text-align: left;
}
.balance-box strong { display: block; font-size: 14px; margin-bottom: 4px; color: #e65100; }

.next-box {
  background: #e3f2fd;
  border: 1px solid #90caf9;
  border-radius: 8px;
  padding: 14px 16px;
  text-align: left;
  margin-top: 16px;
  font-size: 13px;
  color: #0d47a1;
  line-height: 1.8;
}
.next-box strong { display: block; margin-bottom: 6px; font-size: 14px; color: #0d47a1; }

.spinner-gif { width: 60px; height: auto; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .bk-hero   { padding: 36px 0 28px; }
  .bk-hero h2 { font-size: 20px; }
  .bk-main   { padding-bottom: 72px; }
  .result-card { padding: 24px 16px; }
  .result-title { font-size: 19px; }
  .batch-fee-block { text-align: left; }
}
