/* Booking page — visual language from booking page.html (Tax Cottage reference).
   Scoped under .bk so site header/footer styles stay untouched. */

.bk {
  --teal-primary: #0f6b6b;
  --teal-dark: #094f4f;
  --teal-light: #e6f0f0;
  --teal-accent: #1a8585;
  --text-dark: #1f2d2d;
  --text-body: #3a4a4a;
  --text-muted: #8a9696;
  --bg-page: #ffffff;
  --border-light: #e2e7e7;
  --border-input: #d4dbdb;
  --shadow-card: 0 1px 3px rgba(15, 107, 107, 0.06), 0 1px 2px rgba(15, 107, 107, 0.04);
  --shadow-card-hover: 0 4px 12px rgba(15, 107, 107, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.5;
}

/* Page shell comes from the site's .section/.container; only wizard-specific
   spacing lives here. */
.bk .booking-layout,
.bk .bk-offline {
  margin-top: 14px;
}

.bk .page-intro {
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 40px;
  max-width: 620px;
}

.bk .booking-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

/* Step indicator */
.bk .step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
}

/* Items keep natural width; only the connector lines flex, so both
   lines come out exactly equal regardless of label length */
.bk .step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.bk .step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.25s;
}

.bk .step-dot.active,
.bk .step-dot.completed {
  border-color: var(--teal-primary);
  background: var(--teal-primary);
  color: #fff;
}

.bk .step-dot.completed::after {
  content: '✓';
  font-size: 13px;
  line-height: 1;
}

.bk .step-dot.completed span { display: none; }

.bk .step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.bk .step-label.active { color: var(--teal-primary); }

.bk .step-line {
  flex: 1 1 0;
  height: 2px;
  background: var(--border-light);
  margin: 0 8px;
  transition: background 0.25s;
}

.bk .step-line.completed { background: var(--teal-primary); }

/* Cards */
.bk .booking-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-card);
}

.bk .card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 20px;
}

.bk .step-panel { display: none; }
.bk .step-panel.active { display: block; }

