*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg:        #F5F1EC;
  --bg-warm:   #EDE7DE;
  --text:      #1F3D36;
  --text-soft: #4A6B62;
  --gold:      #C6A46C;
  --gold-lt:   #E2C99A;
  --rose:      #D8A7A0;
  --white:     #FFFFFF;
  --card-bg:   #FAF7F3;
  --border:    rgba(198,164,108,0.25);
  --danger:    #B5544A;
  --shadow:    0 8px 40px rgba(31,61,54,0.08);
  --r:         16px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── PAGE ───────────────────────────────────── */
/* Top padding clears the fixed site navbar (partials/header.html) */
.bk-page { max-width: 1180px; margin: 0 auto; padding: 130px 28px 80px; }

.bk-label {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold);
}
.bk-intro { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.bk-intro h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500; line-height: 1.2;
  margin: 14px 0 14px;
}
.bk-intro h1 em { color: var(--gold); }
.bk-intro p { color: var(--text-soft); margin: 0; }

/* ─── STEPPER ────────────────────────────────── */
.bk-steps {
  list-style: none; padding: 0;
  display: flex; justify-content: center; gap: 12px;
  margin: 0 auto 36px;
  scroll-margin-top: 90px;
}
.bk-step {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-soft);
}
.bk-step:not(:last-child)::after {
  content: '';
  width: 48px; height: 1px;
  background: var(--border);
  margin-left: 2px;
}
.bk-step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 0.8rem; font-weight: 600;
  transition: all 0.3s ease;
}
.bk-step.active { color: var(--text); }
.bk-step.active .bk-step-num { background: var(--text); border-color: var(--text); color: var(--white); }
.bk-step.complete .bk-step-num { background: var(--gold); border-color: var(--gold); color: var(--white); font-size: 0; }
.bk-step.complete .bk-step-num::before { content: '✓'; font-size: 0.8rem; }
.bk-step.complete:not(:last-child)::after { background: var(--gold); }

/* ─── LAYOUT ─────────────────────────────────── */
.bk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}
.is-done .bk-layout { grid-template-columns: minmax(0, 680px); justify-content: center; }
.is-done .bk-summary { display: none; }

.bk-main {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 40px;
}
.bk-panel { display: none; animation: bkFade 0.4s ease; }
.bk-panel.active { display: block; }
@keyframes bkFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.bk-panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 500;
  margin: 0 0 6px;
}
.bk-panel-sub { color: var(--text-soft); font-size: 0.925rem; margin: 0 0 28px; }

/* ─── PLAN OPTIONS ───────────────────────────── */
.bk-plans { display: flex; flex-direction: column; gap: 14px; }
.bk-plan {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.bk-plan:hover { border-color: var(--gold); }
.bk-plan input { position: absolute; opacity: 0; pointer-events: none; }
.bk-plan-radio {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: var(--white);
  position: relative;
  flex-shrink: 0;
}
.bk-plan-radio::after {
  content: '';
  position: absolute; inset: 4px;
  border-radius: 50%;
  background: var(--text);
  transform: scale(0);
  transition: transform 0.2s ease;
}
.bk-plan:has(input:checked) {
  border-color: var(--text);
  background: var(--white);
  box-shadow: 0 6px 24px rgba(31,61,54,0.08);
}
.bk-plan:has(input:checked) .bk-plan-radio { border-color: var(--text); }
.bk-plan:has(input:checked) .bk-plan-radio::after { transform: scale(1); }
.bk-plan:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }

.bk-plan-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bk-plan-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold);
}
.bk-plan-name { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 500; }
.bk-plan-meta { font-size: 0.8rem; color: var(--text-soft); }
.bk-plan-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 500;
  white-space: nowrap;
}
.bk-plan-price.is-text { font-size: 0.95rem; color: var(--text-soft); }
.bk-plan-price small {
  display: block; margin-top: 4px;
  font-size: 0.8rem; color: var(--text-soft); text-align: right;
}
.bk-plan-badge {
  position: absolute; top: -11px; right: 22px;
  background: linear-gradient(135deg, var(--gold), #B8926A);
  color: var(--white);
  font-size: 9px; font-weight: 600;
  letter-spacing: 1.8px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px;
}

/* ─── FORM ───────────────────────────────────── */
.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.bk-field { margin-bottom: 20px; }
.bk-field > label {
  display: block;
  font-size: 0.82rem; font-weight: 500;
  margin-bottom: 8px;
}
.bk-optional { color: var(--text-soft); font-weight: 400; }
.bk-field input, .bk-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  font-family: inherit; font-size: 0.925rem;
  color: var(--text);
  transition: border-color 0.25s, background 0.25s;
}
.bk-field textarea { resize: vertical; min-height: 110px; }
.bk-field input:focus, .bk-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.bk-field input.invalid { border-color: var(--danger); }
.bk-error { display: block; color: var(--danger); font-size: 0.78rem; margin-top: 6px; min-height: 0; }
.bk-error:empty { margin: 0; }

.bk-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bk-slot { cursor: pointer; }
.bk-slot input { position: absolute; opacity: 0; pointer-events: none; }
.bk-slot span {
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 10px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  font-size: 0.9rem; font-weight: 500;
  transition: all 0.25s ease;
}
.bk-slot small { font-size: 0.75rem; font-weight: 400; color: var(--text-soft); }
/* Day-wise preferred times: the weekday above the name */
.bk-slot-day { font-size: 0.68rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.bk-slot input:checked + span .bk-slot-day { color: var(--gold-lt, #E8D5B0); }
.bk-slots-empty { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border: 1.5px dashed var(--border); border-radius: 12px; font-size: 0.85rem; color: var(--text-soft); }
.bk-slot:hover span { border-color: var(--gold); }
.bk-slot input:checked + span { background: var(--text); border-color: var(--text); color: var(--white); }
.bk-slot input:checked + span small { color: rgba(255,255,255,0.75); }
.bk-slot input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.bk-check {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.85rem; color: var(--text-soft);
  cursor: pointer;
}
.bk-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--text); flex-shrink: 0; }

/* Spam trap — hidden from people, filled in by bots */
.bk-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ─── BUTTONS ────────────────────────────────── */
.bk-actions {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.bk-actions-group { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.bk-actions-center { justify-content: center; flex-wrap: wrap; }
.bk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px;
  border-radius: 50px;
  font-family: inherit; font-size: 0.9rem; font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.3s ease;
}
.bk-btn-primary {
  background: var(--text); color: var(--white);
  box-shadow: 0 4px 20px rgba(31,61,54,0.2);
}
.bk-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(31,61,54,0.28); }
.bk-btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }
.bk-btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.bk-btn-ghost:hover { border-color: var(--gold); background: rgba(198,164,108,0.08); }
.bk-btn-block { width: 100%; }
.bk-link {
  background: none; border: none; padding: 0;
  font-family: inherit; font-size: 0.82rem; font-weight: 500;
  color: var(--gold); cursor: pointer;
}
.bk-link:hover { text-decoration: underline; }

/* ─── REVIEW ─────────────────────────────────── */
.bk-review { display: grid; gap: 16px; }
.bk-review-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 24px;
}
.bk-review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.bk-review-head h3 {
  font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin: 0;
}
.bk-review dl { margin: 0; display: grid; gap: 10px; }
.bk-review dl div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; font-size: 0.9rem; }
.bk-review dt { color: var(--text-soft); }
.bk-review dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; white-space: pre-line; }
.bk-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 20px; padding: 18px 24px;
  background: var(--text); color: var(--white);
  border-radius: var(--r);
}
.bk-total span { font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.bk-total strong { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 500; color: var(--gold-lt); }
.bk-secure { text-align: center; font-size: 0.8rem; color: var(--text-soft); margin: 16px 0 0; }

/* ─── DONE ───────────────────────────────────── */
.bk-done { text-align: center; }
.bk-done-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: var(--white); font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(198,164,108,0.35);
}
.bk-done .bk-panel-sub { max-width: 460px; margin-left: auto; margin-right: auto; }
.bk-ref {
  display: inline-flex; flex-direction: column; gap: 2px;
  padding: 14px 28px; margin-bottom: 24px;
  border: 1px dashed var(--gold);
  border-radius: 12px;
  background: var(--card-bg);
}
.bk-ref span { font-size: 0.75rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: 1.5px; }
.bk-ref strong { font-size: 1.2rem; letter-spacing: 1px; }
.bk-done .bk-btn-block { max-width: 380px; }
.bk-next {
  text-align: left;
  margin: 28px auto 0; max-width: 460px;
  padding: 22px 26px;
  background: var(--card-bg);
  border-radius: var(--r);
}
.bk-next h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 500; margin: 0 0 10px; }
.bk-next ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 0.875rem; color: var(--text-soft); }

