.sai-ab-booking,
.sai-ab-confirmation {
  width: min(1160px, calc(100% - 40px));
  margin: 50px auto;
  color: #10242f;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.sai-ab-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.sai-ab-steps span {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid #dde9eb;
  border-radius: 8px;
  background: #fff;
  color: #61737d;
  font-weight: 850;
}
.sai-ab-steps span.active {
  border-color: #36b8ca;
  color: #16798e;
  background: #eaf9fb;
}
.sai-ab-panel {
  display: none;
  background: #fff;
  border: 1px solid #dfedef;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(28, 67, 76, .08);
}
.sai-ab-panel.active { display: block; }
.sai-ab-panel h2,
.sai-ab-confirmation h2 {
  margin: 0 0 20px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}
.sai-ab-doctors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.sai-ab-doctor {
  text-align: left;
  border: 1px solid #dfedef;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 9px 22px rgba(28, 67, 76, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: block;
}
.sai-ab-doctor:hover,
.sai-ab-doctor.selected {
  transform: translateY(-4px);
  border-color: #36b8ca;
  box-shadow: 0 18px 36px rgba(28, 67, 76, .12);
}
.sai-ab-doctor .sai-ab-portrait {
  display: block;
  height: 400px;
  background: #f5f5f5;
  overflow: hidden;
}
.sai-ab-doctor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.sai-ab-doctor .sai-ab-card-body {
  display: block;
  padding: 20px 18px 18px;
  background: #fff;
}
.sai-ab-doctor strong {
  display: block;
  margin: 0 0 6px;
  color: #10242f;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
}
.sai-ab-doctor .sai-ab-role {
  display: block;
  margin: 0;
  color: #087f96;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 900;
}
.sai-ab-doctor small {
  display: block;
  margin: 12px 0 0;
  color: #61737d;
  font-size: 14px;
  line-height: 1.55;
}
.sai-ab-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.sai-ab-chips span {
  min-height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  background: #eef8f9;
  color: #53717a;
  font-size: 11px;
  font-weight: 800;
}
.sai-ab-doctor .sai-ab-price {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 0 12px;
  border-radius: 7px;
  background: #eef8f9;
  color: #087f96;
  font-size: 13px;
  font-weight: 900;
}
.sai-ab-doctor.selected .sai-ab-price {
  background: #36b8ca;
  color: #fff;
}
.sai-ab-dates,
.sai-ab-slots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 14px 0 24px;
}
.sai-ab-date,
.sai-ab-slot,
.sai-ab-back,
.sai-ab-form button {
  min-height: 46px;
  border: 1px solid #dde9eb;
  border-radius: 8px;
  background: #fff;
  color: #10242f;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.sai-ab-date.selected,
.sai-ab-slot.selected {
  border-color: #36b8ca;
  background: #eaf9fb;
  color: #16798e;
}
.sai-ab-form {
  display: grid;
  gap: 14px;
}
.sai-ab-form input,
.sai-ab-form select,
.sai-ab-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dbe9eb;
  border-radius: 7px;
  padding: 12px 14px;
  font: inherit;
}
.sai-ab-form textarea { min-height: 120px; resize: vertical; }
.sai-ab-form button[type="submit"] {
  background: #36b8ca;
  color: #fff;
  border-color: #36b8ca;
}
.sai-ab-message {
  margin-top: 16px;
  color: #16798e;
  font-weight: 800;
}
.sai-ab-summary {
  display: grid;
  gap: 12px;
  max-width: 760px;
}
.sai-ab-summary div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid #edf3f4;
  color: #61737d;
}
.sai-ab-summary strong { color: #10242f; text-align: right; }
@media (max-width: 980px) {
  .sai-ab-doctors,
  .sai-ab-dates,
  .sai-ab-slots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sai-ab-booking,
  .sai-ab-confirmation { width: min(100% - 24px, 1160px); }
  .sai-ab-steps,
  .sai-ab-doctors,
  .sai-ab-dates,
  .sai-ab-slots { grid-template-columns: 1fr; }
  .sai-ab-panel { padding: 20px; }
}
