.surgens-slider .gradient-text {
  display: block;
}
.robotic-surgeons {
  padding-top: 50px;
}
.spine-care-consult {
  padding: 20px 0px 35px;
}
.robotic-surgeons p {
  text-align: center;
  font-size: 20px;
  color: #202124;
  line-height: 35px;
  margin-bottom: 40px;
}
.robotic-surgeons p b {
  color: #034ea1;
}
.team-spec-box {
  background: #fff;
  padding: 45px 40px 0 40px;
  border-radius: 30px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 60% 40%;
  box-shadow:
    inset 0 0 20px rgba(3, 78, 161, 0.15),
    0 3px 10px rgba(2, 75, 155, 0.2);
  border: 1px solid rgba(3, 78, 161, 0.2);
}
.team-spec-box h2 {
  font-size: 36px;
  color: #00b7ac;
  margin-bottom: 30px;
  font-weight: 500;
  font-family: "HelveticaNeueMedium";
  text-align: left;
}
.team-spec-box h4 {
  font-size: 24px;
  line-height: 40px;
  color: #034ea1;
  margin-bottom: 20px;
  font-weight: 400;
  text-align: left;
}
.team-spec-box h5 {
  font-size: 24px;
  line-height: 40px;
  color: #034ea1;
  margin-bottom: 20px;
  font-weight: 400;
  text-align: left;
}
.team-spec-box p {
  font-size: 20px;
  line-height: 30px;
  color: #202124;
  margin-bottom: 20px;
  font-weight: 400;
  text-align: left;
}
.team-spec-box ul li {
  font-size: 20px;
  line-height: 30px;
  color: #00b7ac;
  margin-bottom: 20px;
  font-weight: 400;
  list-style-type: none;
  position: relative;
  text-align: left;
}
.team-spec-box ul li:before {
  content: "🔹";
  margin-right: 10px;
}
.team-spec-btn {
  background: linear-gradient(90deg, #034ea1 0, #00b7ac 100%);
  padding: 2px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 30px;
  margin-bottom: 20px;
}
.team-spec-btn a {
  display: inline-block;
  padding: 8px 40px;
  border-radius: 8px;
  color: #034ea1;
  font-size: 22px;
  background: #fff;
}
.surgen-social-media a {
  height: 40px;
  width: 40px;
  background: #034ea1;
  padding: 5px;
  border-radius: 50%;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.surgen-social-media {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 40px;
}
.team-spec-text {
  text-align: left;
}
.team-spec-img {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
}
.team-spec-img img {
  display: block;
}
.team-spec-box-small {
  grid-template-columns: 70% 30%;
}
.text-center {
  text-align: center;
}

.anaesthesia-consult {
  padding: 65px 0px 100px;
}
.spine-wellness-therapy {
  padding: 65px 0px 100px;
}
.team-spec-text-height {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 10px;
  padding-right: 10px;
  padding-bottom: 10px;
}
.team-spec-text-height::-webkit-scrollbar {
  width: 2px;
}
.our-team-first-content {
  text-align: center !important;
}
.our-team-first-content h1 {
  font-size: 36px;
  font-weight: 500;
  line-height: 44px;
  background: linear-gradient(90deg, #034ea1 0%, #00b7ac 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
  width: min-content;
  white-space: nowrap;
  margin: 0 auto 40px auto;
}
h2.section-title {
  font-size: 32px;
}
/* #robotic-surgeons-content .section-title, #spine-care-consult .section-title, #anaesthesia-consult .section-title{
    font-size: 46px;
} */
@media (max-width: 1199px) {
  .team-spec-box {
    padding: 20px 20px 0 20px;
  }
  #robotic-surgeons-content h2,
  .anaesthesia-consult h2 {
    margin-top: 30px;
  }
  .surgen-social-media {
    position: absolute;
    top: 50px;
    right: 15px;
  }
}
@media (max-width: 991px) {
  .team-spec-box {
    padding: 20px 15px 0 15px;
  }
  /* #robotic-surgeons-content h2, #spine-care-consult h2, .anaesthesia-consult h2 {
        margin-top: 30px;
    } */
  .robotic-surgeons p {
    font-size: 24px;
    line-height: 34px;
  }
  .surgen-social-media {
    position: absolute;
    top: 15px;
    right: 15px;
  }
  .surgen-social-media a {
    height: 30px;
    width: 30px;
  }
}
@media (max-width: 767px) {
  .surgen-social-media {
    position: absolute;
    top: 15px;
    right: 15px;
  }
  .surgen-social-media a {
    height: 30px;
    width: 30px;
  }
  .team-spec-box {
    display: block;
    overflow: hidden;
    margin-bottom: 0px;
  }
  .team-spec-box h2 {
    font-size: 22px;
    margin-bottom: 10px;
  }
  .team-spec-box h4,
  .team-spec-box h5 {
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 10px;
    line-height: 20px;
  }
  .team-spec-text p {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: left;
    line-height: 26px;
  }
  .splide__arrows {
    width: 95%;
  }
  .team-spec-box ul li {
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 5px;
  }
  .team-spec-box ul li:before {
    margin-right: 8px;
  }
  .team-spec-text ul {
    width: 60%;
    position: relative;
    z-index: 9;
  }
  .team-spec-img img {
    position: absolute;
    right: -10px;
    bottom: 0;
    width: 60%;
  }
  .team-spec-btn {
    margin-top: 15px;
    max-width: 105px;
    width: 100%;
    display: inline-block;
  }
  .team-spec-btn a {
    display: block;
    padding: 8px 6px;
    border-radius: 6px;
    color: #034ea1;
    font-size: 11px;
    background: #fff;
    white-space: normal;
    text-align: center;
    line-height: 14px;
    word-break: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
  }
  .w-60 {
    width: 50%;
  }
  .robotic-surgeons p {
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 10px;
  }
  #robotic-surgeons-content h2,
  .anaesthesia-consult h2 {
    margin-top: 0px;
  }
  #spine-care-consult h2 {
    margin-bottom: 15px;
    margin-top: 25px;
  }
  #spine-care-consult .team-spec-text h2 {
    margin-bottom: 10px;
    margin-top: 0px;
  }
  .spine-care-consult {
    padding: 0px 0px 35px;
  }
  .position-unset {
    position: unset !important;
    display: block !important;
    margin: 0 auto !important;
  }
  .team-spec-text-height {
    max-height: 150px;
    overflow-y: auto;
    margin-top: 10px;
  }
  #spine-care-consult .team-spec-text-height {
    max-height: 180px !important;
    overflow-y: auto !important;
    width: 100%;
    position: relative;
    z-index: 9;
  }
  #spine-care-consult .team-spec-img img {
    position: absolute !important;
    right: -10px !important;
    bottom: 0 !important;
    width: 55% !important;
    max-width: 180px !important;
    margin: 0 !important;
  }
  #spine-care-consult .team-spec-btn {
    position: absolute !important;
    bottom: 20px !important;
    left: 15px !important;
    margin: 0 !important;
    width: max-content !important;
    z-index: 10;
  }
  #spine-care-consult .team-spec-box {
    padding-bottom: 20px;
    min-height: 480px; /* Provides room so absolute image sits nicely next to the text/button */
  }
  .section-title {
    font-size: 26px;
  }
  .anaesthesia-consult {
    padding: 45px 0px 90px;
  }
  #robotic-surgeons-content .section-title,
  #spine-care-consult .section-title,
  #anaesthesia-consult .section-title {
    font-size: 26px;
    margin-bottom: 10px;
  }
  .robotic-surgeons {
    padding-top: 25px;
  }
  .spine-wellness-therapy {
    padding: 45px 0px 90px;
  }
  .our-team-first-content h1 {
    font-size: 26px;
  }
}
@media (max-width: 375px) {
  /* .team-spec-box h4, .team-spec-box h5 {
        height: 40px;
    } */
}

