/* =========================================================
   IMPRESSION CLINICS — Custom Enhancements CSS v1.0
   =========================================================
   Brand palette:
     #A2214F  — primary (maroon)
     #8A0433  — dark CTA
     #DA0D55  — CTA hover
     #2C4059  — navy headings
     #66BFB8  — teal accent
   Font: Poppins
   ========================================================= */

/* ── 0. CSS Design Tokens ─────────────────────────────── */
:root {
  --ic-primary:       #A2214F;
  --ic-dark:          #8A0433;
  --ic-hover:         #DA0D55;
  --ic-navy:          #2C4059;
  --ic-teal:          #66BFB8;
  --ic-white:         #ffffff;
  --ic-light:         #f8f8f8;
  --ic-border:        rgba(0, 0, 0, .08);
  --ic-radius:        16px;
  --ic-radius-lg:     24px;
  --ic-radius-xl:     32px;
  --ic-shadow:        0 4px 20px rgba(0, 0, 0, .08);
  --ic-shadow-md:     0 8px 32px rgba(0, 0, 0, .12);
  --ic-shadow-hover:  0 16px 48px rgba(0, 0, 0, .18);
  --ic-transition:    all .3s cubic-bezier(.4, 0, .2, 1);
}

/* ── 1. Global Reset Helpers ──────────────────────────── */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;   /* iOS Safari needs this on html too */
  width: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Elementor containers — never wider than viewport */
.elementor-section,
.e-con,
.elementor-container {
  max-width: 100% !important;
}

/* Swiper/carousel wrappers — hard-clip overflow */
.swiper,
.swiper-container,
.elementor-image-carousel-wrapper,
.elementor-main-swiper {
  overflow: hidden !important;
  max-width: 100%;
}

/* Scroll-reveal: clip the translateY so bottom sections
   never create phantom scroll area on iOS */
.ic-reveal,
.ic-reveal-left,
.ic-reveal-right {
  overflow: visible;   /* keep for card hover effects */
}

/* Contain transform overflow at section level */
.elementor-section > .elementor-container,
.e-con > .e-con-inner {
  overflow: clip;
}