.bk-receipt {
  max-width: 460px; margin: 0 auto 24px;
  display: grid; gap: 8px;
  text-align: left; font-size: 0.875rem;
}
.bk-receipt div {
  display: flex; justify-content: space-between; gap: 16px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.bk-receipt dt { color: var(--text-soft); }
.bk-receipt dd { margin: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }

/* ─── PAYMENT ────────────────────────────────── */
.bk-steps.no-pay .bk-step[data-step="4"] { display: none; }
.bk-steps.no-pay .bk-step[data-step="3"]::after { display: none; }

.bk-alert {
  margin-top: 20px; padding: 14px 18px;
  border-radius: 12px;
  background: rgba(181,84,74,0.08);
  border: 1px solid rgba(181,84,74,0.3);
  color: var(--danger);
  font-size: 0.875rem;
}
.bk-alert[hidden] { display: none; }

.bk-paycard {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.bk-paycard-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 24px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.bk-paycard-row span { color: var(--text-soft); }
.bk-paycard-row strong { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.bk-paycard-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 24px;
  background: var(--text); color: var(--white);
}
.bk-paycard-total span { font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.bk-paycard-total strong { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 500; color: var(--gold-lt); }

.bk-paymethods {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 20px 0 0;
}
.bk-paymethods span {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.75rem; color: var(--text-soft);
}
.bk-btn-pay { margin-top: 24px; padding: 16px 30px; font-size: 1rem; }

/* ─── SUMMARY ────────────────────────────────── */
.bk-summary {
  position: sticky; top: 94px;
  background: var(--text);
  color: var(--white);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.bk-summary .bk-label { color: var(--gold-lt); }
.bk-summary h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 500; line-height: 1.3;
  margin: 10px 0 4px;
}
.bk-sum-meta { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin: 0 0 18px; }
.bk-sum-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem; font-weight: 500; line-height: 1;
  color: var(--gold-lt);
}
.bk-sum-price sup { font-family: 'Inter', sans-serif; font-size: 1rem; vertical-align: super; }
.bk-sum-price .is-text { font-size: 1.4rem; }
.bk-sum-price small { display: block; margin-top: 10px; font-size: 1.1rem; }
.bk-sum-divider { height: 1px; background: rgba(255,255,255,0.15); margin: 22px 0 16px; }
.bk-sum-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.bk-sum-features li { display: flex; gap: 10px; font-size: 0.85rem; color: rgba(255,255,255,0.88); }
.bk-sum-features li::before { content: '✦'; color: var(--gold-lt); font-size: 0.75rem; margin-top: 3px; }
.bk-sum-trust {
  display: grid; gap: 4px;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.78rem; color: rgba(255,255,255,0.65);
}
.bk-sum-help { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin: 18px 0 0; }
.bk-sum-help a { color: var(--gold-lt); text-decoration: none; font-weight: 500; }
.bk-sum-help a:hover { text-decoration: underline; }

/* ─── FAQ ────────────────────────────────────── */
.bk-faq { max-width: 760px; margin: 64px auto 0; }
.bk-faq .bk-panel-title { text-align: center; margin-bottom: 20px; }
.bk-faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  padding: 0 22px;
}
.bk-faq summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0;
  font-weight: 500; font-size: 0.95rem;
  cursor: pointer;
}
.bk-faq summary::-webkit-details-marker { display: none; }
.bk-faq summary::after { content: '+'; font-size: 1.3rem; color: var(--gold); transition: transform 0.25s; }
.bk-faq details[open] summary::after { transform: rotate(45deg); }
.bk-faq details p { margin: 0 0 18px; font-size: 0.9rem; color: var(--text-soft); }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 960px) {
  .bk-layout { grid-template-columns: 1fr; }
  .bk-summary { position: static; order: -1; padding: 24px; }
  .bk-sum-features, .bk-sum-trust { display: none; }
  .bk-sum-divider { display: none; }
  .bk-sum-price { font-size: 1.9rem; }
  .bk-sum-help { margin-top: 14px; }
}
@media (max-width: 640px) {
  .bk-page { padding: 100px 16px 56px; }
  .bk-main { padding: 26px 18px; border-radius: 20px; }
  .bk-step-text { display: none; }
  .bk-step.active .bk-step-text { display: inline; }
  .bk-step:not(:last-child)::after { width: 24px; }
  .bk-plan { grid-template-columns: auto 1fr; padding: 18px; gap: 6px 14px; }
  .bk-plan-price { grid-column: 2; }
  .bk-plan-price small { text-align: left; }
  .bk-grid { grid-template-columns: 1fr; }
  .bk-slots { gap: 8px; }
  .bk-slot span { padding: 10px 4px; font-size: 0.85rem; }
  .bk-slot small { font-size: 0.7rem; }
  .bk-review-block { padding: 16px 18px; }
  .bk-review dl div { grid-template-columns: 1fr; gap: 2px; }
  .bk-paycard-row { flex-direction: column; gap: 2px; padding: 12px 18px; }
  .bk-paycard-row strong { text-align: left; }
  .bk-paycard-total { padding: 16px 18px; }
  .bk-actions { flex-direction: column-reverse; align-items: stretch; }
  .bk-actions .bk-btn { width: 100%; }
  .bk-actions-group { flex-direction: column-reverse; }
  .bk-actions .bk-link { text-align: center; }
  .bk-actions > span:empty { display: none; }
}

