/* ============================================================
   LENDOLOGY BOOKING — Scoped under .bk
   Inherits site variables from lendology.css
   ============================================================ */

.bk {
  font-family: 'DM Sans', sans-serif;
  color: var(--text, #0d1b2a);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ============ MAIN LAYOUT ============ */
.bk .stage {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.bk .crumb {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft, #718096);
  margin-bottom: 20px;
}

.bk .crumb .active { color: var(--navy, #12253a); }

.bk .card {
  background: var(--white, #fff);
  border: 1px solid var(--border-mid, rgba(18,37,58,.14));
  border-radius: var(--r-lg, 14px);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  overflow: hidden;
  display: block;
}

/* ============ MEETING HEADER (replaces sidebar) ============ */
.bk .sidebar {
  background: var(--navy-deep, #0c1d2e);
  color: white;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.bk .sidebar::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(30,220,170,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.bk .broker-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint, #1edcaa);
  margin-bottom: 8px;
}

.bk .broker-name {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
}

.bk .broker-cred {
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  margin-bottom: 20px;
}

.bk .meeting-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  color: white;
}

.bk .meeting-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.bk .meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

.bk .meta-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: var(--mint, #1edcaa);
  fill: none;
  stroke-width: 1.5;
}

.bk .meeting-desc {
  color: rgba(255,255,255,0.6);
  font-size: 12.5px;
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  position: relative;
  z-index: 2;
}

.bk .trust-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.bk .stars {
  color: var(--mint, #1edcaa);
  letter-spacing: 2px;
  font-size: 13px;
}

/* ============ STEP PANEL ============ */
.bk .panel {
  padding: 32px;
}

.bk .step-head { margin-bottom: 24px; }

.bk .step-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint-dark, #0fb389);
  margin-bottom: 8px;
}

.bk .step-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy, #12253a);
  margin-bottom: 6px;
}

.bk .step-sub {
  color: var(--text-mid, #4a5568);
  font-size: 14px;
}

/* ============ CALENDAR ============ */
.bk .cal-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.bk .cal-month {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy, #12253a);
}

.bk .cal-nav { display: flex; gap: 4px; }

.bk .cal-arrow {
  background: transparent;
  border: 1px solid var(--border, rgba(18,37,58,.08));
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm, 6px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy, #12253a);
  transition: all 0.15s ease;
}

.bk .cal-arrow:hover { background: var(--fog, #f5f7fa); border-color: var(--border-mid, rgba(18,37,58,.14)); }

.bk .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.bk .cal-dow {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft, #718096);
  text-align: center;
  padding: 8px 0;
  letter-spacing: 0.06em;
}

.bk .cal-day {
  aspect-ratio: 1;
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--r-sm, 6px);
  font-size: 14px;
  font-weight: 500;
  color: var(--text, #0d1b2a);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}

.bk .cal-day.available {
  background: var(--mint-light, #e6fdf5);
  color: var(--navy, #12253a);
  font-weight: 600;
}

.bk .cal-day.available:hover {
  background: var(--mint, #1edcaa);
  color: var(--navy, #12253a);
}

.bk .cal-day.weekend-appt {
  background: transparent;
  border: 1px dashed var(--border, rgba(18,37,58,.08));
  color: var(--text-soft, #718096);
}

.bk .cal-day.weekend-appt:hover {
  border-color: var(--mint-dark, #0fb389);
  color: var(--navy, #12253a);
}

.bk .cal-day.unavailable {
  color: #c5c8cd;
  cursor: not-allowed;
  pointer-events: none;
}

.bk .cal-day.past {
  color: #d5d8dd;
  cursor: not-allowed;
  pointer-events: none;
}

.bk .cal-day.today { border-color: var(--navy, #12253a); }

.bk .cal-day.selected {
  background: var(--navy, #12253a);
  color: white;
  font-weight: 600;
}

.bk .cal-legend {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft, #718096);
  letter-spacing: 0.04em;
}

.bk .legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}

/* ============ TIME SLOTS ============ */
.bk .selected-date-banner {
  background: var(--fog, #f5f7fa);
  border: 1px solid var(--border, rgba(18,37,58,.08));
  border-left: 3px solid var(--mint, #1edcaa);
  padding: 12px 16px;
  border-radius: var(--r-sm, 6px);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bk .selected-date-banner .date-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy, #12253a);
}

.bk .selected-date-banner .change-btn {
  background: transparent;
  border: none;
  color: var(--mint-dark, #0fb389);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.bk .selected-date-banner .change-btn:hover { text-decoration: underline; }

.bk .slots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bk .slot {
  background: white;
  border: 1px solid var(--border, rgba(18,37,58,.08));
  border-radius: var(--r-sm, 6px);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy, #12253a);
  cursor: pointer;
  text-align: left;
  transition: all 0.12s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bk .slot:hover {
  border-color: var(--navy, #12253a);
  background: var(--fog, #f5f7fa);
}

.bk .slot.selected {
  border-color: var(--mint-dark, #0fb389);
  background: var(--mint-light, #e6fdf5);
}

.bk .slot-meta {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-soft, #718096);
  letter-spacing: 0.04em;
}

.bk .timezone-note {
  margin-top: 18px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft, #718096);
  display: flex;
  justify-content: space-between;
}

.bk .slots-loading, .bk .slots-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-soft, #718096);
  font-size: 14px;
}

/* ============ FORM ============ */
.bk .form-group { margin-bottom: 18px; }

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

.bk label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy, #12253a);
  margin-bottom: 5px;
}

.bk label .required { color: var(--mint-dark, #0fb389); margin-left: 2px; }
.bk label .optional { font-weight: 400; color: var(--text-soft, #718096); margin-left: 6px; font-size: 11px; }

.bk input[type="text"],
.bk input[type="email"],
.bk input[type="tel"],
.bk select,
.bk textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border, rgba(18,37,58,.08));
  border-radius: var(--r-md, 10px);
  font-family: inherit;
  font-size: 14px;
  color: var(--text, #0d1b2a);
  background: var(--fog, #f5f7fa);
  transition: border-color 0.15s ease;
}

.bk input:focus, .bk select:focus, .bk textarea:focus {
  outline: none;
  border-color: var(--mint, #1edcaa);
  background: white;
}

.bk textarea { resize: vertical; min-height: 70px; }

.bk select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2312253a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.bk .radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bk .radio-card {
  border: 1.5px solid var(--border, rgba(18,37,58,.08));
  border-radius: var(--r-md, 10px);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--fog, #f5f7fa);
}

.bk .radio-card:hover { border-color: var(--border-mid, rgba(18,37,58,.14)); }

.bk .radio-card.selected {
  border-color: var(--mint, #1edcaa);
  background: var(--mint-light, #e6fdf5);
}

.bk .radio-card input { display: none; }

.bk .radio-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-mid, rgba(18,37,58,.14));
  flex-shrink: 0;
  position: relative;
}

.bk .radio-card.selected .radio-dot { border-color: var(--mint-dark, #0fb389); }
.bk .radio-card.selected .radio-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--mint-dark, #0fb389);
  border-radius: 50%;
}

.bk .radio-label { font-size: 14px; font-weight: 500; color: var(--navy, #12253a); }

.bk .confidentiality {
  background: var(--fog, #f5f7fa);
  border: 1px solid var(--border, rgba(18,37,58,.08));
  border-radius: var(--r-md, 10px);
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 12.5px;
  color: var(--text-mid, #4a5568);
  line-height: 1.6;
  display: flex;
  gap: 10px;
}

.bk .conf-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  stroke: var(--mint-dark, #0fb389);
  fill: none;
  stroke-width: 1.5;
}

/* ============ BUTTONS ============ */
.bk .action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border, rgba(18,37,58,.08));
}

.bk .btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.17s ease;
  border: none;
}

.bk .btn-primary {
  background: var(--mint, #1edcaa);
  color: var(--navy, #12253a);
}

.bk .btn-primary:hover {
  background: var(--mint-dark, #0fb389);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(30,220,170,.3);
}

.bk .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.bk .btn-ghost {
  background: transparent;
  color: var(--text-soft, #718096);
  padding: 10px 16px;
}

.bk .btn-ghost:hover { color: var(--navy, #12253a); }

/* ============ CONFIRMATION ============ */
.bk .confirm-stage {
  padding: 48px 32px;
  text-align: center;
  background: white;
}

.bk .confirm-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: var(--mint-light, #e6fdf5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bk .confirm-mark::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid var(--mint, #1edcaa);
  border-radius: 50%;
  opacity: 0.4;
}

.bk .confirm-mark svg {
  width: 28px;
  height: 28px;
  stroke: var(--mint-dark, #0fb389);
  fill: none;
  stroke-width: 2.5;
}

.bk .confirm-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--navy, #12253a);
  margin-bottom: 8px;
  line-height: 1.1;
}

.bk .confirm-sub {
  color: var(--text-mid, #4a5568);
  font-size: 15px;
  margin-bottom: 32px;
}

.bk .booking-summary {
  background: var(--fog, #f5f7fa);
  border: 1px solid var(--border, rgba(18,37,58,.08));
  border-radius: var(--r-lg, 14px);
  padding: 24px 28px;
  text-align: left;
  max-width: 440px;
  margin: 0 auto 32px;
}

.bk .summary-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint-dark, #0fb389);
  margin-bottom: 14px;
}

.bk .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border, rgba(18,37,58,.08));
  font-size: 13px;
}

.bk .summary-row:last-child { border-bottom: none; }
.bk .summary-label { color: var(--text-soft, #718096); }
.bk .summary-value { color: var(--navy, #12253a); font-weight: 600; }

.bk .prep-list { max-width: 480px; margin: 0 auto 28px; text-align: left; }
.bk .prep-title { font-size: 18px; font-weight: 800; color: var(--navy, #12253a); margin-bottom: 14px; text-align: center; }
.bk .prep-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border, rgba(18,37,58,.08)); align-items: flex-start; }
.bk .prep-item:last-child { border-bottom: none; }
.bk .prep-num { color: var(--mint-dark, #0fb389); font-size: 13px; font-weight: 700; flex-shrink: 0; width: 22px; }
.bk .prep-text { color: var(--text, #0d1b2a); font-size: 13px; line-height: 1.55; }
.bk .prep-text strong { color: var(--navy, #12253a); font-weight: 700; }

.bk .confirm-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.bk .btn-cal { background: white; border: 1px solid var(--border, rgba(18,37,58,.08)); color: var(--navy, #12253a); padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; font-family: inherit; }
.bk .btn-cal:hover { border-color: var(--navy, #12253a); }

.bk .reschedule-note { font-size: 12px; color: var(--text-soft, #718096); padding-top: 20px; border-top: 1px solid var(--border, rgba(18,37,58,.08)); max-width: 440px; margin: 0 auto; }
.bk .reschedule-note a { color: var(--navy, #12253a); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ============ STEP TRANSITIONS ============ */
.bk .step { display: none; animation: bk-fadeIn 0.25s ease; }
.bk .step.active { display: block; }
@keyframes bk-fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ============ TOAST ============ */
.bk .toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--navy, #12253a); color: white; padding: 14px 24px; border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 1000; transition: transform 0.3s ease; max-width: 480px; text-align: center; }
.bk .toast.show { transform: translateX(-50%) translateY(0); }
.bk .toast.error { background: #c0392b; }

/* ============ MOBILE ============ */
@media (max-width: 768px) {
  .bk .stage { padding: 20px 12px 48px; }
  .bk .sidebar { padding: 20px; }
  .bk .panel { padding: 24px 16px; }
  .bk .step-title { font-size: 1.3rem; }
  .bk .cal-legend { flex-wrap: wrap; gap: 10px; }
  .bk .slots-grid { grid-template-columns: 1fr; }
  .bk .form-row { grid-template-columns: 1fr; }
  .bk .radio-group { grid-template-columns: 1fr; }
  .bk .action-row { flex-direction: column-reverse; gap: 10px; }
  .bk .action-row .btn { width: 100%; text-align: center; }
  .bk .confirm-stage { padding: 32px 16px; }
  .bk .confirm-actions { flex-direction: column; }
  .bk .btn-cal { justify-content: center; }
  .bk .timezone-note { flex-direction: column; gap: 4px; }
}
