/* ============================================================
   Visionmachine — booking modal
   Fullscreen pop-up for workshop details + booking + payment
   ============================================================ */

/* ---------- Trigger affordance on the workshop card ---------- */
.ws-card { cursor: pointer; }
.ws-card .ws-foot::after {
  content: "View · book →";
  margin-left: auto;
  opacity: .5;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.ws-card:hover .ws-foot::after { opacity: 1; transform: translateX(2px); }

/* ---------- Modal shell ---------- */
.bk-modal {
  position: fixed; inset: 0;
  z-index: 9000;
  display: none;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(245,242,236,.4) transparent;
}
.bk-modal.is-open { display: block; animation: bk-fade .3s var(--ease); }
@keyframes bk-fade { from { opacity: 0; } to { opacity: 1; } }
body.bk-locked { overflow: hidden; }

.bk-shell {
  max-width: 1100px;
  margin: 4vh auto;
  background: #4800ff;
  border: 1px solid rgba(245,242,236,.18);
  border-radius: 8px;
  position: relative;
  animation: bk-rise .4s var(--ease);
}
@keyframes bk-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 720px) {
  .bk-shell { margin: 0; border-radius: 0; min-height: 100vh; }
}

/* ---------- Top bar (close + step indicator) ---------- */
.bk-top {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 28px;
  background: #4800ff;
  border-bottom: 1px solid rgba(245,242,236,.12);
}
.bk-top-left {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  opacity: .6;
}
.bk-step-dots { display: flex; gap: 8px; }
.bk-step-dot {
  width: 22px; height: 4px; background: rgba(245,242,236,.25); border-radius: 2px;
  transition: background .3s;
}
.bk-step-dot.is-active { background: var(--fg); }
.bk-step-dot.is-done   { background: rgba(245,242,236,.6); }
.bk-close {
  background: transparent; border: 1px solid rgba(245,242,236,.4);
  color: var(--fg); width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; display: grid; place-items: center;
  transition: background .2s, transform .2s;
}
.bk-close:hover { background: rgba(245,242,236,.1); transform: rotate(90deg); }

/* ---------- Step container ---------- */
.bk-step { display: none; padding: 36px 28px 56px; }
.bk-step.is-active { display: block; }
@media (min-width: 720px) {
  .bk-step { padding: 48px 56px 64px; }
}

/* ---------- Step 1: Hero ---------- */
.bk-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 32px;
}
@media (max-width: 820px) {
  .bk-hero { grid-template-columns: 1fr; gap: 24px; }
}
.bk-hero-img {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: 4px; overflow: hidden;
  background: rgba(245,242,236,.05);
}
.bk-hero-img img,
.bk-hero-img .placeholder { width: 100%; height: 100%; object-fit: cover; display: block; }
.bk-hero-tag {
  position: absolute; left: 14px; top: 14px;
  background: rgba(72, 0, 255, .85);
  border: 1px solid rgba(245,242,236,.4);
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 99px;
}
.bk-hero-text .bk-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  opacity: .6; margin-bottom: 16px;
}
.bk-hero-text h2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 500;
  line-height: 1; letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-wrap: balance;
}
.bk-hero-text .bk-tagline {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4; opacity: .85;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.bk-price-row {
  display: flex; align-items: baseline; gap: 24px;
  padding-top: 20px; border-top: 1px solid rgba(245,242,236,.18);
  margin-bottom: 24px;
}
.bk-price { font-size: 36px; font-weight: 500; letter-spacing: -0.02em; }
.bk-price-meta { font-family: "JetBrains Mono", monospace; font-size: 11px; opacity: .6; letter-spacing: .08em; text-transform: uppercase; }
.bk-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--fg); color: #4800ff;
  border: none; cursor: pointer;
  padding: 16px 28px; border-radius: 99px;
  font-family: inherit; font-size: 15px; font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform .2s, background .2s;
}
.bk-cta:hover { transform: translateY(-2px); }
.bk-cta:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.bk-cta.bk-cta--ghost {
  background: transparent; color: var(--fg);
  border: 1px solid rgba(245,242,236,.5);
}
.bk-cta.bk-cta--ghost:hover { background: rgba(245,242,236,.1); }

