* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1a1a1a;
  background: #fff;
}

#bma-book { max-width: 860px; margin: 0 auto; }

.bk-section-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.bk-form-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
}

/* ── Filters ─────────────────────────────────────────────────── */

.bk-filters {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

.bk-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.bk-filter-row:last-child { margin-bottom: 0; }

.bk-filter-label {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  padding-top: 7px;
  min-width: 90px;
}

.bk-filter-loading {
  font-size: 12px;
  color: #9ca3af;
  padding-top: 6px;
}

.bk-chip-group { display: flex; flex-wrap: wrap; gap: 6px; }

.bk-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: 1.5px solid #d1d5db;
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  transition: all .15s;
  white-space: nowrap;
}

.bk-chip input[type=checkbox] { margin: 0; accent-color: #2563eb; }

.bk-chip:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

.bk-inst-more-row {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.bk-more-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 0;
  text-align: left;
  width: fit-content;
}
.bk-more-btn:hover { text-decoration: underline; }

.bk-select {
  padding: 7px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}

.bk-custom-dates {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: #374151;
}

.bk-date-input {
  padding: 5px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  color: #111827;
}

.bk-date-sep { color: #9ca3af; }

.bk-filter-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

/* ── Buttons ─────────────────────────────────────────────────── */

.bk-btn {
  padding: 9px 22px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}

.bk-btn:hover { background: #1d4ed8; }
.bk-btn:disabled { background: #9ca3af; cursor: default; }

.bk-btn-next { padding: 8px 18px; font-size: 14px; }

.bk-btn-submit {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  font-size: 15px;
}

.bk-btn-refresh {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color .15s;
}

.bk-btn-refresh:hover { color: #2563eb; }
.bk-btn-refresh:disabled { color: #d1d5db; cursor: default; }

.bk-back-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bk-back-btn:hover { color: #1d4ed8; }

/* ── Status ──────────────────────────────────────────────────── */

.bk-freshness { font-size: 12px; color: #9ca3af; margin-bottom: 14px; }

.bk-status-msg {
  text-align: center;
  padding: 32px 16px;
  color: #9ca3af;
  font-size: 15px;
}

.bk-status-err { color: #dc2626; }

/* ── Contact banner (skip CTA) ───────────────────────────────── */


.bk-contact-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 18px;
}

.bk-contact-banner.bk-has-slots {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.bk-contact-banner-text {
  font-size: 13px;
  color: #1e3a5f;
  line-height: 1.5;
  flex: 1;
  min-width: 0;
}

.bk-banner-slots-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #1e3a5f;
  margin-bottom: 6px;
}

.bk-banner-slot {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #1e40af;
  overflow: hidden;
  margin-top: 2px;
}

.bk-banner-slot-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bk-slot-remove {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  opacity: .7;
  flex-shrink: 0;
}
.bk-slot-remove:hover { opacity: 1; }

.bk-clear-btn {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 11px;
  cursor: pointer;
  padding: 6px 0 0;
  text-decoration: underline;
  display: block;
}
.bk-clear-btn:hover { color: #1e3a5f; }

.bk-btn-contact {
  background: #2563eb;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Teacher cards ───────────────────────────────────────────── */

.bk-cards {
  position: relative;
  margin-bottom: 80px;
  min-height: 10px;
}

.bk-card {
  box-sizing: border-box;
}

.bk-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 14px 12px;
  background: #fff;
  transition: box-shadow .15s;
}

.bk-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }

.bk-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.bk-card-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #e5e7eb;
}

.bk-card-header-text { flex: 1; min-width: 0; }

.bk-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2px;
}

.bk-card-rate {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.bk-card-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }

.bk-card-bio {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 10px;
}

.bk-badge {
  display: inline-block;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.bk-badge-inst    { background: #dbeafe; color: #1e40af; }
.bk-badge-remote  { background: #f3f4f6; color: #6b7280; }
.bk-badge-room    { background: #f3f4f6; color: #374151; }
.bk-badge-piano   { background: #d1fae5; color: #065f46; }
.bk-badge-guitar  { background: #e0f2fe; color: #0c4a6e; }
.bk-badge-drums   { background: #fce7f3; color: #831843; }
.bk-badge-voice   { background: #ede9fe; color: #4c1d95; }
.bk-badge-strings { background: #fef3c7; color: #92400e; }
.bk-badge-bass    { background: #f0fdf4; color: #166534; }
.bk-badge-winds   { background: #fff7ed; color: #9a3412; }

/* ── Date groups & slots ─────────────────────────────────────── */

.bk-date-group { margin-bottom: 10px; }

.bk-date-label {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 5px;
}

.bk-slot-row { display: flex; flex-wrap: wrap; gap: 5px; }

.bk-slot {
  padding: 4px 10px;
  border: 1.5px solid #86efac;
  border-radius: 20px;
  background: #f0fdf4;
  color: #166534;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}

.bk-slot:hover { background: #dcfce7; border-color: #4ade80; }
.bk-slot.selected { background: #16a34a; color: #fff; border-color: #16a34a; }

/* ── Bottom bar (skip + summary) ─────────────────────────────── */


/* ── Selected slots summary (Panel B) ───────────────────────── */

.bk-selected-summary {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 20px;
}

.bk-selected-summary-title {
  font-size: 12px;
  font-weight: 700;
  color: #166534;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}

.bk-selected-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #065f46;
  padding: 2px 0;
}

.bk-selected-item::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  flex-shrink: 0;
}

.bk-selected-item--none {
  color: #9ca3af;
  font-style: italic;
}
.bk-selected-item--none::before { background: #d1d5db; }

/* ── Contact form ────────────────────────────────────────────── */

.bk-form-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 6px;
  margin-bottom: 14px;
}

.bk-field-hint {
  font-weight: 400;
  color: #9ca3af;
  font-size: 11px;
}

.bk-select-field {
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}

.bk-sms-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 4px;
  font-size: 11px;
  color: #6b7280;
  line-height: 1.5;
  cursor: pointer;
}
.bk-sms-consent input[type=checkbox] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #2563eb;
}

.bk-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.bk-field { display: flex; flex-direction: column; gap: 5px; }
.bk-field-full { grid-column: 1 / -1; }

.bk-field label { font-size: 13px; font-weight: 600; color: #374151; }

.bk-req { color: #dc2626; }

.bk-field input,
.bk-field textarea,
.bk-field select {
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.bk-field input:focus,
.bk-field textarea:focus {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
  border-color: transparent;
}

.bk-field textarea { resize: vertical; }

.bk-form-error { color: #dc2626; font-size: 13px; padding: 10px 0; }

.cf-turnstile { margin: 16px 0 4px; }

/* ── View profile button (on card) ──────────────────────────── */

.bk-view-profile {
  display: inline-block;
  margin-top: 10px;
  background: none;
  border: none;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.bk-view-profile:hover { text-decoration: underline; }

/* ── Modal overlay ───────────────────────────────────────────── */

#bk-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
}

#bk-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 560px;
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  margin: auto;
}

.bk-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
}
.bk-modal-close:hover { color: #111827; background: #f3f4f6; }

/* ── Modal content ───────────────────────────────────────────── */

.bk-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.bk-modal-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #e5e7eb;
}

.bk-modal-header-text { flex: 1; }

.bk-modal-name {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 3px;
}

.bk-modal-rate {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
}

.bk-modal-badges { display: flex; flex-wrap: wrap; gap: 4px; }

.bk-modal-bio {
  font-size: 14px;
  color: #374151;
  line-height: 1.65;
  margin-bottom: 20px;
}
.bk-modal-bio p { margin: 0 0 1em; }
.bk-modal-bio p:last-child { margin-bottom: 0; }

.bk-modal-cancel-policy {
  margin-bottom: 20px;
}
.bk-modal-cancel-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
  margin-bottom: 12px;
}
.bk-modal-cancel-text {
  font-size: 14px;
  color: #111827;
  line-height: 1.6;
}

.bk-modal-video {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  max-width: 320px;
}
.bk-modal-video img { width: 100%; display: block; }
.bk-modal-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 40px;
  transition: background .15s;
}
.bk-modal-video:hover .bk-modal-play { background: rgba(0,0,0,.5); }

.bk-modal-video-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #2563eb;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.bk-modal-video-link:hover { text-decoration: underline; }

.bk-modal-slots-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
  margin-bottom: 12px;
}

/* ── Success panel ───────────────────────────────────────────── */

.bk-success { text-align: center; padding: 48px 24px; }
.bk-success-icon { font-size: 48px; color: #16a34a; margin-bottom: 12px; }
.bk-success-title { font-size: 22px; font-weight: 700; color: #111827; margin-bottom: 8px; }
.bk-success-body { font-size: 15px; color: #6b7280; margin-bottom: 24px; }

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 480px) {
  .bk-form-grid { grid-template-columns: 1fr; }
  .bk-filter-label { min-width: 0; width: 100%; }
}