/* ── 2. Typography Hierarchy ──────────────────────────── */
.elementor-widget-heading h1.elementor-heading-title {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.elementor-widget-heading h2.elementor-heading-title {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.elementor-widget-heading h3.elementor-heading-title {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.35;
}

.elementor-widget-text-editor p {
  font-size: 15px;
  line-height: 1.85;
}

/* ── 3. Hero Section ──────────────────────────────────── */
/* Hero row wrapper — prevent overflow */
.elementor-element-4ed247f {
  overflow: hidden;
}

/* Hero image — compact, no overflow */
.elementor-element-0f5d5f5,
.elementor-element-0f5d5f5 .elementor-widget-container {
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.elementor-element-0f5d5f5 img,
.elementor-element-0f5d5f5 .elementor-widget-container img {
  width: 100% !important;
  height: 100% !important;
  max-height: 540px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Hero text column — fade + slide-up on load */
.elementor-element-9f4fb2c {
  animation: ic-fadeSlideUp 0.8s cubic-bezier(.4, 0, .2, 1) both;
  animation-delay: 0.15s;
}

@keyframes ic-fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Hero main heading — stays clearly larger than list items */
.elementor-element-1daec02 .elementor-heading-title {
  font-size: clamp(20px, 2.2vw, 32px) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.3px;
}

/* Hero bullet list — must be visually subordinate to heading */
.elementor-element-f8e58b6 .elementor-icon-list-item > .elementor-icon-list-text,
.elementor-element-f8e58b6 .elementor-icon-list-item > a {
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
}

.elementor-element-f8e58b6 {
  --e-icon-list-icon-size: 15px !important;
}

.elementor-element-f8e58b6 .elementor-icon-list-icon {
  font-size: 15px !important;
  width: 15px !important;
  height: 15px !important;
}

/* All CTA buttons — uniform size matching the header button */
.elementor-element-669a7583 .elementor-button,
.elementor-element-71b10ef  .elementor-button,
.elementor-element-31069fd  .elementor-button,
.elementor-element-47f5147  .elementor-button,
.elementor-element-c706776  .elementor-button,
.elementor-element-76ae745  .elementor-button,
.elementor-element-f463912  .elementor-button,
.elementor-element-1b2c398  .elementor-button,
.elementor-element-9e7ae56  .elementor-button {
  padding: 13px 28px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.4px !important;
  border-radius: 50px !important;
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 180px !important;
  max-width: 260px !important;
  box-sizing: border-box !important;
}

/* ── 4. Stats Strip (4 counters) ──────────────────────── */
.elementor-element-522a50c {
  position: relative;
}

/* Vertical dividers between counter items */
.elementor-element-522a50c > .e-con-inner > .e-con:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, .25);
  pointer-events: none;
}

.elementor-element-522a50c .elementor-widget-counter {
  padding: 28px 16px;
  text-align: center;
  transition: var(--ic-transition);
}

.elementor-element-522a50c .elementor-counter-number-wrapper {
  font-size: clamp(24px, 3.5vw, 42px) !important;
  font-weight: 700 !important;
  letter-spacing: -1px;
  line-height: 1.1;
}

.elementor-element-522a50c .elementor-counter-title {
  font-size: clamp(11px, 1.2vw, 14px) !important;
  font-weight: 500 !important;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0.92;
  margin-top: 4px;
}

/* ── 5. Image Carousels (Success Stories / Services) ─── */
.elementor-image-carousel .swiper-slide-image,
.elementor-image-carousel-wrapper .swiper-slide img {
  transition: transform 0.35s ease, box-shadow 0.35s ease !important;
  will-change: transform;
}

.elementor-image-carousel-wrapper .swiper-slide:hover .swiper-slide-image,
.elementor-image-carousel-wrapper .swiper-slide:hover img {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22) !important;
}

/* Slide padding to create visible gap between cards */
.elementor-element-36d5b0d .swiper-slide,
.elementor-element-d9d3fc6 .swiper-slide,
.elementor-element-5f460f9 .swiper-slide {
  padding: 6px 8px;
}

/* Featured On (d9d3fc6) — add curved borders (Elementor CSS omits them) */
.elementor-element-d9d3fc6 .elementor-image-carousel-wrapper .elementor-image-carousel .swiper-slide-image {
  border-radius: 20px !important;
  overflow: hidden;
}

/* Success Stories (36d5b0d) — reinforce border-radius */
.elementor-element-36d5b0d .elementor-image-carousel-wrapper .elementor-image-carousel .swiper-slide-image {
  border-radius: 20px !important;
  overflow: hidden;
}

/* ── 6. Section Cards — Success Story Text Card ───────── */
.elementor-element-9de3bab {
  border-radius: var(--ic-radius-lg) !important;
  transition: var(--ic-transition) !important;
  border: 1px solid var(--ic-border) !important;
  overflow: hidden;
  will-change: transform;
}

.elementor-element-9de3bab:hover {
  transform: translateY(-8px);
  box-shadow: var(--ic-shadow-hover) !important;
}

/* ── 7. Locations Section (89cf505) ──────────────────── */
/* Fix: 49% + gap + 49% overflows → use calc widths */
@media (min-width: 768px) {
  .elementor-element-89cf505 {
    gap: 28px !important;
    --column-gap: 28px !important;
    align-items: stretch !important;
  }
  .elementor-element-043fa4d,
  .elementor-element-3579ade {
    width: calc(50% - 14px) !important;
    --width: calc(50% - 14px) !important;
    max-width: calc(50% - 14px) !important;
  }
}

/* Location card — left column */
.elementor-element-043fa4d {
  border-radius: var(--ic-radius-lg) !important;
  background: #ffffff !important;
  box-shadow: var(--ic-shadow-md) !important;
  transition: var(--ic-transition) !important;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.05) !important;
  --margin-left: 0% !important;
  --margin-right: 0% !important;
}

.elementor-element-043fa4d:hover {
  box-shadow: var(--ic-shadow-hover) !important;
  transform: translateY(-4px);
}