/* ---------- Quick facts strip ---------- */
.bk-facts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: rgba(245,242,236,.18);
  border: 1px solid rgba(245,242,236,.18);
  margin: 36px 0;
}
@media (max-width: 820px) { .bk-facts { grid-template-columns: repeat(2, 1fr); } }
.bk-fact {
  background: #4800ff;
  padding: 18px 16px;
}
.bk-fact dt {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  opacity: .55; margin-bottom: 6px;
}
.bk-fact dd { margin: 0; font-size: 15px; line-height: 1.3; font-weight: 500; }

/* ---------- Section blocks ---------- */
.bk-section { margin: 48px 0; }
.bk-section h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500; letter-spacing: -0.01em;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(245,242,236,.18);
}
.bk-section p { line-height: 1.55; opacity: .9; max-width: 70ch; }

.bk-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 14px;
}
.bk-list li {
  position: relative;
  padding-left: 28px;
  line-height: 1.5;
  opacity: .9;
}
.bk-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 16px; height: 1px; background: var(--fg);
}

/* tools grid */
.bk-tools {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: rgba(245,242,236,.18);
  border: 1px solid rgba(245,242,236,.18);
}
@media (max-width: 720px) { .bk-tools { grid-template-columns: 1fr; } }
.bk-tool { background: #4800ff; padding: 16px 18px; }
.bk-tool-name { font-weight: 500; margin-bottom: 4px; }
.bk-tool-note { font-size: 13px; opacity: .65; }

/* instructor */
.bk-instr {
  display: grid; grid-template-columns: 160px 1fr; gap: 24px;
  align-items: start;
}
@media (max-width: 600px) { .bk-instr { grid-template-columns: 1fr; } }
.bk-instr-photo {
  aspect-ratio: 1; width: 100%; border-radius: 50%;
  overflow: hidden; background: rgba(245,242,236,.05);
}
.bk-instr-photo img,
.bk-instr-photo .placeholder { width: 100%; height: 100%; object-fit: cover; display: block; }
.bk-instr-name { font-size: 22px; font-weight: 500; margin: 0 0 4px; }
.bk-instr-role {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  opacity: .6; margin: 0 0 12px;
}
.bk-instr-bio { line-height: 1.55; opacity: .9; max-width: 60ch; }

/* faq */
.bk-faq-item {
  border-bottom: 1px solid rgba(245,242,236,.18);
}
.bk-faq-q {
  width: 100%; text-align: left; cursor: pointer;
  background: transparent; border: 0; color: var(--fg);
  padding: 18px 32px 18px 0;
  font: inherit; font-size: 16px; font-weight: 500;
  position: relative;
  transition: opacity .2s;
}
.bk-faq-q:hover { opacity: .8; }
.bk-faq-q::after {
  content: "+"; position: absolute; right: 4px; top: 18px;
  font-size: 22px; line-height: 1; transition: transform .3s;
}
.bk-faq-item.is-open .bk-faq-q::after { transform: rotate(45deg); }
.bk-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s var(--ease);
}
.bk-faq-item.is-open .bk-faq-a { max-height: 400px; }
.bk-faq-a-inner {
  padding: 0 0 18px;
  line-height: 1.55; opacity: .85; max-width: 70ch;
}

/* testimonials */
.bk-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .bk-quotes { grid-template-columns: 1fr; } }
.bk-quote {
  padding: 24px;
  background: rgba(245,242,236,.06);
  border: 1px solid rgba(245,242,236,.18);
  border-radius: 4px;
}
.bk-quote blockquote {
  margin: 0 0 16px;
  font-size: 17px; line-height: 1.45;
  font-style: italic;
  text-wrap: pretty;
}
.bk-quote cite {
  font-style: normal;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
  opacity: .7;
  display: block;
}

/* sticky bottom CTA on step 1 */
.bk-step1-foot {
  margin-top: 48px;
  padding: 28px;
  background: rgba(245,242,236,.08);
  border-radius: 4px;
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 20px;
}
.bk-step1-foot .bk-foot-left { display: flex; flex-direction: column; gap: 4px; }
.bk-step1-foot .bk-foot-price { font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.bk-step1-foot .bk-foot-note {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; opacity: .6;
}

/* ---------- Step 2: Booking form ---------- */
.bk-form { max-width: 640px; }
.bk-form h2 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.05;
  margin: 0 0 8px;
}
.bk-form-led { opacity: .8; line-height: 1.5; margin: 0 0 32px; }

