/* ===== Book a Meeting — booking flow ===== */
/* Builds on pages.css (.meeting-card, .mf-*) and register.css (.stepper, .phone-*) */

[v-cloak] { display: none; }

.bm-layout { align-items: flex-start; }

.bm-card { padding: 30px 32px; }

.bm-head { margin-bottom: 22px; }
.bm-title { font-weight: 700; font-size: 1.3rem; color: var(--teps-navy); margin: 0 0 6px; }
.bm-sub { color: #7a7a7a; font-size: .92rem; margin: 0; }

/* Stepper: let it scroll on small screens instead of overflowing */
.bm-stepper { overflow-x: auto; justify-content: center; padding-bottom: 4px; margin-bottom: 26px; }
.bm-stepper .step { cursor: default; }
.bm-stepper .step.can-go { cursor: pointer; }
.bm-stepper .step.can-go:hover .step-label { color: var(--teps-orange); }

/* Alerts */
.bm-alert {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff4f4; border: 1px solid #ffd3d4; color: #b3261e;
  border-radius: 12px; padding: 12px 14px; font-size: .92rem; margin-bottom: 18px;
}

/* Day + time split */
.bm-slot-grid { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 28px; align-items: start; }
.bm-slot-times { border-inline-start: 1px dashed #e4dfd4; padding-inline-start: 28px; min-height: 100%; scroll-margin-top: 100px; }
.bm-times-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 16px; }
.bm-times-title { font-weight: 700; font-size: 1.05rem; color: var(--teps-navy); margin: 0; }
.bm-times-date { color: var(--teps-orange); font-weight: 600; font-size: .92rem; }
.bm-times-tz { flex-basis: 100%; color: #9aa1a9; font-size: .8rem; }
.bm-times-tz i { margin-inline-end: 4px; }
.bm-slot-times .bm-times {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-height: 340px; overflow-y: auto;
  padding: 2px; padding-inline-end: 6px; scrollbar-width: thin;
}

/* Dotted notice (no times / pick a day) */
.bm-empty-dotted {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  border: 2px dotted #f0c873; background: #fffaf0; border-radius: 16px; padding: 28px 18px;
  color: #8a7a55; font-size: .9rem; line-height: 1.6; animation: bm-fade .25s ease;
}
.bm-empty-dotted i { font-size: 1.5rem; color: var(--teps-orange); margin-bottom: 4px; }
.bm-empty-dotted strong { color: var(--teps-navy); font-size: .98rem; }
.bm-empty-dotted.is-error { border-color: #ffc2c4; background: #fff7f7; color: #b3261e; }
.bm-empty-dotted.is-error i { color: #FF383C; }
.bm-link-btn { border: none; background: none; color: var(--teps-orange); font-weight: 600; text-decoration: underline; padding: 0; }

.bm-time-skeleton {
  height: 50px; border-radius: 12px;
  background: linear-gradient(90deg, #f2f2f2 25%, #f8f8f8 50%, #f2f2f2 75%); background-size: 200% 100%;
  animation: bm-shimmer 1.2s ease-in-out infinite;
}
@keyframes bm-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes bm-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.bm-actions-end { justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 20px; }
.bm-actions-end .mf-submit { flex: 0 0 auto; min-width: 200px; }

/* Support card under the booking flow */
.bm-support { margin: 34px 0 0; }

/* Calendar */
.bm-cal { width: 100%; }
.bm-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bm-cal-month { font-weight: 700; color: var(--teps-navy); font-size: .98rem; }
.bm-cal-btn {
  width: 32px; height: 32px; border-radius: 9px; font-size: .8rem; border: 1px solid var(--line);
  background: #fff; color: var(--teps-navy); display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .2s ease, color .2s ease;
}
.bm-cal-btn:hover:not(:disabled) { border-color: var(--teps-orange); color: var(--teps-orange); }
.bm-cal-btn:disabled { opacity: .35; cursor: not-allowed; }
html[dir="rtl"] .bm-cal-btn i { transform: scaleX(-1); }

.bm-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.bm-cal-wd { text-align: center; font-size: .72rem; font-weight: 600; color: #9aa1a9; padding: 2px 0; }
.bm-day {
  position: relative; aspect-ratio: 1 / 1; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: #c3c7cc; font-weight: 600; font-size: .86rem;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.bm-day.is-available {
  background: #fdf4e3; border-color: #f7dca0; color: var(--teps-navy); cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.bm-day.is-available:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(247, 167, 11, .22); }
.bm-day.is-full { background: #fff; border-style: dashed; border-color: #e4dfd4; color: #9aa1a9; }
.bm-day.is-selected { background: var(--teps-orange); border-color: var(--teps-orange); color: #fff; }
.bm-day:disabled { cursor: default; }
.bm-day-count {
  position: absolute; top: -5px; inset-inline-end: -4px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--teps-navy); color: #fff; font-size: .62rem; line-height: 16px; text-align: center;
}
.bm-day.is-selected .bm-day-count { background: #fff; color: var(--teps-orange); }

/* Times */
.bm-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.bm-time {
  border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 14px 12px;
  font-weight: 600; color: var(--teps-navy); font-size: .95rem; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.bm-time i { color: var(--teps-orange); font-size: .9rem; }
.bm-time:hover { border-color: rgba(247, 167, 11, .6); }
.bm-time.is-selected { border-color: var(--teps-orange); background: #fdf4e3; box-shadow: 0 8px 20px rgba(247, 167, 11, .15); }

/* Loading / empty */
.bm-state { text-align: center; padding: 36px 10px; color: #7a7a7a; }
.bm-state-ico {
  width: 64px; height: 64px; border-radius: 18px; background: #fdeccd; color: var(--teps-orange);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 14px;
}
.bm-state-title { font-weight: 700; color: var(--teps-navy); font-size: 1.1rem; margin: 0 0 6px; }
.bm-state-sub { margin: 0 0 14px; font-size: .92rem; }
.bm-spinner { color: var(--teps-orange); font-size: 1.6rem; }

/* Form */
.mf-input.has-error { border-color: #FF383C; }
.mf-optional { color: #9aa1a9; font-weight: 500; font-size: .82rem; }
.mf-error { color: #FF383C; font-size: .84rem; margin-top: 6px; display: block; }
textarea.mf-input { resize: vertical; min-height: 110px; }

/* Actions */
.bm-actions { display: flex; gap: 12px; margin-top: 24px; }
.bm-actions .mf-submit { margin-top: 0; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.mf-submit:disabled { opacity: .6; cursor: not-allowed; }
.bm-back {
  border: 1px solid var(--line); background: #fff; color: var(--teps-navy); border-radius: 8px;
  padding: 14px 22px; font-weight: 600; transition: border-color .2s ease;
}
.bm-back:hover { border-color: #d8d8d8; }

/* Summary sidebar */
.bm-summary { position: sticky; top: 100px; padding: 22px 18px; }
.bm-summary-title { font-weight: 700; color: var(--teps-navy); font-size: 1rem; margin: 0 0 10px; }
.bm-summary .bm-sum-row { gap: 10px; padding: 10px 0; }
.bm-summary .bm-sum-ico { width: 32px; height: 32px; border-radius: 9px; font-size: .85rem; }
.bm-summary .bm-sum-val { font-size: .88rem; }
.bm-summary .bm-sum-label { font-size: .76rem; }
.bm-sum-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; }
.bm-sum-row + .bm-sum-row { border-top: 1px solid var(--line); }
.bm-sum-ico {
  width: 38px; height: 38px; border-radius: 10px; background: #fdeccd; color: var(--teps-orange);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.bm-sum-label { display: block; color: #9aa1a9; font-size: .8rem; margin-bottom: 2px; }
.bm-sum-val { display: block; color: var(--teps-navy); font-weight: 600; font-size: .95rem; }
.bm-sum-val.is-empty { color: #c3c7cc; font-weight: 500; }

/* Success */
.bm-done { text-align: center; max-width: 560px; margin: 0 auto; padding: 10px 0; }
.bm-done-ico {
  width: 76px; height: 76px; border-radius: 50%; background: var(--green); color: #fff; font-size: 2rem;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
  box-shadow: 0 14px 30px rgba(33, 163, 91, .25);
}
.bm-done-ico.is-info { background: var(--teps-orange); box-shadow: 0 14px 30px rgba(247, 167, 11, .25); }
.bm-done-title { font-weight: 700; font-size: 1.5rem; color: var(--teps-navy); margin: 0 0 8px; }
.bm-done-sub { color: #7a7a7a; margin: 0 0 22px; line-height: 1.7; }
.bm-details { background: #fafafa; border: 1px solid var(--line); border-radius: 16px; padding: 6px 18px; text-align: start; margin-bottom: 20px; }
.bm-details .bm-sum-row { align-items: center; }
.bm-wa-note {
  display: flex; align-items: flex-start; gap: 12px; text-align: start;
  background: #f1faf3; border: 1px solid #cdebd5; border-radius: 14px; padding: 14px 16px; margin-bottom: 22px;
}
.bm-wa-note-ico {
  width: 38px; height: 38px; border-radius: 10px; background: #2f9e44; color: #fff; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.bm-wa-note strong { display: block; color: var(--teps-navy); font-size: .95rem; margin-bottom: 2px; }
.bm-wa-note p { margin: 0; color: #5f6b74; font-size: .88rem; line-height: 1.7; }
.bm-done-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.bm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 8px; padding: 12px 20px; font-weight: 600; font-size: .95rem; border: 1px solid transparent;
}
.bm-btn.primary { background: var(--teps-orange); color: #fff; }
.bm-btn.primary:hover { background: var(--teps-orange-dark); color: #fff; }
.bm-btn.navy { background: var(--teps-navy); color: #fff; }
.bm-btn.navy:hover { color: #fff; filter: brightness(1.1); }
.bm-btn.ghost { background: #fff; border-color: var(--line); color: var(--teps-navy); }
.bm-btn.ghost:hover { border-color: #d8d8d8; color: var(--teps-navy); }

@media (max-width: 991px) {
  .bm-summary { position: static; }
  .bm-slot-grid { grid-template-columns: 1fr; gap: 24px; }
  .bm-cal { max-width: 400px; margin: 0 auto; }
  .bm-slot-times { border-inline-start: none; padding-inline-start: 0; border-top: 1px dashed #e4dfd4; padding-top: 22px; }
  .bm-slot-times .bm-times { max-height: none; overflow: visible; }
}

@media (max-width: 680px) {
  .bm-card { padding: 22px 16px; }
  .bm-stepper { justify-content: flex-start; }
  .bm-stepper .step:not(.current) .step-label { display: none; }
  .bm-stepper .step:not(:last-child)::after { width: 18px; }
  .bm-times { grid-template-columns: repeat(2, 1fr); }
  .bm-cal-grid { gap: 4px; }
  .bm-day { font-size: .88rem; border-radius: 10px; }
  .bm-actions { flex-direction: column-reverse; }
  .bm-actions-end .mf-submit { width: 100%; }
  .bm-done-actions .bm-btn { width: 100%; }
}