/* Contact info card — right column */
.elementor-element-3579ade {
  border-radius: var(--ic-radius-lg) !important;
  background: linear-gradient(145deg, var(--ic-navy) 0%, #1a2d40 100%) !important;
  box-shadow: var(--ic-shadow-md) !important;
  transition: var(--ic-transition) !important;
  border: none !important;
  --margin-left: 0% !important;
  --margin-right: 0% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

/* Location image-box styling */
.elementor-element-1cd92ba .elementor-image-box-img {
  text-align: center !important;
  margin-bottom: 12px !important;
}

.elementor-element-1cd92ba .elementor-image-box-img img {
  width: 90px !important;
  height: 90px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 3px solid var(--ic-primary) !important;
  box-shadow: 0 4px 16px rgba(162,33,79,.25) !important;
}

.elementor-element-1cd92ba .elementor-image-box-title {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--ic-navy) !important;
  text-align: center !important;
  margin-bottom: 8px !important;
}

.elementor-element-1cd92ba .elementor-image-box-description {
  font-size: 14px !important;
  line-height: 1.7 !important;
  color: #666 !important;
  text-align: center !important;
}

/* Icon-box contact items (Call Us / Email Us) */
.elementor-element-37badc9,
.elementor-element-fd53ee9 {
  transition: var(--ic-transition) !important;
  padding: 20px 24px !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.08) !important;
  margin-bottom: 12px !important;
}

.elementor-element-37badc9:last-child,
.elementor-element-fd53ee9:last-child {
  margin-bottom: 0 !important;
}

.elementor-element-37badc9:hover,
.elementor-element-fd53ee9:hover {
  background: rgba(255,255,255,.15) !important;
  transform: translateX(4px);
}

/* Icon colours on dark bg */
.elementor-element-37badc9.elementor-view-stacked .elementor-icon,
.elementor-element-fd53ee9.elementor-view-stacked .elementor-icon {
  background-color: var(--ic-primary) !important;
  width: 48px !important;
  height: 48px !important;
  flex-shrink: 0;
}

