/* /schedule-meeting (components/booking/BookingWidget.tsx). Site palette; logical properties for Arabic. */
.bk {
  --bk-purple: #542785;
  --bk-ink: #1e2333;
  --bk-yellow: #f5d253;
  --bk-line: rgba(84, 39, 133, 0.14);
  --bk-soft: #f7f5fb;
  max-width: 1080px;
  margin-block-start: 60px;
  padding-bottom: 96px;
}

.bk-header .title {
  margin-bottom: 16px;
}

.bk-intro {
  max-width: 44rem;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  color: #3b3f4d;
}

.bk-hours {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 28px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(84, 39, 133, 0.07);
  color: var(--bk-purple);
  font-size: 13.5px;
  font-weight: 700;
}

.bk-card {
  position: relative;
  padding: 28px 32px 32px;
  border: 1px solid var(--bk-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(30, 35, 51, 0.04), 0 20px 50px -34px rgba(42, 16, 74, 0.4);
}

/* ---- steps ---- */
.bk-steps {
  display: flex;
  gap: 8px 28px;
  flex-wrap: wrap;
  margin: 0 0 22px;
  padding: 0 0 20px;
  list-style: none;
  border-bottom: 1px solid var(--bk-line);
}

.bk-steps li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(30, 35, 51, 0.5);
  font-size: 14px;
  font-weight: 700;
}

.bk-steps__n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid currentColor;
  font-size: 13px;
}

.bk-steps .is-current {
  color: var(--bk-purple);
}

.bk-steps .is-current .bk-steps__n {
  background: var(--bk-purple);
  border-color: var(--bk-purple);
  color: #fff;
}

.bk-steps .is-done {
  color: var(--bk-ink);
}

.bk-steps .is-done .bk-steps__n {
  background: var(--bk-yellow);
  border-color: var(--bk-yellow);
  color: var(--bk-ink);
  font-size: 11px;
}

.bk-h {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
  color: var(--bk-ink);
  outline: none;
}

.bk-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.bk-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(30, 35, 51, 0.6);
}

.bk-muted {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(30, 35, 51, 0.65);
}

.bk-notice {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 10px;
  border-inline-start: 4px solid #d9534f;
  background: #fdf0ef;
  color: #7a1f1b;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.6;
}

/* ---- durations ---- */
.bk-durations {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}

.bk-durations legend {
  width: 100%;
  float: none;
}

.bk-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 20px;
  border: 1.5px solid var(--bk-line);
  border-radius: 999px;
  color: var(--bk-ink);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.bk-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bk-pill:hover {
  border-color: var(--bk-purple);
}

.bk-pill.is-on {
  background: var(--bk-purple);
  border-color: var(--bk-purple);
  color: #fff;
}

.bk-pill:focus-within {
  outline: 3px solid var(--bk-yellow);
  outline-offset: 2px;
}

/* ---- calendar + times ---- */
.bk-pick {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: 32px;
}

.bk-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

.bk-cal__nav button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--bk-line);
  border-radius: 50%;
  background: #fff;
  color: var(--bk-purple);
  font-size: 11px;
}

.bk-cal__nav button:disabled {
  opacity: 0.35;
}

.bk-cal__month {
  min-width: 9rem;
  text-align: center;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--bk-ink);
}

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

.bk-cal__wd {
  padding-bottom: 4px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(30, 35, 51, 0.5);
}

.bk-day {
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--bk-soft);
  color: var(--bk-ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.bk-day:hover:not(:disabled) {
  border-color: var(--bk-purple);
}

.bk-day:disabled {
  background: transparent;
  color: rgba(30, 35, 51, 0.28);
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: rgba(30, 35, 51, 0.2);
}

.bk-day.is-on {
  background: var(--bk-purple);
  color: #fff;
}

.bk-zone {
  margin-bottom: 12px;
}

.bk-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
  padding: 2px;
}