/* =============================================
   BOOK APPOINTMENT — INLINE CARD
   ============================================= */

/* Wrapper — same horizontal rhythm as the splide container */
#baInlineWrap {
  padding: 20px 0px 40px 0px;
}

/* The card — matches .team-spec-box width, border-radius, shadow, border */
.ba-card {
  position: relative;
  background: #fff;
  border-radius: 30px; /* same as team-spec-box */
  border: 1px solid rgba(3, 78, 161, 0.2); /* same as team-spec-box */
  box-shadow:
    inset 0 0 20px rgba(3, 78, 161, 0.15),
    0 3px 10px rgba(2, 75, 155, 0.2); /* same */
  padding: 45px 40px 30px 40px; /* same top/side as team-spec-box */
  width: 100%;
  box-sizing: border-box;
  animation: baCardIn 0.3s cubic-bezier(0.34, 1.1, 0.64, 1);
}

@keyframes baCardIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Close button */
.ba-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 0;
  z-index: 2;
}

/* Header */
.ba-header {
  margin-bottom: 14px;
  padding-right: 34px;
}
.ba-doctor-name {
  font-size: 20px;
  text-align: left;
  font-weight: 700;
  color: #00b7ac;
  margin: 0 0 4px 0;
  font-family: "HelveticaNeueMedium", sans-serif;
}