.elementor-element-37badc9 .elementor-icon-box-title,
.elementor-element-37badc9 .elementor-icon-box-title a,
.elementor-element-fd53ee9 .elementor-icon-box-title,
.elementor-element-fd53ee9 .elementor-icon-box-title a {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

.elementor-element-37badc9 .elementor-icon-box-description,
.elementor-element-fd53ee9 .elementor-icon-box-description {
  font-size: 14px !important;
  color: rgba(255,255,255,.75) !important;
  font-weight: 400 !important;
}

/* Consistent icon sizing */
.elementor-icon-box-wrapper .elementor-icon {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* Mobile: stack columns */
@media (max-width: 767px) {
  .elementor-element-043fa4d,
  .elementor-element-3579ade {
    width: 100% !important;
    --width: 100% !important;
    max-width: 100% !important;
  }
  .elementor-element-89cf505 {
    gap: 20px !important;
  }
  .elementor-element-37badc9,
  .elementor-element-fd53ee9 {
    padding: 16px 18px !important;
  }
}

/* ── 8. Who We Are Section ────────────────────────────── */
.elementor-element-66fb017 {
  align-items: center !important;
}

/* Who We Are — image: compact, contained */
.elementor-element-6bcb374 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.elementor-element-5b7748b img {
  width: 100% !important;
  height: auto !important;
  max-height: 360px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--ic-radius-lg) !important;
  box-shadow: var(--ic-shadow-md) !important;
  display: block;
}

/* Who We Are — body text */
.elementor-element-be31e42 {
  font-size: 15px !important;
  line-height: 1.9 !important;
  color: #2a2a2a !important;
}

/* Who We Are — responsive: stack on mobile, image full-width */
@media (max-width: 767px) {
  .elementor-element-66fb017 {
    flex-direction: column !important;
  }

  .elementor-element-6bcb374,
  .elementor-element-5347d7a {
    width: 100% !important;
    --width: 100% !important;
    padding: 0 16px !important;
  }

  .elementor-element-5b7748b img {
    max-height: 280px;
    width: 100% !important;
  }

  .elementor-element-5347d7a {
    padding-top: 24px !important;
  }
}

/* ── 9. FAQ / Accordion ───────────────────────────────── */
/* Both FAQ toggle widgets (IDs: 6110109 and 6d019cf) */
.elementor-element-6110109,
.elementor-element-6d019cf {
  border-radius: var(--ic-radius) !important;
  overflow: visible !important;
  width: 100% !important;
  max-width: 100% !important;
}

.elementor-element-6110109 .elementor-toggle-item,
.elementor-element-6d019cf .elementor-toggle-item {
  border-radius: 12px !important;
  overflow: clip;           /* clip visual only — no BFC, no layout thrash */
  margin-block-end: 12px !important;
  box-shadow: var(--ic-shadow) !important;
  /* box-shadow transition removed — avoids repaint during height animation */
}

.elementor-element-6110109 .elementor-toggle-item:hover,
.elementor-element-6d019cf .elementor-toggle-item:hover {
  box-shadow: var(--ic-shadow-md) !important;
}

.elementor-element-6110109 .elementor-tab-title,
.elementor-element-6d019cf .elementor-tab-title {
  border-radius: 12px 12px 0 0 !important;
  cursor: pointer;
  transition: background-color 0.08s ease !important; /* was 0.25s — killed compositor during slideDown */
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 20px 28px !important;
  gap: 12px !important;
}

/* Hover on closed tabs */
.elementor-element-6110109 .elementor-tab-title:not(.elementor-active):hover,
.elementor-element-6d019cf .elementor-tab-title:not(.elementor-active):hover {
  background-color: var(--ic-hover) !important;
}

.elementor-element-6110109 .elementor-toggle-title,
.elementor-element-6d019cf .elementor-toggle-title {
  font-size: clamp(14px, 1.5vw, 18px) !important;
  line-height: 1.4 !important;
  flex: 1 !important;
  min-width: 0 !important;
  word-break: break-word !important;
}

.elementor-element-6110109 .elementor-tab-content,
.elementor-element-6d019cf .elementor-tab-content {
  border-radius: 0 0 12px 12px !important;
  border-top: 3px solid var(--ic-primary) !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: #333 !important;
  padding: 20px 28px 24px; /* NO !important — jQuery slideDown must zero this out as inline style */
  word-break: break-word !important;
  transition: none !important;
}

/* FAQ section container padding */
.elementor-element-545033d {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

/* FAQ mobile */
@media (max-width: 767px) {
  .elementor-element-6110109 .elementor-tab-title,
  .elementor-element-6d019cf .elementor-tab-title {
    padding: 16px 18px !important;
  }

  .elementor-element-6110109 .elementor-tab-content,
  .elementor-element-6d019cf .elementor-tab-content {
    padding: 16px 18px 20px; /* NO !important — jQuery must control this inline */
    font-size: 14px !important;
    line-height: 1.7 !important;
  }

  .elementor-element-6110109 .elementor-toggle-title,
  .elementor-element-6d019cf .elementor-toggle-title {
    font-size: 14px !important;
  }
}

/* ── 10. Testimonials Carousel ────────────────────────── */

/* Slide wrapper — give breathing room for hover shadow */
.elementor-element-64fdad9 .elementor-main-swiper .swiper-slide {
  padding: 8px 6px;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  transition: none !important;
  will-change: auto;
}

/* Nuke any Elementor-generated borders on the testimonial widget */
.elementor-element-64fdad9 .elementor-widget-testimonial,
.elementor-element-64fdad9 .elementor-testimonial-wrapper,
.elementor-element-64fdad9 .elementor-testimonial__content,
.elementor-element-64fdad9 .elementor-testimonial__text {
  border: none !important;
  outline: none !important;
}

/* The actual card */
.elementor-element-64fdad9 .elementor-testimonial {
  background: #ffffff !important;
  border-radius: 20px !important;
  padding: 32px 26px 24px !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .08) !important;
  border: none !important;
  outline: none !important;
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  overflow: hidden;
}

.elementor-element-64fdad9 .elementor-testimonial:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 18px 52px rgba(0, 0, 0, .14) !important;
}

/* Large decorative quote mark */
.elementor-element-64fdad9 .elementor-testimonial::before {
  content: '\201C';
  position: absolute;
  top: 14px;
  left: 20px;
  font-size: 88px;
  color: var(--ic-primary);
  opacity: 0.10;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

/* Thin brand bar at top of card */
.elementor-element-64fdad9 .elementor-testimonial::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ic-primary), var(--ic-hover));
  border-radius: 20px 20px 0 0;
}

/* Injected 5-star row */
.elementor-element-64fdad9 .ic-stars {
  display: block;
  color: #F59E0B;
  font-size: 17px;
  letter-spacing: 3px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

/* Review text */
.elementor-element-64fdad9 .elementor-testimonial__text {
  font-size: 14px !important;
  line-height: 1.85 !important;
  color: #555 !important;
  font-style: italic !important;
  flex: 1;
  position: relative;
  z-index: 1;
  margin-bottom: 0 !important;
}

/* Content area */
.elementor-element-64fdad9 .elementor-testimonial__content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1;
}