/* Meeting types */
.bk .meeting-types {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bk .meeting-type-card {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
}

.bk .meeting-type-card:hover {
  border-color: var(--teal-primary);
  box-shadow: var(--shadow-card-hover);
}

.bk .meeting-type-card.selected {
  border-color: var(--teal-primary);
  background: var(--teal-light);
}

.bk .meeting-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.bk .meeting-type-card.selected .meeting-icon { background: var(--teal-primary); }
.bk .meeting-icon svg { width: 18px; height: 18px; color: var(--teal-primary); }
.bk .meeting-type-card.selected .meeting-icon svg { color: #fff; }

.bk .meeting-info { flex: 1; }
.bk .meeting-name { font-weight: 700; color: var(--text-dark); font-size: 15px; margin-bottom: 3px; }
.bk .meeting-desc { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.bk .meeting-meta { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }

.bk .meeting-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal-primary);
  background: #fff;
  border: 1px solid var(--border-light);
  padding: 2px 8px;
  border-radius: 999px;
}

.bk .meeting-type-card.selected .meeting-badge {
  background: var(--teal-primary);
  color: #fff;
  border-color: var(--teal-primary);
}

/* Calendar */
.bk .calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.bk .calendar-month { font-weight: 700; color: var(--text-dark); font-size: 16px; }

.bk .cal-nav-btn {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  transition: all 0.15s;
  padding: 0;
}

.bk .cal-nav-btn:hover:not(:disabled) {
  border-color: var(--teal-primary);
  color: var(--teal-primary);
}

.bk .cal-nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.bk .cal-nav-btn svg { width: 16px; height: 16px; }

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

.bk .cal-day-header {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 4px 0 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.bk .cal-day {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s;
  color: var(--text-dark);
  position: relative;
}

.bk .cal-day:hover:not(.disabled):not(.empty) {
  border-color: var(--teal-primary);
  color: var(--teal-primary);
  background: var(--teal-light);
}

.bk .cal-day.selected {
  background: var(--teal-primary);
  color: #fff;
  border-color: var(--teal-primary);
}

.bk .cal-day.today { font-weight: 700; color: var(--teal-primary); }
.bk .cal-day.today.selected { color: #fff; }
.bk .cal-day.disabled { color: var(--border-light); cursor: not-allowed; }
.bk .cal-day.empty { cursor: default; }

.bk .cal-day.has-slots::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal-primary);
}

.bk .cal-day.selected.has-slots::after { background: #fff; }

/* Time slots */
.bk .time-section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 20px 0 10px;
}

.bk .time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.bk .time-slot {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 9px 6px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  transition: all 0.15s;
  background: #fff;
}

.bk .time-slot:hover {
  border-color: var(--teal-primary);
  color: var(--teal-primary);
  background: var(--teal-light);
}

.bk .time-slot.selected {
  background: var(--teal-primary);
  color: #fff;
  border-color: var(--teal-primary);
}

.bk .time-slot.unavailable {
  color: #c5cdcd;
  cursor: not-allowed;
  background: #fafafa;
  border-color: #eef1f1;
  pointer-events: none;
}

.bk .time-slot.unavailable:hover {
  color: #c5cdcd;
  background: #fafafa;
  border-color: #eef1f1;
}

.bk .no-date-msg {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 32px 0;
  font-style: italic;
}

/* Form fields */
.bk .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bk .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bk .form-field.span2 { grid-column: 1 / -1; }

.bk .form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.bk .required { color: #c0392b; margin-left: 2px; }

.bk .form-field input,
.bk .form-field select,
.bk .form-field textarea {
  border: 1.5px solid var(--border-input);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}

.bk .form-field input:focus,
.bk .form-field select:focus,
.bk .form-field textarea:focus {
  outline: none;
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 3px rgba(15, 107, 107, 0.08);
}

.bk .form-field textarea { min-height: 90px; resize: vertical; }

/* Actions */
.bk .step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.bk .btn-back {
  background: #fff;
  border: 1.5px solid var(--border-light);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.bk .btn-back:hover {
  border-color: var(--teal-primary);
  color: var(--teal-primary);
}

.bk .btn-next {
  background: var(--teal-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(15, 107, 107, 0.18);
}

.bk .btn-next:hover:not(:disabled) { background: var(--teal-dark); }

.bk .btn-next:disabled {
  background: var(--border-light);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.bk .bk-error {
  display: none;
  margin-top: 14px;
  font-size: 13px;
  color: #c0392b;
}

/* Sidebar */
.bk .sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bk .summary-card {
  background: #fafafa;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}

.bk .summary-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.bk .summary-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
}

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

.bk .summary-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.bk .summary-icon svg { width: 14px; height: 14px; color: var(--teal-primary); }

.bk .summary-key {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bk .summary-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 1px;
}

.bk .summary-placeholder {
  color: var(--border-light);
  font-weight: 400;
  font-style: italic;
}

.bk .contact-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
}

.bk .contact-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.bk .contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-body);
  margin-bottom: 8px;
}

.bk .contact-item:last-child { margin-bottom: 0; }
.bk .contact-item svg { width: 14px; height: 14px; color: var(--teal-primary); flex-shrink: 0; }
.bk .contact-item a { color: var(--teal-primary); text-decoration: none; font-weight: 600; }
.bk .contact-item a:hover { text-decoration: underline; }

/* Confirmation */
.bk .confirm-screen { text-align: center; padding: 20px 0; }

.bk .confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.bk .confirm-icon svg { width: 32px; height: 32px; color: var(--teal-primary); }
.bk .confirm-title { font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.bk .confirm-msg { font-size: 14px; color: var(--text-body); line-height: 1.65; max-width: 460px; margin: 0 auto 24px; }

.bk .confirm-summary {
  background: var(--teal-light);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  text-align: left;
  margin: 0 auto 24px;
  max-width: 420px;
}

.bk .confirm-summary-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
}

.bk .confirm-summary-row:last-child { margin-bottom: 0; }
.bk .confirm-summary-row svg { width: 15px; height: 15px; color: var(--teal-primary); flex-shrink: 0; }
.bk .confirm-summary-row strong { color: var(--text-dark); }

.bk .btn-new-booking {
  background: var(--teal-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.bk .btn-new-booking:hover { background: var(--teal-dark); }

.bk .bk-offline { text-align: center; padding: 60px 20px; }

/* Grid children may never force the layout wider than the screen */
.bk .booking-layout > * { min-width: 0; }

@media (max-width: 768px) {
  .bk .page-container { padding: 28px 16px 60px; }
  .bk .page-title { font-size: 26px; }
  .bk .booking-layout { grid-template-columns: 1fr; }
  .bk .sidebar { order: -1; }
  .bk .form-grid { grid-template-columns: 1fr; }
  .bk .time-slots { grid-template-columns: repeat(4, 1fr); }
  .bk .booking-card { padding: 20px 16px; }
}

@media (max-width: 480px) {
  /* The three step items are fixed-width (labels don't shrink), which
     overflowed the page sideways on phones. Show only the current step's
     label — the other steps stay as numbered / ticked dots. */
  .bk .step-label:not(.active) { display: none; }
  .bk .step-item { gap: 6px; }
  .bk .time-slots { grid-template-columns: repeat(3, 1fr); }
}