.bk-field {
  display: block;
  background: rgba(245,242,236,.08);
  border: 1px solid rgba(245,242,236,.18);
  border-radius: 4px;
  padding: 14px 16px 12px;
  margin-bottom: 14px;
  transition: border-color .2s, background .2s;
}
.bk-field:focus-within {
  border-color: rgba(245,242,236,.5);
  background: rgba(245,242,236,.12);
}
.bk-field-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  opacity: .6; margin-bottom: 4px; display: block;
}
.bk-field input,
.bk-field textarea,
.bk-field select {
  width: 100%; background: transparent; border: 0;
  color: var(--fg); font: inherit; font-size: 16px;
  padding: 0; outline: none;
  font-family: inherit;
}
.bk-field textarea { min-height: 88px; resize: vertical; }
.bk-row-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 600px) { .bk-row-2 { grid-template-columns: 1fr; } }

.bk-form-foot {
  display: flex; gap: 14px; margin-top: 24px;
  flex-wrap: wrap; align-items: center;
}
.bk-form-error {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(255, 80, 80, .15);
  border: 1px solid rgba(255, 80, 80, .4);
  border-radius: 4px;
  font-size: 14px;
  display: none;
}
.bk-form-error.is-shown { display: block; }

/* ---------- Step 3: Payment ---------- */
.bk-pay-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px;
  align-items: start;
}
@media (max-width: 820px) { .bk-pay-grid { grid-template-columns: 1fr; } }

.bk-pay h2 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 24px;
}

.bk-summary {
  background: rgba(245,242,236,.08);
  border: 1px solid rgba(245,242,236,.18);
  border-radius: 4px;
  padding: 24px;
  position: sticky; top: 80px;
}
.bk-summary h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  opacity: .6; margin: 0 0 16px;
}
.bk-summary-row {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(245,242,236,.12);
  font-size: 14px;
}
.bk-summary-row:last-of-type { border: 0; }
.bk-summary-row.bk-total {
  margin-top: 12px; padding-top: 18px;
  border-top: 1px solid rgba(245,242,236,.4);
  font-size: 18px; font-weight: 500;
}

.bk-pay-methods { display: grid; gap: 14px; }
.bk-pay-loader {
  display: flex; align-items: center; gap: 10px;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; opacity: .6;
  padding: 14px 0;
}
.bk-pay-loader::before {
  content: ""; width: 12px; height: 12px;
  border: 2px solid rgba(245,242,236,.3);
  border-top-color: var(--fg);
  border-radius: 50%;
  animation: bk-spin .8s linear infinite;
}
@keyframes bk-spin { to { transform: rotate(360deg); } }

.bk-pay-divider {
  display: flex; align-items: center; gap: 14px;
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase; opacity: .5;
  margin: 8px 0;
}
.bk-pay-divider::before, .bk-pay-divider::after {
  content: ""; flex: 1; height: 1px; background: rgba(245,242,236,.18);
}

.bk-paypal-mount { min-height: 48px; }

.bk-pay-note {
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase;
  opacity: .5; line-height: 1.6; margin-top: 16px;
}
.bk-pay-back {
  background: transparent; border: 0; color: var(--fg);
  cursor: pointer; padding: 12px 0; opacity: .7;
  font: inherit; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px;
}
.bk-pay-back:hover { opacity: 1; }

/* ---------- Step 4: Confirmation ---------- */
.bk-done { text-align: center; max-width: 580px; margin: 40px auto; }
.bk-done-mark {
  width: 72px; height: 72px;
  border: 2px solid var(--fg);
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 24px;
}
.bk-done h2 {
  font-size: clamp(34px, 5vw, 48px); font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.05;
  margin: 0 0 14px;
}
.bk-done p { line-height: 1.55; opacity: .85; margin: 0 0 8px; }
.bk-done .bk-done-meta {
  margin-top: 24px; padding: 18px;
  background: rgba(245,242,236,.08);
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace; font-size: 12px;
  letter-spacing: .04em; line-height: 1.6;
  text-align: left;
}
.bk-done .bk-cta { margin-top: 28px; }