/* Divider before author */
.elementor-element-64fdad9 .elementor-testimonial__footer,
.elementor-element-64fdad9 .elementor-testimonial__header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 20px !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(0, 0, 0, .07) !important;
  position: relative;
  z-index: 1;
}

/* Avatar */
.elementor-element-64fdad9 .elementor-testimonial__image img {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid var(--ic-primary) !important;
  box-shadow: 0 2px 8px rgba(162, 33, 79, .2) !important;
  flex-shrink: 0;
}

/* Name */
.elementor-element-64fdad9 .elementor-testimonial__name {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--ic-navy) !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

/* Role / designation */
.elementor-element-64fdad9 .elementor-testimonial__title {
  font-size: 12px !important;
  color: #999 !important;
  font-weight: 500 !important;
  margin: 3px 0 0 !important;
  line-height: 1.3 !important;
}

/* Cite wrapper */
.elementor-element-64fdad9 .elementor-testimonial__cite {
  display: flex !important;
  flex-direction: column !important;
}

/* Mobile */
@media (max-width: 767px) {
  .elementor-element-64fdad9 .elementor-testimonial {
    padding: 26px 20px 20px !important;
  }
  .elementor-element-64fdad9 .elementor-main-swiper .swiper-slide {
    padding: 6px 4px;
  }
}

/* ── 11. Media / Video Carousel ───────────────────────── */
.elementor-element-9635bdd .elementor-main-swiper .swiper-slide {
  position: relative;
  overflow: hidden;
  border-radius: var(--ic-radius) !important;
  cursor: pointer;
  transition: transform 0.3s ease !important;
}

.elementor-element-9635bdd .elementor-main-swiper .swiper-slide:hover {
  transform: scale(1.02);
}

/* ── 12. Contact / Booking Form Section ───────────────── */

/* Hide the image column entirely */
.elementor-element-6f8fe5a {
  display: none !important;
}

/* Row: center the form card */
.elementor-element-6d435c2 {
  justify-content: center !important;
  align-items: center !important;
}

/* Form card — single centered box */
.elementor-element-09629a6 {
  width: 100% !important;
  max-width: 640px !important;
  --width: 100% !important;
  background: #ffffff !important;
  border-radius: var(--ic-radius-lg) !important;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .12) !important;
  padding: 48px 44px 44px !important;
  position: relative;
  overflow: hidden;
  transition: none !important;
  margin: 0 auto !important;
}

/* Gradient accent bar at top */
.elementor-element-09629a6::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--ic-primary), var(--ic-hover));
  border-radius: var(--ic-radius-lg) var(--ic-radius-lg) 0 0;
}

/* Form heading */
.elementor-element-207e3a6 .elementor-heading-title {
  font-size: clamp(18px, 2vw, 24px) !important;
  font-weight: 800 !important;
  color: var(--ic-navy) !important;
  line-height: 1.3 !important;
  text-align: center !important;
}

/* Form fields — text inputs and textarea */
.elementor-widget-form .elementor-field-group .elementor-field:not(.elementor-select-wrapper) {
  border-radius: 10px !important;
  border: 1.5px solid #e8e8e8 !important;
  padding: 13px 16px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  background: #f8f9fa !important;
  color: #333 !important;
  height: 48px;
}
.elementor-widget-form .elementor-field-group textarea.elementor-field {
  height: auto !important;
  min-height: 100px !important;
  resize: vertical;
}
.elementor-widget-form .elementor-field-group .elementor-field:not(.elementor-select-wrapper):focus {
  border-color: var(--ic-primary) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(162, 33, 79, .10) !important;
  background: #ffffff !important;
}

/* Select dropdown */
.elementor-widget-form .elementor-field-group .elementor-select-wrapper {
  border-radius: 10px !important;
  border: 1.5px solid #e8e8e8 !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  background: #f8f9fa !important;
  width: 100% !important;
}
.elementor-widget-form .elementor-field-group .elementor-select-wrapper select {
  padding: 13px 16px !important;
  height: 48px;
  appearance: none;
  -webkit-appearance: none;
  border: none !important;
  background: transparent !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  color: #333 !important;
  width: 100% !important;
}
.elementor-widget-form .elementor-field-group .elementor-select-wrapper select:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(162, 33, 79, .10) !important;
}