.ba-header .ba-appt-label {
  font-size: 14px;
  text-align: left;
  line-height: 20px;
  color: #202124;
  margin: 0 0 2px 0;
  font-weight: 400;
  font-family: "HelveticaNeueRegular", sans-serif;
}
.ba-header .ba-appt-date {
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  color: #034ea1;
  margin: 0;
  text-align: left;
  font-family: "HelveticaNeueMedium", sans-serif;
}

/* Date Slider */
.ba-date-slider-container {
  position: relative;
  overflow: hidden;
}
.ba-date-slider-container::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(to right, rgba(255,255,255,0), #fff);
  pointer-events: none;
  z-index: 5;
}
.ba-date-slider-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 -20px;
  padding: 4px 20px 8px 20px;
  scrollbar-width: none;
}
.ba-date-slider-wrap::-webkit-scrollbar {
  display: none;
}
.ba-date-slider {
  display: flex;
  gap: 8px;
  width: max-content;
}

/* Date Card */
.ba-date-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 62px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1.5px solid #cde2f8;
  background: #fff;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
  user-select: none;
}
.ba-date-card:hover {
  border-color: #00b7ac;
  box-shadow: 0 2px 12px rgba(0, 183, 172, 0.15);
}
.ba-date-card.ba-date-active {
  background: #00b7ac66;
  border-color: transparent;
}
.ba-date-day {
  font-size: 8px;
  line-height: 14px;
  font-weight: 500;
  color: #034ea199;
  letter-spacing: 0.5px;
  font-family: "HelveticaNeueRegular", sans-serif;
}
/* .ba-date-card.ba-date-active .ba-date-day,
.ba-date-card.ba-date-active .ba-date-num,
.ba-date-card.ba-date-active .ba-date-mon {
  color: #fff;
} */
.ba-date-num {
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  font-family: "HelveticaNeueRegular", sans-serif;
  color: #034ea1;
}
.ba-date-mon {
  font-size: 8px;
  line-height: 10px;
  font-weight: 500;
  font-family: "HelveticaNeueRegular", sans-serif;
  color: #034ea199;
}
.ba-date-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-top: 3px;
}

/* Step containers */
.ba-step {
  display: block;
}
.ba-hidden {
  display: none !important;
}

/* Slot box */
.ba-slot-box {
  background: #fff;
  border-radius: 8px;
  padding: 18px 16px 14px 16px;
  margin: 12px 0 0 0;
  border: 1px solid #034ea133;
  transition: opacity 0.3s;
}
.ba-slot-box.ba-locked {
  opacity: 0.38;
  pointer-events: none;
  user-select: none;
}
.ba-slot-box .ba-slot-heading {
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #034ea1;
  margin: 0 0 14px 0;
  letter-spacing: 0.2px;
}
.ba-slot-box .ba-slot-section {
  margin-bottom: 14px;
}
.ba-slot-box .ba-slot-period {
  font-size: 12px;
  line-height: 18px;
  color: #00b7ac;
  margin: 0 0 8px 0;
  text-align: left;
}

