/* CF7 Hero Form & Mobile Floating Popup Button */
.form-hidding {
  display: block;
}

.hero-cf7-popup-button {
  display: none;
}

body.hero-cf7-popup-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .form-hidding {
    display: none !important;
  }

  .hero-cf7-popup-button {
    display: block !important;
    position: fixed;
    right: 20px;
    bottom: 100px;
    margin: 0;
    padding: 16px;
    border: 1px solid #58c035;
    border-radius: 999px;
    background: #58c035;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    z-index: 9990;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
  }

  .hero-cf7-popup-button:hover {
    background: #469e29;
    border-color: #469e29;
    transform: translateY(-2px);
  }

  .pbtw {
    padding-bottom: 30px;
  }
}

/* HERO CF7 POPUP (MATCHES TEMPLATE-HOME / FOOTER POPUPFORM EXACTLY) */
.hero-cf7-popup {
  display: none;
}

.hero-cf7-popup.flex,
.hero-cf7-popup.active {
  display: flex !important;
}

/* doctor info css */

.simple-popup {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 20px;
  box-sizing: border-box;
}

.simple-popup.active {
  display: flex;
}

.simple-popup-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
}

.simple-popup-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 30px 30px;
  box-sizing: border-box;
}

.simple-popup-heading {
  margin: 0 45px 25px 0;
  font-family: inherit;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: #011ca7;
}

.simple-popup-content {
  color: #7b7b7b;
  font-size: 16px;
  line-height: 1.6;
  margin-top: 8px;
}

.simple-popup-content p {
  margin: 0 0 15px;
}

.simple-popup-content ul {
  list-style: disc;
  margin: 0 0 0px 8px;
  padding-left: 10px;
}

.simple-popup-content ol {
  list-style: decimal;
  margin: 0 0 15px 20px;
  padding-left: 10px;
}

.simple-popup-content strong,
.simple-popup-content b {
  font-weight: 700;
  color: #000000;
}

.simple-popup-content a {
  color: #58c035;
  text-decoration: underline;
}

.simple-popup-close {
  position: absolute;
  top: 12px;
  right: 15px;
  width: 38px;
  height: 38px;
  padding: 4px;
  border: 0;
  border-radius: 50%;
  background: #f5f5f5;
  color: #222222;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.simple-popup-close:hover {
  color: #58c035;
}

body.simple-popup-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .simple-popup {
    padding: 15px;
  }

  .simple-popup-box {
    max-height: 90vh;
    padding: 15px;
    border-radius: 16px;
  }

  .simple-popup-heading {
    font-size: 22px;
    margin-right: 40px;
    margin-bottom: 20px;
  }

  .simple-popup-content {
    font-size: 14px;
    line-height: 1.6;
  }

  .simple-popup-close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    font-size: 25px;
  }
}

/* doctor name before content */
.doctor-name-hint::before {
  content: "Tap to learn more";
  position: absolute;
  bottom: 100%;
  right: 0;
  left: auto;
  margin-bottom: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.805);
  color: #005b94;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
}

@media (max-width: 767px) {
  .doctor-name-hint::before {
    font-size: 10px;
    right: 0;
    margin-bottom: 5px;
  }
}

@media (max-width: 380px) {
  .doctor-name-hint::before {
    font-size: 9px;
    padding: 2px 6px;
  }
}
/* doctor name before icon */
/* doctor name info icon */
/* .doctor-name-hint::before {
  content: "";
  position: absolute;
  bottom: 100%;
  right: 0;
  left: auto;
  margin-bottom: 6px;
  width: 36px;
  height: 36px;
  background-image: url("https://dbssurgerymumbai.dbssurgeryindia.com/wp-content/uploads/2026/08/circle-info-solid-full-1.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  padding: 8px;
  background-color: #fff;
  border-radius: 99px;
}

@media (max-width: 767px) {
  .doctor-name-hint::before {
    width: 16px;
    height: 16px;
    margin-bottom: 5px;
  }
}

@media (max-width: 380px) {
  .doctor-name-hint::before {
    width: 14px;
    height: 14px;
  }
} */
/* expanded video slider */
/* ---------- reel cards ---------- */
.reels-swiper-wrap {
  position: relative;
}
.reelsSwiper {
  overflow: hidden;
  padding: 4px 2px 8px;
}

@media (max-width: 767px) {
  .reelsSwiper {
    overflow: hidden;
  }
}
.reel-slide {
  width: 42%; /* mobile ~2.2 per view, overridden by JS breakpoints below */
}
.reel-card {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}
.reel-loop-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.reel-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.reel-card:hover .reel-play-icon {
  opacity: 0.9;
}
/* REVIEW CARDS - 2 PER ROW */
@media (min-width: 768px) {
  .reviewsSwiper .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    transform: none !important;
  }

  .reviewsSwiper .swiper-slide {
    width: 100% !important;
    margin-right: 0 !important;
    height: auto !important;
  }
}
/* ---------- nav arrows ---------- */
.reels-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  z-index: 5;
  cursor: pointer;
  display: none;
}
.reels-prev {
  left: -26px;
  transform: translateY(-50%) rotate(180deg);
}
.reels-next {
  right: -26px;
}
@media (min-width: 1024px) {
  .reels-nav-btn {
    display: block;
  }
}
.reels-nav-btn.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ---------- modal ---------- */
.reel-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
}
.reel-modal.is-open {
  display: flex;
}
.reel-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.reel-modal-inner {
  position: relative;
  z-index: 1;

  width: auto;
  max-width: 90vw;

  padding: 0;

  display: inline-flex;
  justify-content: center;
}
.reel-modal-video {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
}
/* CLOSE BUTTON */
.reel-modal-close {
  position: absolute;
  top: -22px;
  right: -22px;

  width: max-content;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px 12px;

  border: none;
  border-radius: 999px;

  background: #58c035;
  color: #fff;

  cursor: pointer;
  z-index: 20;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.reel-modal-close:hover {
  transform: scale(1.05);
  background: #f3f3f3;
  color: #000;
}
.review-text {
  font-size: clamp(14px, calc(12px + 0.42vw), 16px);
}
.reel-modal-close span {
  display: block;
}
.reel-modal-close svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}
@media (max-width: 767px) {
  .reel-modal-close {
    top: -22px;
    right: -22px;
    width: max-content;
    padding: 10px;
    height: auto;
    border-radius: 999px;
  }

  .reel-modal-close span {
    display: none;
  }

  .reel-modal-close svg {
    width: 18px;
    height: 18px;
  }
}