/* ─── COURSE VIDEO PAGE (watch.html) ─────────── */
.wt-page [hidden] { display: none !important; }
.wt-card {
  max-width: 440px; margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 32px 28px;
}
.wt-card .bk-alert { margin: 0 0 16px; }
.wt-card input#wtPassword { font-family: monospace; font-size: 1.15rem; letter-spacing: 3px; text-align: center; text-transform: uppercase; }
.wt-player { max-width: 960px; margin: 0 auto; }
.wt-frame {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--r); overflow: hidden;
  background: #10201c; box-shadow: var(--shadow);
}
.wt-frame iframe, .wt-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wt-frame.is-link { display: grid; place-items: center; aspect-ratio: auto; padding: 48px 16px; background: var(--white); }
.wt-note { text-align: center; color: var(--text-soft); font-size: 0.85rem; margin: 16px 0 0; }
@media (max-width: 640px) { .wt-card { padding: 26px 18px; } }
.wt-frame[hidden] { display: none; }
.wt-file {
  display: flex; align-items: center; gap: 16px;
  max-width: 520px; margin: 0 auto; padding: 22px 24px;
  background: var(--white); border-radius: var(--r); box-shadow: var(--shadow);
}
.wt-file-icon { font-size: 2rem; }
.wt-file strong { display: block; font-weight: 500; overflow-wrap: anywhere; }
.wt-file small { color: var(--text-soft); font-size: 0.82rem; }
.wt-actions { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.wt-actions [hidden] { display: none; }
.wt-remember { margin: -6px 0 16px; }
.wt-desc { max-width: 720px; margin: -16px auto 24px; text-align: center; color: var(--text-soft); }
.wt-desc[hidden] { display: none; }