.bk-slot {
  min-height: 42px;
  border: 1.5px solid var(--bk-line);
  border-radius: 10px;
  background: #fff;
  color: var(--bk-ink);
  font-size: 14.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.bk-slot:hover:not(:disabled) {
  border-color: var(--bk-purple);
}

.bk-slot:disabled {
  color: rgba(30, 35, 51, 0.28);
  background: var(--bk-soft);
  border-color: transparent;
  text-decoration: line-through;
  cursor: not-allowed;
}

.bk-slot.is-on {
  background: var(--bk-purple);
  border-color: var(--bk-purple);
  color: #fff;
}

.bk-day:focus-visible,
.bk-slot:focus-visible,
.bk-cal__nav button:focus-visible,
.bk-btn:focus-visible,
.bk-edit:focus-visible {
  outline: 3px solid var(--bk-yellow);
  outline-offset: 2px;
}

.bk-local {
  display: block;
  margin-top: 10px;
}

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

.bk-field {
  display: grid;
  gap: 6px;
}

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

.bk-field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--bk-ink);
}

.bk-optional {
  font-weight: 500;
  color: rgba(30, 35, 51, 0.55);
}

.bk-field input,
.bk-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1.5px solid rgba(30, 35, 51, 0.18);
  border-radius: 10px;
  background: #fff;
  color: var(--bk-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bk-field textarea {
  resize: vertical;
}

.bk-field input:focus,
.bk-field textarea:focus {
  outline: none;
  border-color: var(--bk-purple);
  box-shadow: 0 0 0 3px rgba(84, 39, 133, 0.15);
}

.bk-field.has-error input,
.bk-field.has-error textarea {
  border-color: #c9302c;
}

.bk-hint,
.bk-error {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.bk-hint {
  color: rgba(30, 35, 51, 0.6);
}

.bk-error {
  color: #b02a25;
  font-weight: 600;
}

/* ---- review ---- */
.bk-review {
  margin: 0;
  padding: 6px 22px;
  border-radius: 12px;
  background: var(--bk-soft);
}

.bk-review > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--bk-line);
}

.bk-review > div:last-child {
  border-bottom: 0;
}

.bk-review dt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(30, 35, 51, 0.55);
}

.bk-review dd {
  margin: 6px 0 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--bk-ink);
}

.bk-pre {
  white-space: pre-line;
}

.bk-edit {
  border: 0;
  background: none;
  color: var(--bk-purple);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.bk-note {
  margin: 18px 0 6px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fdf8e4;
  border-inline-start: 4px solid var(--bk-yellow);
  color: var(--bk-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.bk-privacy a {
  color: var(--bk-purple);
  font-weight: 700;
}

/* ---- actions ---- */
.bk-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 26px;
}

.bk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--bk-purple);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.bk-btn:hover:not(:disabled) {
  background: var(--bk-yellow);
  color: var(--bk-ink);
}

.bk-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bk-btn[aria-busy="true"] {
  gap: 10px;
  opacity: 0.8;
}

.bk-spinner {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  animation: bk-spin 0.7s linear infinite;
}

@keyframes bk-spin {
  to {
    transform: rotate(360deg);
  }
}

.bk-btn--ghost {
  background: transparent;
  color: var(--bk-purple);
  border: 1.5px solid var(--bk-line);
}

.bk-summary {
  font-size: 14px;
  font-weight: 700;
  color: var(--bk-purple);
}

.bk-summary--top {
  display: block;
  margin: -8px 0 18px;
}

/* ---- small screens ---- */
@media (max-width: 991px) {
  .bk-pick {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .bk-card {
    padding: 20px 18px 24px;
  }
  .bk-fields {
    grid-template-columns: 1fr;
  }
  .bk-steps {
    gap: 8px 16px;
  }
  .bk-steps__label {
    font-size: 13px;
  }
  .bk-actions .bk-btn {
    flex: 1 1 100%;
  }
}

/* ---- Arabic: no Latin tracking or uppercase ---- */
html[dir="rtl"] .bk-label,
html[dir="rtl"] .bk-review dt {
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}

html[dir="rtl"] .bk-intro {
  font-weight: 500;
  line-height: 1.9;
}

@media (prefers-reduced-motion: reduce) {
  .bk-spinner {
    animation: none;
  }
  .bk-pill,
  .bk-day,
  .bk-btn,
  .bk-field input,
  .bk-field textarea {
    transition: none;
  }
}