/* Field labels */
.elementor-widget-form .elementor-field-group > label {
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #555 !important;
  margin-bottom: 6px !important;
  display: block !important;
}

/* Submit button */
.elementor-widget-form .elementor-button[type="submit"] {
  border-radius: 50px !important;
  padding: 15px 36px !important;
  font-weight: 700 !important;
  letter-spacing: 0.6px !important;
  font-size: 15px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  width: 100% !important;
}
.elementor-widget-form .elementor-button[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(138, 4, 51, .45) !important;
}

/* Mobile */
@media (max-width: 767px) {
  .elementor-element-09629a6 {
    padding: 36px 20px 28px !important;
    max-width: 100% !important;
  }
}

/* ── 12b. Our Locations — Google Maps embed ───────────── */
.elementor-element-af147ca {
  width: 100% !important;
  overflow: hidden;
  border-radius: var(--ic-radius-lg) !important;
  box-shadow: var(--ic-shadow) !important;
}

.elementor-element-af147ca iframe {
  width: 100% !important;
  height: 400px !important;
  display: block;
  border: none !important;
  border-radius: var(--ic-radius-lg) !important;
}

/* Locations section wrapper — ensure full width */
.elementor-element-af147ca .elementor-widget-container {
  overflow: hidden;
  border-radius: var(--ic-radius-lg);
}

@media (max-width: 767px) {
  .elementor-element-af147ca iframe {
    height: 260px !important;
  }
}

/* ── 13. All CTA Buttons ──────────────────────────────── */
.elementor-button {
  transition: var(--ic-transition) !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
}

.elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2) !important;
}

/* ── 14. Section heading divider spacing ──────────────── */
.elementor-widget-heading + .elementor-widget-divider {
  margin-top: -8px;
}

/* ── 15. Scroll-Reveal Animation Classes ──────────────── */
.ic-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  will-change: transform, opacity;
}

.ic-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ic-reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  will-change: transform, opacity;
}

.ic-reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.ic-reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  will-change: transform, opacity;
}

.ic-reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── 16. How Hair Transplant Works Section ────────────── */
#ic-how-it-works {
  padding: 72px 5%;
  background: var(--ic-light);
  text-align: center;
}

#ic-how-it-works .ic-section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ic-primary);
  margin-bottom: 10px;
}

#ic-how-it-works h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--ic-navy);
  margin: 0 0 16px;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

#ic-how-it-works .ic-section-divider {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--ic-primary), var(--ic-hover));
  border-radius: 4px;
  margin: 0 auto 20px;
}

#ic-how-it-works .ic-section-desc {
  max-width: 580px;
  margin: 0 auto 52px;
  font-size: 15px;
  line-height: 1.8;
  color: #666;
  font-family: 'Poppins', sans-serif;
}

#ic-how-it-works .ic-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

#ic-how-it-works .ic-step {
  background: #ffffff;
  border-radius: var(--ic-radius-lg);
  padding: 32px 28px;
  box-shadow: var(--ic-shadow);
  transition: var(--ic-transition);
  text-align: left;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .05);
  will-change: transform;
}

#ic-how-it-works .ic-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ic-primary), var(--ic-hover));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
  border-radius: 0 0 0 0;
}

#ic-how-it-works .ic-step:hover::before {
  transform: scaleX(1);
}

#ic-how-it-works .ic-step:hover {
  transform: translateY(-8px);
  box-shadow: var(--ic-shadow-hover);
}

#ic-how-it-works .ic-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--ic-primary), var(--ic-hover));
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 18px;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 14px rgba(162, 33, 79, .35);
  flex-shrink: 0;
}

#ic-how-it-works .ic-step h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ic-navy);
  margin: 0 0 10px;
  line-height: 1.3;
}

#ic-how-it-works .ic-step p {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: #666;
  margin: 0;
}

/* ── 17. WhatsApp Floating Button ─────────────────────── */
#ic-whatsapp-btn {
  position: fixed;
  bottom: 32px;
  right: 28px;
  width: 62px;
  height: 62px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .5);
  z-index: 9998;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

#ic-whatsapp-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37, 211, 102, .65);
}

#ic-whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
  flex-shrink: 0;
}

