/* ===== COURSE BOOKING PAGE - LeadMinds Premium Design ===== */
/* Inspired by Tharwah Academy layout, adapted with LeadMinds brand */

:root {
  --cb-primary: #0d9488;
  --cb-primary-dark: #0a7c71;
  --cb-primary-light: #e6f7f5;
  --cb-navy: #0f172a;
  --cb-text: #1e293b;
  --cb-muted: #64748b;
  --cb-border: #e2e8f0;
  --cb-bg: #f8fafc;
  --cb-white: #ffffff;
  --cb-gold: #d97706;
  --cb-green: #16a34a;
  --cb-red: #dc2626;
  --cb-radius: 16px;
  --cb-shadow: 0 4px 24px rgba(15,23,42,0.08);
  --cb-shadow-lg: 0 8px 40px rgba(15,23,42,0.12);
}

/* ===== BREADCRUMB ===== */
.cb-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 0;
  font-size: 13px;
  color: var(--cb-muted);
  flex-wrap: wrap;
}
.cb-breadcrumb a {
  color: var(--cb-muted);
  text-decoration: none;
  transition: color .2s;
}
.cb-breadcrumb a:hover { color: var(--cb-primary); }
.cb-breadcrumb .sep { opacity: .5; }
.cb-breadcrumb .current { color: var(--cb-text); font-weight: 600; }

/* ===== HERO ===== */
.cb-hero {
  background: linear-gradient(135deg, var(--cb-navy) 0%, #1a2744 100%);
  border-radius: var(--cb-radius);
  padding: 48px 40px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.cb-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230d9488' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.cb-hero-inner { position: relative; z-index: 1; }
.cb-hero-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.3;
}
.cb-hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,.75);
  margin: 0;
  max-width: 680px;
  line-height: 1.7;
}

/* ===== MAIN LAYOUT ===== */
.cb-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}
.cb-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
  margin-bottom: 60px;
}

/* ===== CONTENT COLUMN ===== */
.cb-content {}

/* ===== COURSE COVER IMAGE ===== */
.cb-cover-wrap {
  width: 100%;
  border-radius: var(--cb-radius);
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--cb-bg);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cb-cover-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}
.cb-cover-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--cb-primary-light), #e0f2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

/* ===== BADGE ===== */
.cb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cb-primary-light);
  color: var(--cb-primary);
  border: 1px solid rgba(13,148,136,.2);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ===== HIGHLIGHTS ===== */
.cb-highlights-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--cb-text);
  margin: 0 0 16px;
}
.cb-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.cb-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--cb-bg);
  border: 1px solid var(--cb-border);
  border-radius: 12px;
  padding: 14px 16px;
}
.cb-highlight-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.cb-highlight-text {
  font-size: 14px;
  color: var(--cb-text);
  font-weight: 500;
  line-height: 1.5;
}

/* ===== TABS ===== */
.cb-tabs-wrap {
  background: var(--cb-white);
  border-radius: var(--cb-radius);
  box-shadow: var(--cb-shadow);
  overflow: hidden;
}
.cb-tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--cb-border);
  padding: 0 8px;
}
.cb-tab-btn {
  padding: 16px 22px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--cb-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.cb-tab-btn:hover { color: var(--cb-text); }
.cb-tab-btn.active {
  color: var(--cb-primary);
  border-bottom-color: var(--cb-primary);
}
.cb-tab-panel {
  display: none;
  padding: 28px 32px;
}
.cb-tab-panel.active { display: block; }

/* Tab content prose */
.cb-tab-content {
  font-size: 15px;
  line-height: 1.85;
  color: var(--cb-text);
}
.cb-tab-content h2, .cb-tab-content h3 {
  color: var(--cb-navy);
  margin-top: 24px;
  margin-bottom: 10px;
}
.cb-tab-content ul, .cb-tab-content ol {
  padding-right: 20px;
  margin: 12px 0;
}
.cb-tab-content li { margin-bottom: 8px; }
.cb-tab-content p { margin: 0 0 14px; }
.cb-tab-content-empty {
  color: var(--cb-muted);
  font-style: italic;
  text-align: center;
  padding: 40px 0;
}

/* ===== STICKY CARD ===== */
.cb-sticky-card {
  position: sticky;
  top: 100px;
  background: var(--cb-white);
  border-radius: 20px;
  box-shadow: var(--cb-shadow-lg);
  padding: 28px;
  border: 1px solid var(--cb-border);
}

/* Course mini title */
.cb-card-course-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--cb-navy);
  margin: 0 0 20px;
  line-height: 1.4;
}

/* Divider */
.cb-card-divider {
  height: 1px;
  background: var(--cb-border);
  margin: 16px 0;
}

/* Price */
.cb-price-wrap { margin-bottom: 8px; }
.cb-price-label {
  font-size: 12px;
  color: var(--cb-muted);
  margin-bottom: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.cb-price-free {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 26px;
  font-weight: 800;
  color: var(--cb-green);
}
.cb-price-paid {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.cb-price-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--cb-primary);
}
.cb-price-currency {
  font-size: 15px;
  font-weight: 600;
  color: var(--cb-muted);
}

