/* ============================================================
   LENDOLOGY BOOKING — Scoped under .bk
   Design system: Navy/Mint, DM Sans/Serif Display/Mono
   ============================================================ */

:root {
  --navy: #12253a;
  --navy-soft: #1a3050;
  --navy-fade: #2c4869;
  --mint: #1edcaa;
  --mint-soft: #d8f8ed;
  --mint-deep: #0fb088;
  --ink: #0d1b2a;
  --paper: #fbfaf7;
  --card: #ffffff;
  --line: #e8e6e0;
  --muted: #6b7785;
  --shadow-sm: 0 1px 2px rgba(18,37,58,0.04);
  --shadow-md: 0 4px 20px rgba(18,37,58,0.06);
  --shadow-lg: 0 24px 60px -20px rgba(18,37,58,0.18);
}

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

/* ============ MAIN LAYOUT ============ */
.bk .stage {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

.bk .crumb {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.bk .crumb .active { color: var(--navy); }

.bk .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 600px;
}

/* ============ LEFT PANEL (meeting context) ============ */
.bk .sidebar {
  background: var(--navy);
  color: white;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

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

.bk .broker-tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 12px;
}

.bk .broker-name {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.bk .broker-cred {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  margin-bottom: 36px;
}

.bk .meeting-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 18px;
  color: white;
}

.bk .meeting-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.bk .meta-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

.bk .meta-icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  stroke: var(--mint);
  fill: none;
  stroke-width: 1.5;
}

.bk .meeting-desc {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.bk .trust-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.5px;
}

.bk .stars {
  color: var(--mint);
  letter-spacing: 2px;
  font-size: 14px;
}

/* ============ RIGHT PANEL (steps) ============ */
.bk .panel {
  padding: 48px 56px;
  overflow-y: auto;
}

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

.bk .step-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mint-deep);
  margin-bottom: 10px;
}

.bk .step-title {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 8px;
}

.bk .step-sub {
  color: var(--muted);
  font-size: 15px;
}

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

.bk .cal-month {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--navy);
}

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

.bk .cal-arrow {
  background: transparent;
  border: 1px solid var(--line);
  width: 34px;
  height: 34px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: all 0.15s ease;
}

.bk .cal-arrow:hover { background: var(--paper); border-color: var(--navy-fade); }

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

.bk .cal-dow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding: 8px 0;
  letter-spacing: 1px;
}

.bk .cal-day {
  aspect-ratio: 1;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
  position: relative;
}

.bk .cal-day.available {
  background: var(--mint-soft);
  color: var(--navy);
  font-weight: 600;
}

.bk .cal-day.available:hover {
  background: var(--mint);
  color: var(--navy);
}

.bk .cal-day.weekend-appt {
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-weight: 400;
}

.bk .cal-day.weekend-appt:hover {
  border-color: var(--mint-deep);
  color: var(--navy);
}

.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); }

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

.bk .cal-legend {
  display: flex;
  gap: 20px;
  margin-top: 22px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

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

/* ============ TIME SLOTS ============ */
.bk .selected-date-banner {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--mint);
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bk .selected-date-banner .date-text {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: var(--navy);
}

.bk .selected-date-banner .change-btn {
  background: transparent;
  border: none;
  color: var(--mint-deep);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 8px;
}

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

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

.bk .slot {
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  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);
  background: var(--paper);
  transform: translateX(2px);
}

.bk .slot.selected {
  border-color: var(--mint-deep);
  background: var(--mint-soft);
}

.bk .slot-meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.bk .timezone-note {
  margin-top: 22px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
}

.bk .slots-loading {
  text-align: center;
  padding: 40px 0;
  color: var(--muted);
  font-size: 14px;
}

.bk .slots-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--muted);
  font-size: 14px;
}

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

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

.bk label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}

.bk label .required { color: var(--mint-deep); margin-left: 2px; }

.bk label .optional {
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
  font-size: 12px;
}

.bk input[type="text"],
.bk input[type="email"],
.bk input[type="tel"],
.bk select,
.bk textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: white;
  transition: border-color 0.15s ease;
}

.bk input:focus,
.bk select:focus,
.bk textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(18,37,58,0.06);
}

.bk textarea { resize: vertical; min-height: 80px; font-family: inherit; }

.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 14px center;
  padding-right: 36px;
}

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

.bk .radio-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
}

.bk .radio-card:hover { border-color: var(--navy-fade); }