/* Pulse ring */
#ic-whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px solid rgba(37, 211, 102, .7);
  animation: ic-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes ic-pulse {
  0%   { transform: scale(0.88); opacity: 0.85; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* Tooltip label */
#ic-whatsapp-btn .ic-wa-label {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: #075E54;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateY(-50%) translateX(4px);
  box-shadow: var(--ic-shadow);
}

#ic-whatsapp-btn .ic-wa-label::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #075E54;
  border-right: 0;
}

#ic-whatsapp-btn:hover .ic-wa-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ── 17b. Floating Call Button ────────────────────────── */
#ic-call-btn {
  position: fixed;
  bottom: 106px; /* sits above WhatsApp button (62px + 12px gap) */
  right: 28px;
  width: 62px;
  height: 62px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .5);
  z-index: 9997;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

#ic-call-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37, 211, 102, .65);
}

#ic-call-btn svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
  flex-shrink: 0;
}

/* Tooltip label */
#ic-call-btn .ic-call-label {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  background: #1a9e4e;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: var(--ic-shadow);
}

#ic-call-btn .ic-call-label::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #1a9e4e;
  border-right: 0;
}

#ic-call-btn:hover .ic-call-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 767px) {
  #ic-call-btn {
    width: 52px;
    height: 52px;
    bottom: 82px; /* above WhatsApp (52px + 10px gap) */
    right: 16px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, .4);
  }
  #ic-call-btn svg {
    width: 24px;
    height: 24px;
  }
  #ic-call-btn .ic-call-label {
    display: none;
  }
}

/* ── 18. Modals ───────────────────────────────────────── */

/* ── Shared overlay base ── */
#ic-md-overlay,
#ic-mm-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  background: rgba(0, 0, 0, .70);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

#ic-md-overlay.is-open,
#ic-mm-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ── Shared inner elements ── */
.icm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #f2f2f2;
  color: #777;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  padding: 0;
  flex-shrink: 0;
}
.icm-close:hover { background: #ffe0ea; color: var(--ic-primary); }

.icm-field { margin-bottom: 10px; }

.icm-field input,
.icm-field textarea {
  width: 100%;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  color: #333;
  background: #fafafa;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}
.icm-field input:focus,
.icm-field textarea:focus {
  border-color: var(--ic-primary);
  box-shadow: 0 0 0 3px rgba(162,33,79,.1);
  background: #fff;
}
.icm-field input::placeholder,
.icm-field textarea::placeholder { color: #bbb; }
.icm-error input,
.icm-error textarea {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 3px rgba(229,62,62,.1) !important;
}

.icm-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--ic-dark), var(--ic-hover));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.icm-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(138,4,51,.4); }
.icm-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.icm-check {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 4px 16px rgba(37,211,102,.3);
}
.icm-check svg { width: 30px; height: 30px; fill: #fff; }
.icm-ty-title {
  font-family: 'Poppins', sans-serif;
  font-size: 19px; font-weight: 800;
  color: var(--ic-navy); margin: 0 0 8px;
}
.icm-ty-msg {
  font-family: 'Poppins', sans-serif;
  font-size: 13px; color: #888; margin: 0; line-height: 1.6;
}

/* ════════════════════════════════════════
   DESKTOP MODAL  (#ic-md)
   Shown only on screens ≥ 601px
════════════════════════════════════════ */
#ic-md-overlay {
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#ic-md {
  background: #fff;
  border-radius: 22px;
  padding: 48px 42px 38px;
  width: 100%;
  max-width: 480px;
  position: relative;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.35s cubic-bezier(.34, 1.5, .64, 1);
  box-shadow: 0 24px 72px rgba(0,0,0,.28);
}
#ic-md::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ic-primary), var(--ic-hover));
  border-radius: 22px 22px 0 0;
}
#ic-md-overlay.is-open #ic-md {
  transform: translateY(0) scale(1);
}

.icm-logo {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--ic-primary), var(--ic-hover));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.icm-logo svg { width: 22px; height: 22px; fill: #fff; }

#ic-md .icm-title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px; font-weight: 800;
  color: var(--ic-navy);
  margin: 0 0 6px; line-height: 1.25;
}
.icm-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 14px; color: #888;
  margin: 0 0 24px; line-height: 1.6;
}
#ic-md .icm-field input,
#ic-md .icm-field textarea {
  padding: 13px 16px;
  font-size: 14px;
}
#ic-md .icm-field textarea {
  height: 88px; resize: none; line-height: 1.6;
}
#ic-md .icm-submit {
  padding: 15px;
  font-size: 15px;
  letter-spacing: 0.4px;
  margin-top: 8px;
}
.icm-privacy {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 11px; color: #bbb;
  margin-top: 12px; line-height: 1.5;
}