/* 3-column grid */
.ba-slot-box .ba-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* Slot button — pill shape, teal border */
.ba-slot-btn {
  background: #fff;
  border: 1px solid #51b4ac66;
  border-radius: 8px;
  padding: 8px 8px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  color: #034ea1;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition:
    background 0.18s,
    border-color 0.18s,
    color 0.18s,
    box-shadow 0.18s;
  font-family: "HelveticaNeueRegular", sans-serif;
  width: 100%;
}
.ba-slot-btn:hover {
  border-color: #00b7ac;
  color: #034ea1;
  box-shadow: 0 2px 8px rgba(0, 183, 172, 0.15);
}
.ba-slot-btn.ba-slot-selected {
  background: #51b4ac;
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(3, 78, 161, 0.25);
}

/* Charges bar */
.ba-charges-bar {
  background: #034ea10d;
  border-radius: 8px;
  text-align: center;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  font-family: "HelveticaNeueRegular", sans-serif;
  color: #034ea1;
  margin: 12px 0 12px 0;
}

/* Primary button */
.ba-btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #a8d5e2 0%, #b8e0e0 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: not-allowed;
  transition:
    background 0.25s,
    box-shadow 0.25s,
    transform 0.12s;
  font-family: inherit;
}
.ba-btn-primary.ba-btn-enabled {
  background: linear-gradient(135deg, #034ea1 0%, #00b7ac 100%);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(3, 78, 161, 0.22);
}
.ba-btn-primary.ba-btn-enabled:hover {
  box-shadow: 0 6px 22px rgba(3, 78, 161, 0.32);
  transform: translateY(-1px);
}
.ba-btn-primary.ba-btn-enabled:active {
  transform: translateY(0);
}

/* Outline button */
.ba-btn-outline {
  display: block;
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid #00b7ac;
  background: #fff;
  color: #034ea1;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s;
  font-family: inherit;
  letter-spacing: 0.3px;
}
.ba-btn-outline:hover {
  background: #f0f6ff;
}

/* Patient details */
.ba-patient-section {
  margin: 4px 0 0 0;
}
.ba-patient-section .ba-patient-title {
  font-size: 16px;
  line-height: 22px;
  text-align: left;
  font-family: "HelveticaNeueRegular", sans-serif;
  font-weight: 400;
  color: #034ea1;
  margin: 0 0 4px 0;
}
.ba-patient-section .ba-patient-desc {
  font-size: 14px;
  color: #707070;
  margin: 0 0 14px 0;
  line-height: 20px;
  text-align: left;
}
.ba-patient-section .ba-form-group {
  margin-bottom: 8px;
  position: relative;
}
.ba-patient-section .ba-form-group label {
  display: block;
  font-size: 12px;
  text-align: left;
  font-weight: 400;
  color: #034ea1;
  margin-bottom: 8px;
}
.ba-patient-section .ba-label-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}
.ba-patient-section .ba-required {
  color: #034ea1;
  margin-left: 2px;
}
.ba-patient-section .ba-optional {
  font-size: 12px;
  font-weight: 400;
  color: #888;
}
.ba-patient-section .ba-input {
  width: 100%;
  padding: 10px 12px;
  min-height: 40px;
  border: 1px solid #034ea14d;
  border-radius: 8px;
  font-size: 14px;
  color: #034ea1;
  background: #fff;
  outline: none;
  margin-top: 0px;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
  font-family: inherit;
  box-sizing: border-box;
  margin-bottom: 15px;
}
.ba-input::placeholder {
  color: #707070;
}
.ba-input:focus {
  border-color: #00b7ac;
  box-shadow: 0 0 0 3px rgba(0, 183, 172, 0.1);
}

/* Button actions wrapper */
.ba-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  margin-top: 12px;
}