.bk .radio-card.selected {
  border-color: var(--mint-deep);
  background: var(--mint-soft);
}

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

.bk .radio-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex-shrink: 0;
  position: relative;
}

.bk .radio-card.selected .radio-dot { border-color: var(--mint-deep); }

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

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

.bk .confidentiality {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px 18px;
  margin: 28px 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  display: flex;
  gap: 12px;
}

.bk .conf-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  stroke: var(--mint-deep);
  fill: none;
  stroke-width: 1.5;
}

/* ============ BUTTONS ============ */
.bk .action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.bk .btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  letter-spacing: 0.2px;
}

.bk .btn-primary {
  background: var(--navy);
  color: white;
}

.bk .btn-primary:hover {
  background: var(--navy-soft);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(18,37,58,0.18);
}

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

.bk .btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 10px 16px;
}

.bk .btn-ghost:hover { color: var(--navy); }

/* ============ CONFIRMATION ============ */
.bk .confirm-stage {
  grid-column: 1 / -1;
  padding: 64px 80px;
  text-align: center;
  background: white;
}

.bk .confirm-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  background: var(--mint-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

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

.bk .confirm-mark svg {
  width: 32px;
  height: 32px;
  stroke: var(--mint-deep);
  fill: none;
  stroke-width: 2.5;
}

.bk .confirm-title {
  font-family: 'DM Serif Display', serif;
  font-size: 42px;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.1;
}

.bk .confirm-sub {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 40px;
}

.bk .booking-summary {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 32px;
  text-align: left;
  max-width: 480px;
  margin: 0 auto 40px;
}

.bk .summary-title {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mint-deep);
  margin-bottom: 16px;
}

.bk .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.bk .summary-row:last-child { border-bottom: none; }
.bk .summary-label { color: var(--muted); }
.bk .summary-value { color: var(--navy); font-weight: 500; }

.bk .prep-list {
  max-width: 520px;
  margin: 0 auto 36px;
  text-align: left;
}

.bk .prep-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 18px;
  text-align: center;
}

.bk .prep-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.bk .prep-item:last-child { border-bottom: none; }

.bk .prep-num {
  font-family: 'DM Mono', monospace;
  color: var(--mint-deep);
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
  width: 24px;
}

.bk .prep-text {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.bk .prep-text strong { color: var(--navy); font-weight: 600; }

.bk .confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.bk .btn-cal {
  background: white;
  border: 1px solid var(--line);
  color: var(--navy);
  padding: 11px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
}

.bk .btn-cal:hover { border-color: var(--navy); }

.bk .reschedule-note {
  font-size: 13px;
  color: var(--muted);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 480px;
  margin: 0 auto;
}

.bk .reschedule-note a {
  color: var(--navy);
  font-weight: 500;
  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); }
}

/* ============ MEETING TYPE INDEX ============ */
.bk .mt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.bk .mt-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
}

.bk .mt-card:hover {
  border-color: var(--navy-fade);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.bk .mt-card .mt-duration {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mint-deep);
  margin-bottom: 12px;
}

.bk .mt-card .mt-name {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.2;
}

.bk .mt-card .mt-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}

.bk .mt-card .mt-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.bk .mt-card .mt-broker {
  color: var(--muted);
}

.bk .mt-card .mt-cta {
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
}

/* ============ ERROR / TOAST ============ */
.bk .toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--navy);
  color: white;
  padding: 14px 24px;
  border-radius: 4px;
  font-size: 14px;
  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 .topbar { padding: 14px 20px; }
  .bk .topbar-right { display: none; }

  .bk .stage { padding: 24px 16px 60px; }

  .bk .card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .bk .sidebar {
    padding: 28px 24px;
  }

  .bk .broker-name { font-size: 22px; }
  .bk .meeting-title { font-size: 18px; }

  .bk .panel { padding: 28px 20px; }

  .bk .step-title { font-size: 24px; }

  .bk .cal-legend { flex-wrap: wrap; gap: 12px; }

  .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: 12px; }
  .bk .action-row .btn { width: 100%; text-align: center; }

  .bk .confirm-stage { padding: 40px 20px; }
  .bk .confirm-title { font-size: 28px; }
  .bk .confirm-actions { flex-direction: column; }
  .bk .btn-cal { justify-content: center; }

  .bk .timezone-note { flex-direction: column; gap: 4px; }

  .bk .mt-grid { grid-template-columns: 1fr; }
}