/* Hide on laptop/desktop */
.review-btn {
  display: none;
}

/* Show on mobile */
@media (max-width: 767px) {
  .review-btn {
    display: flex;
    gap: 12px;
  }
}
.reviews-prev {
  rotate: 180deg;
}
.review-nav-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
/* REVIEW SLIDER */
.reviewsSwiper {
  padding: 6px 2px 8px;
}

/* Mobile: make the Swiper wrapper stretch its slides */
@media (max-width: 767px) {
  .reviewsSwiper .swiper-wrapper {
    align-items: stretch;
  }

  .reviewsSwiper .swiper-slide {
    height: auto !important;
    display: flex;
    align-items: stretch;
  }

  .reviewsSwiper .review-card {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .reviewsSwiper .review-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .reviewsSwiper .review-card-footer {
    margin-top: auto;
  }
}
/* ============================================================
   PATIENT REVIEWS SECTION
   ============================================================ */

.reviewsSwiper {
  padding: 6px 2px 8px;
}

/* ---------- card ---------- */
.review-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 1px solid #e7eef3;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 91, 148, 0.06);
}

/* ---------- video ---------- */
.review-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f2733;
  height: 100%;
}

.review-card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0f2733;
}

/* ---------- body ---------- */
.review-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 24px 22px 22px;
  text-align: left;
}

/* video cards only need name + accent below, no quote/text, so trim the padding */
.review-card-body-video {
  padding: 0px 22px 22px 22px;
}

.review-quote-mark {
  display: block;
  line-height: 0;
}

.review-card-text {
  font-family: inherit;
  color: #5d5d5d;
  font-size: clamp(14px, 0.35vw + 13px, 16px);
  line-height: 1.65;
  text-align: left;
  flex: 1;
}

.review-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #eef3f6;
}

.review-footer-accent {
  flex-shrink: 0;
  width: 4px;
  height: 30px;
  border-radius: 999px;
  background-color: #58c035;
}

.review-card-name {
  font-family: inherit;
  color: #005b94;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  text-align: left;
}

@media (max-width: 767px) {
  .review-card-body {
    padding: 20px 18px 18px;
  }
}
/* ============================================================
   CF7 ERROR BOX (MATCHES TEMPLATE-HOME.PHP EXACTLY)
   ============================================================ */

.screen-reader-response,
.wpcf7-response-output {
  display: none !important;
}

.wpcf7-not-valid {
  border-color: #ff4d4f !important;
}

.wpcf7-not-valid-tip {
  color: #ff4d4f !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  margin-top: 4px !important;
  display: block !important;
  text-align: left !important;
}

.cf7-error-box {
  position: fixed !important;
  top: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: #ff4d4f !important;
  color: #fff !important;
  padding: 10px 16px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  z-index: 99999 !important;
  display: none;
}

.wpcf7 .wpcf7-spinner {
  display: block;
  margin: 15px auto 0;
}
.mobile-col {
}

@media (max-width: 767px) {
  .mobile-col {
    flex-direction: column;
  }
}

.call-cell {
}

@media (max-width: 767px) {
  .call-cell {
    width: 100%;
    flex-direction: row;
  }
}

/* ============================================================
   HERO SECTION TABLET FIX (768px - 1023px ONLY)
   ============================================================ */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Prevent horizontal overflow and give clear container padding */
  .pbtw {
    align-items: center !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    padding-bottom: 40px !important;
  }

  /* Doctor & heading box layout for tablet */
  .maindrbox {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 24px !important;
    box-sizing: border-box !important;
  }

  /* Left heading column */
  .maindrbox > div:first-child {
    width: 58% !important;
    flex: 1 1 auto !important;
  }

  /* Right doctor column - nicely sized & aligned */
  .dcotorimg {
    width: 38% !important;
    max-width: 300px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
    position: relative !important;
  }

  /* Bigger doctor image on tablet */
  .dcotorimg img {
    max-width: 250px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    margin-bottom: -30px !important;
  }

  /* Single-line non-wrapping doctor name badge on tablet */
  .parelname {
    width: auto !important;
    max-width: max-content !important;
    white-space: nowrap !important;
    font-size: 16px !important;
    padding: 6px 18px !important;
    bottom: -10px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #005b94 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  }

  /* Tooltip ("Tap to learn more") positioned neatly above the badge */
  .doctor-name-hint::before {
    font-size: 10px !important;
    right: 4px !important;
    left: auto !important;
    margin-bottom: 5px !important;
    padding: 3px 8px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
  }

  /* Form container wrapper on tablet */
  .pbtw > div:last-child {
    width: 100% !important;
    margin-top: 24px !important;
  }

  /* Hide duplicate mobile list on tablet */
  .hero-listm {
    display: none !important;
  }
}