/* Hide desktop modal on phones */
@media (max-width: 600px) {
  #ic-md-overlay { display: none !important; }
}

/* ════════════════════════════════════════
   MOBILE MODAL  (#ic-mm)
   Shown only on screens ≤ 600px
════════════════════════════════════════ */
#ic-mm-overlay {
  align-items: center;
  justify-content: center;
  padding: 12px;
}

#ic-mm {
  background: #fff;
  border-radius: 16px;
  padding: 20px 16px 18px;
  width: 100%;
  position: relative;
  transform: scale(0.94);
  transition: transform 0.28s cubic-bezier(.34, 1.3, .64, 1);
  box-shadow: 0 16px 48px rgba(0,0,0,.28);
}
#ic-mm-overlay.is-open #ic-mm {
  transform: scale(1);
}

#ic-mm .icm-title {
  font-family: 'Poppins', sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--ic-navy);
  margin: 0 0 14px;
  padding-right: 32px;
  line-height: 1.3;
}
#ic-mm .icm-field input {
  padding: 11px 13px;
  font-size: 16px; /* prevents iOS auto-zoom */
  border-radius: 9px;
}
#ic-mm .icm-submit {
  padding: 13px;
  font-size: 14px;
  margin-top: 6px;
  letter-spacing: 0.3px;
}

/* Hide mobile modal on desktop */
@media (min-width: 601px) {
  #ic-mm-overlay { display: none !important; }
}

/* ── 19. Block Elementor Popups ───────────────────────── */
/* Hide the original Elementor popup modals */
#elementor-popup-modal-315,
#elementor-popup-modal-212 {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ── 20. Responsive Overrides ─────────────────────────── */
@media (max-width: 1024px) {
  #ic-how-it-works .ic-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  /* WhatsApp */
  #ic-whatsapp-btn {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 16px;
  }
  #ic-whatsapp-btn svg {
    width: 26px;
    height: 26px;
  }
  #ic-whatsapp-btn .ic-wa-label {
    display: none;
  }

  /* How It Works */
  #ic-how-it-works {
    padding: 48px 16px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  #ic-how-it-works .ic-steps {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
  }
  #ic-how-it-works .ic-step {
    padding: 22px 18px;
    width: 100%;
    box-sizing: border-box;
  }
  #ic-how-it-works h2 {
    font-size: clamp(20px, 5vw, 28px);
  }

  /* Stats strip */
  .elementor-element-522a50c .elementor-counter-number-wrapper {
    font-size: 18px !important;
    letter-spacing: -0.3px;
  }
  .elementor-element-522a50c .elementor-counter-title {
    font-size: 9px !important;
    letter-spacing: 0.2px;
  }

  /* Hero image on mobile — show a bit more of the doctor */
  .elementor-element-0f5d5f5 img,
  .elementor-element-0f5d5f5 .elementor-widget-container img {
    max-height: 360px;
    object-position: top center;
  }

  /* Service cards gap on mobile */
  .elementor-element-89cf505 {
    gap: 20px !important;
  }

  /* Testimonial card padding on mobile */
  .elementor-element-64fdad9 .elementor-main-swiper .swiper-slide {
    padding: 2px;
  }

  /* ── Mobile-specific overflow guards ── */

  /* Stop carousel slides from peeking outside on narrow screens */
  .elementor-element-36d5b0d .swiper-slide,
  .elementor-element-d9d3fc6 .swiper-slide,
  .elementor-element-5f460f9 .swiper-slide {
    padding: 4px 6px;
  }

  /* Ensure all Elementor inner containers stay within screen */
  .elementor-widget-container {
    max-width: 100%;
    overflow: visible;
  }

  /* Stop icon boxes from pushing width on narrow screens */
  .elementor-icon-box-wrapper {
    flex-wrap: nowrap;
    overflow: hidden;
  }

  /* Tighten who-we-are section padding so it doesn't overflow */
  .elementor-element-6bcb374,
  .elementor-element-5347d7a {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}