/* Seats */
.cb-seats-wrap { margin-bottom: 4px; }
.cb-seats-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--cb-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.cb-seats-label strong { color: var(--cb-text); }
.cb-seats-track {
  height: 6px;
  background: var(--cb-border);
  border-radius: 999px;
  overflow: hidden;
}
.cb-seats-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cb-primary), #06d6a0);
  border-radius: 999px;
  transition: width .4s ease;
}
.cb-seats-fill.low { background: linear-gradient(90deg, #f59e0b, #ef4444); }

/* CTA Button */
.cb-btn-enroll {
  display: block;
  width: 100%;
  padding: 0 24px;
  height: 56px;
  background: linear-gradient(135deg, var(--cb-primary) 0%, var(--cb-primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(13,148,136,.35);
  margin-top: 20px;
  text-align: center;
}
.cb-btn-enroll:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,148,136,.45);
}
.cb-btn-enroll:active { transform: translateY(0); }

/* Trust badges */
.cb-trust-list {
  margin-top: 20px;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cb-trust-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--cb-muted);
}
.cb-trust-list li::before {
  content: '✓';
  width: 18px;
  height: 18px;
  background: var(--cb-primary-light);
  color: var(--cb-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}

/* ===== ENROLLMENT MODAL ===== */
.cb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.cb-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cb-modal-box {
  background: var(--cb-white);
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--cb-shadow-lg);
  transform: translateY(20px);
  transition: transform .3s;
}
.cb-modal-overlay.open .cb-modal-box {
  transform: translateY(0);
}
.cb-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--cb-border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  border-radius: 20px 20px 0 0;
}
.cb-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--cb-navy);
  margin: 0;
}
.cb-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--cb-bg);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cb-muted);
  transition: background .2s;
}
.cb-modal-close:hover { background: #fee2e2; color: var(--cb-red); }
.cb-modal-body { padding: 24px 28px 28px; }
.cb-modal-course-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--cb-primary);
  background: var(--cb-primary-light);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 20px;
}

/* Form fields */
.cb-form-group { margin-bottom: 16px; }
.cb-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--cb-text);
  margin-bottom: 6px;
}
.cb-form-group label .req { color: var(--cb-red); }
.cb-form-input {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--cb-border);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--cb-text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.cb-form-input:focus {
  outline: none;
  border-color: var(--cb-primary);
  box-shadow: 0 0 0 3px rgba(13,148,136,.15);
}
.cb-form-input::placeholder { color: #94a3b8; }
.cb-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cb-modal-submit {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, var(--cb-primary) 0%, var(--cb-primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 8px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(13,148,136,.3);
}
.cb-modal-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13,148,136,.4); }
.cb-modal-note {
  text-align: center;
  font-size: 12px;
  color: var(--cb-muted);
  margin-top: 12px;
}

/* ===== LOADING ===== */
.cb-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 20px;
  min-height: 400px;
}
.cb-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--cb-border);
  border-top-color: var(--cb-primary);
  border-radius: 50%;
  animation: cb-spin .8s linear infinite;
}
@keyframes cb-spin { to { transform: rotate(360deg); } }
.cb-loading p { color: var(--cb-muted); font-size: 15px; margin: 0; }

/* ===== SUCCESS BOX ===== */
.cb-success-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 48px 24px;
}
.cb-success-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.cb-success-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--cb-green);
  margin: 0;
}
.cb-success-text {
  font-size: 15px;
  color: var(--cb-muted);
  max-width: 400px;
  line-height: 1.7;
  margin: 0;
}
.cb-success-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 28px;
  background: var(--cb-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.cb-success-btn:hover { background: var(--cb-primary-dark); }

/* ===== ERROR BOX ===== */
.cb-error-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 80px 24px;
  color: var(--cb-muted);
}
.cb-error-box p { font-size: 15px; margin: 0; }
.cb-error-box a { color: var(--cb-primary); text-decoration: none; }

/* ===== FORM MESSAGE ===== */
.cb-form-message {
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-top: 12px;
}
.cb-form-message.error { background: #fee2e2; color: var(--cb-red); }
.cb-form-message.success { background: #dcfce7; color: var(--cb-green); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .cb-layout {
    grid-template-columns: 1fr;
  }
  .cb-sticky-card {
    position: static;
    order: -1;
  }
  .cb-hero {
    padding: 32px 24px;
  }
}
@media (max-width: 600px) {
  .cb-highlights {
    grid-template-columns: 1fr;
  }
  .cb-tab-btn {
    padding: 12px 14px;
    font-size: 13px;
  }
  .cb-tab-panel {
    padding: 20px 16px;
  }
  .cb-sticky-card {
    padding: 20px;
  }
  .cb-btn-enroll {
    height: 50px;
    font-size: 16px;
  }
  .cb-form-row {
    grid-template-columns: 1fr;
  }
  .cb-modal-head,
  .cb-modal-body {
    padding: 18px 20px;
  }
}