/* =========================================================================
   DESKTOP STYLES (Figma Match)
========================================================================= */
@media (min-width: 992px) {
  /* 1) Actions split 50/50 side-by-side */
  .ba-doctor-name {
    font-size: 40px;
    line-height: 46px;
    font-weight: 700;
    text-align: left;
    color: #00b7ac;
    margin: 0 0 30px 0;
    font-family: "HelveticaNeueMedium", sans-serif;
  }

  .ba-close-btn {
    top: 22px;
    right: 22px;
  }
  .ba-close-btn svg {
    width: 26px;
    height: 26px;
  }
  .ba-header {
    margin-bottom: 24px;
  }
  .ba-header .ba-appt-label {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 4px;
  }
  .ba-header .ba-appt-date {
    font-size: 24px;
    line-height: 28px;
  }
  .ba-date-card {
    min-width: 80px;
    min-height: 94px;
  }
  .ba-actions {
    flex-direction: row;
    gap: 16px;
    margin-top: 24px;
  }
  .ba-actions .ba-btn-outline,
  .ba-actions .ba-btn-primary {
    flex: 1;
    width: auto;
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    font-family: "HelveticaNeueMedium", sans-serif;
  }

  /* 2) Slot box layout: 3 sections side-by-side */
  .ba-slot-sections-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .ba-slot-box .ba-slot-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row inside column */
  }

  /* 3) Patient form: 3 columns inline */
  .ba-patient-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .ba-patient-section .ba-input {
    margin-bottom: 0;
  }

  .ba-slot-box .ba-slot-heading {
    text-align: left;
    font-size: 24px;
    line-height: 30px;
    margin-bottom: 24px;
    font-family: "HelveticaNeueMedium", sans-serif;
    font-weight: 400;
  }
  .ba-slot-box .ba-slot-period {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 15px;
    font-family: "HelveticaNeueRegular", sans-serif;
    font-weight: 400;
  }
  .ba-slot-box {
    border: none !important;
    padding: 24px 0 0 0;
    border-top: 1px solid rgba(3, 78, 161, 0.1);
    border-radius: 0;
  }
  .ba-slot-btn {
    font-size: 20px;
    line-height: 26px;
    padding: 16px;
  }

  .ba-step1-border-wrapper {
    border: 1px solid rgba(3, 78, 161, 0.2);
    border-radius: 12px;
    padding: 24px 16px;
    margin-bottom: 24px;
  }

  .ba-date-slider-wrap {
    margin: 0;
    padding: 0;
  }
  .ba-charges-bar {
    font-size: 18px;
    line-height: 24px;
    font-family: "HelveticaNeueRegular", sans-serif;
    font-weight: 500;
  }
  .ba-patient-section .ba-patient-title {
    font-size: 24px;
    line-height: 32px;
    text-align: left;
    font-weight: 400;
    font-family: "HelveticaNeueMedium", sans-serif;
  }
  .ba-patient-section .ba-patient-desc {
    font-size: 20px;
    line-height: 26px;
    font-weight: 400;
    font-family: "HelveticaNeueRegular", sans-serif;
    margin-bottom: 24px;
  }
  .ba-patient-section .ba-form-group label {
    font-size: 16px;
    line-height: 22px;
    text-align: left;
    font-weight: 400;
    font-family: "HelveticaNeueRegular", sans-serif;
  }
  .ba-patient-section .ba-input {
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
    font-family: "HelveticaNeueRegular", sans-serif;
    padding: 16px 12px;
  }
}

/* Responsive adjustments for appointment card */
@media (max-width: 1199px) {
  .ba-card {
    padding: 20px 20px 24px 20px;
  }
  .ba-date-slider-wrap {
    margin: 0 -20px;
    padding: 4px 20px 8px 20px;
  }
}
@media (max-width: 767px) {
  .ba-card {
    padding: 20px 15px 20px 15px;
    border-radius: 20px;
  }
  .ba-date-slider-wrap {
    margin: 0 -15px;
    padding: 4px 15px 8px 15px;
  }
  .error {
    padding: 0px 4px;
    bottom: -5px;
}
}

/* Very small screens: drop to 2 columns for slot grid */
@media (max-width: 360px) {
  .ba-slot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
