/* Global UI/UX Polish Layer for Dr. Manish S. Tiwari
 * Preserves existing layout, colors, and typography while fixing responsiveness,
 * accessibility, form feedback, navigation drawer behavior, and search UX.
 */

:where(:root) {
  --white: #ffffff;
  --secondary: #00b4d8;
  --shadow-soft: 0 12px 35px rgba(15, 42, 58, 0.08);
}

html {
  scroll-padding-top: 88px;
  overflow-x: clip;
  max-width: 100%;
}

body {
  overflow-x: clip;
  max-width: 100%;
}

[id] {
  scroll-margin-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Accessibility: Skip Link & Keyboard Focus */
.skip-link.screen-reader-text:focus,
.skip-link:focus {
  position: fixed !important;
  top: 12px !important;
  left: 12px !important;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  clip-path: none !important;
  margin: 0 !important;
  padding: 10px 18px !important;
  background: #1a425a !important;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 25px rgba(15, 42, 58, 0.28) !important;
  z-index: 10000010 !important;
  text-decoration: none !important;
  outline: 2px solid #00b4d8 !important;
  outline-offset: 2px !important;
}

:focus-visible {
  outline: 2px solid #00b4d8;
  outline-offset: 2px;
}

/* Media Safety */
img, svg, iframe, video {
  max-width: 100%;
}

/* Reusable Responsive Hero CTA Row (replaces invalid inline @media attrs) */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-start;
  align-items: center;
}

.hero-cta-row.gap-20 {
  gap: 20px;
}

@media (max-width: 967px) {
  .hero-cta-row {
    justify-content: center;
  }
}

/* Zero-specificity utility fallbacks for sections missing local definitions (e.g. doctor-profile #locations, affiliations .sec-header) */
:where(.ultra-section) {
  padding: 80px 20px;
  max-width: 1280px;
  margin: 0 auto;
}

:where(.sec-header) {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 45px;
}

:where(.sec-tag) {
  display: inline-block;
  background: rgba(0, 180, 216, 0.12);
  color: #0077b6;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
}

:where(.sec-title) {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  color: #0f2a3a;
  margin: 0 0 12px;
  line-height: 1.2;
}

:where(.sec-desc) {
  font-size: 16px;
  color: #475569;
  line-height: 1.65;
  margin: 0 auto;
}

:where(.ultra-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #1a425a 0%, #0f2a3a 100%);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 42, 58, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hub Wide Card Responsive Stacking */
.hub-card.hub-card-wide {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
}

.hub-card.hub-card-wide .hub-card-wide-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .hub-card.hub-card-wide {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* Active Nav Highlight */
.elementskit-navbar-nav > li.mt-nav-active > a,
.elementskit-navbar-nav > li > a[aria-current="page"] {
  color: #0f2a3a !important;
}

/* =====================================================================
 * REDESIGNED GLOBAL STICKY HEADER (Prevents wrapping / Contact Us bleed)
 * ===================================================================== */
.ekit-template-content-header {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 42, 58, 0.08) !important;
  box-shadow: 0 4px 20px rgba(15, 42, 58, 0.06) !important;
}

body {
  padding-top: 68px !important;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

@media (min-width: 1025px) {
  .ekit-template-content-header .elementor-88 {
    --widgets-spacing: 0px;
  }

  .ekit-template-content-header .elementor-88 .elementor-element-1130118 {
    display: none !important;
  }

  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-cf96c59 {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    max-width: 1380px !important;
    width: 100% !important;
    margin: 0 auto !important;
    min-height: 68px !important;
    height: 68px !important;
    padding: 0 clamp(14px, 2vw, 28px) !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: clamp(10px, 1.2vw, 20px) !important;
    background: transparent !important;
  }

  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-cf96c59 > .e-con-child,
  .elementor-88 .elementor-element.elementor-element-04ef68b,
  .elementor-88 .elementor-element.elementor-element-12bc7d6,
  .elementor-88 .elementor-element.elementor-element-8ce2510,
  .elementor-88 .elementor-element.elementor-element-275b5d3 {
    --width: auto !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .elementor-88 .elementor-element.elementor-element-04ef68b {
    flex: 0 0 auto !important;
  }

  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-010f8f3 img {
    max-height: 44px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
  }

  .elementor-88 .elementor-element.elementor-element-12bc7d6 {
    flex: 0 1 auto !important;
    min-width: fit-content !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-c170c66,
  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-c170c66 > .elementor-widget-container,
  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-c170c66 .ekit-wid-con {
    width: auto !important;
  }

  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-c170c66 .elementskit-menu-container {
    height: 68px !important;
    min-height: 68px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    overflow: visible !important;
    background: transparent !important;
  }

  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-c170c66 .elementskit-navbar-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(2px, 0.35vw, 6px) !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-c170c66 .elementskit-navbar-nav > li {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    position: relative !important;
  }

  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-c170c66 .elementskit-navbar-nav > li > a {
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(13px, 0.94vw, 14.5px) !important;
    font-weight: 600 !important;
    color: #0f2a3a !important;
    padding: 8px clamp(7px, 0.78vw, 12px) !important;
    min-height: 38px !important;
    height: auto !important;
    line-height: 1.2 !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: background 0.18s ease, color 0.18s ease !important;
  }

  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-c170c66 .elementskit-navbar-nav > li > a:hover,
  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-c170c66 .elementskit-navbar-nav > li:hover > a {
    background: rgba(0, 180, 216, 0.09) !important;
    color: #0077b6 !important;
  }

  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-c170c66 .elementskit-navbar-nav > li.mt-nav-active > a,
  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-c170c66 .elementskit-navbar-nav > li > a[aria-current="page"] {
    background: rgba(0, 180, 216, 0.13) !important;
    color: #0f2a3a !important;
    font-weight: 700 !important;
    box-shadow: inset 0 -2.5px 0 #0077b6 !important;
  }

  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-c170c66 .elementskit-submenu-indicator {
    width: 10px !important;
    height: 10px !important;
    padding: 0 !important;
    margin-left: 2px !important;
    flex-shrink: 0 !important;
  }

  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-c170c66 .elementskit-megamenu-panel {
    margin-top: 6px !important;
  }

  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-c170c66 .elementskit-megamenu-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 18px;
  }

  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-8ce2510 {
    flex: 0 0 auto !important;
    margin-right: 0 !important;
  }

  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-615b17f .elementor-icon {
    width: 40px !important;
    height: 40px !important;
    background: #ecfdf5 !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.18s ease, background 0.18s ease !important;
  }

  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-615b17f .elementor-icon svg {
    width: 20px !important;
    height: 20px !important;
    fill: #16a34a !important;
  }

  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-615b17f .elementor-icon:hover {
    background: #dcfce7 !important;
    transform: translateY(-1px);
  }

  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-275b5d3 {
    flex: 0 0 auto !important;
  }

  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-6b1b3f8 .elementor-button {
    background: linear-gradient(135deg, #1a425a 0%, #0077b6 100%) !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    padding: 10px 18px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    box-shadow: 0 6px 16px rgba(15, 42, 58, 0.18) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
  }

  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-6b1b3f8 .elementor-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 119, 182, 0.28) !important;
  }
}

@media (min-width: 1025px) and (max-width: 1220px) {
  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-cf96c59 {
    gap: 8px !important;
    padding: 0 14px !important;
  }
  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-010f8f3 img {
    max-height: 36px !important;
  }
  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-c170c66 .elementskit-navbar-nav {
    gap: 1px !important;
  }
  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-c170c66 .elementskit-navbar-nav > li > a {
    font-size: 12.25px !important;
    padding: 6px 6.5px !important;
  }
  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-615b17f .elementor-icon {
    width: 36px !important;
    height: 36px !important;
  }
  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-6b1b3f8 .elementor-button {
    padding: 9px 13px !important;
    font-size: 12.5px !important;
  }
}

@media (max-width: 1024px) {
  body {
    padding-top: 62px !important;
  }

  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-cf96c59 {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    min-height: 62px !important;
    padding: 6px 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    background: transparent !important;
  }

  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-04ef68b {
    flex: 0 0 auto !important;
    width: auto !important;
    --width: auto !important;
  }

  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-12bc7d6 {
    flex: 0 0 auto !important;
    width: auto !important;
    --width: auto !important;
    margin-left: auto !important;
  }

  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-8ce2510,
  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-275b5d3 {
    flex: 0 0 auto !important;
    width: auto !important;
    --width: auto !important;
    margin-left: 10px !important;
  }

  .ekit-template-content-header .elementor-88 .elementor-element.elementor-element-6b1b3f8 .elementor-button {
    background: linear-gradient(135deg, #1a425a 0%, #0077b6 100%) !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }
}

/* Desktop Mega-Menu Keyboard + Viewport Safety */
@media (min-width: 1025px) {
  .elementskit-dropdown-has:focus-within > .elementskit-dropdown,
  .elementskit-dropdown-has:focus-within > .elementskit-megamenu-panel {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .elementskit-megamenu-panel,
  .treat-mega-grid,
  .patient-mega-grid {
    max-width: calc(100vw - 24px) !important;
  }
}

/* Mobile & Tablet Off-Canvas Drawer & Bottom Bar Layering */
body.mt-menu-open {
  overflow: hidden !important;
}

body.mt-menu-open .ekit-template-content-header,
body.mt-menu-open .elementor-location-header,
body.mt-menu-open header {
  z-index: 10000005 !important;
}

@media (max-width: 1024px) {
  .mt-bottom-bar {
    z-index: 999990 !important;
  }

  .elementskit-menu-container.active,
  .elementskit-menu-offcanvas-elements.active {
    z-index: 10000002 !important;
    padding-bottom: 90px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .elementskit-menu-overlay.active {
    z-index: 10000000 !important;
    pointer-events: auto !important;
  }

  .elementskit-menu-overlay:not(.active) {
    pointer-events: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transition-delay: 0s !important;
  }

  .elementskit-menu-offcanvas-elements .elementskit-megamenu-panel,
  .elementskit-menu-offcanvas-elements .treat-mega-grid,
  .elementskit-menu-offcanvas-elements .patient-mega-grid {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
    position: static !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    box-shadow: none !important;
    padding: 8px 10px 14px !important;
    gap: 14px !important;
  }

  .elementskit-menu-offcanvas-elements .elementskit-submenu-panel,
  .elementskit-menu-offcanvas-elements .elementskit-dropdown,
  .elementskit-menu-offcanvas-elements .elementskit-megamenu-panel {
    display: none;
  }

  .elementskit-menu-offcanvas-elements li.mt-accordion-open > .elementskit-submenu-panel,
  .elementskit-menu-offcanvas-elements li.mt-accordion-open > .elementskit-dropdown,
  .elementskit-menu-offcanvas-elements li.mt-accordion-open > .elementskit-megamenu-panel,
  .elementskit-menu-offcanvas-elements .elementskit-submenu-panel.elementskit-dropdown-open,
  .elementskit-menu-offcanvas-elements .elementskit-dropdown.elementskit-dropdown-open,
  .elementskit-menu-offcanvas-elements .elementskit-megamenu-panel.elementskit-dropdown-open,
  .elementskit-menu-offcanvas-elements li.elementskit-dropdown-open > .elementskit-submenu-panel,
  .elementskit-menu-offcanvas-elements li.elementskit-dropdown-open > .elementskit-dropdown,
  .elementskit-menu-offcanvas-elements li.elementskit-dropdown-open > .elementskit-megamenu-panel {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-height: none !important;
    height: auto !important;
  }

  .elementskit-menu-offcanvas-elements .elementskit-submenu-indicator {
    transition: transform 0.22s ease;
    cursor: pointer;
    min-width: 34px;
    min-height: 34px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .elementskit-menu-offcanvas-elements li.mt-accordion-open > a .elementskit-submenu-indicator,
  .elementskit-menu-offcanvas-elements li.elementskit-dropdown-open > a .elementskit-submenu-indicator {
    transform: rotate(180deg);
  }
}

/* 320px-480px Mobile Overflow Protection & Touch Ergonomics */
@media (max-width: 767px) {
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="date"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

@media (max-width: 440px) {
  .hub-grid,
  .pub-grid,
  .blog-grid,
  .blogs-grid,
  .video-grid,
  .tests-grid,
  .hospital-grid,
  .mentors-grid,
  .why-grid,
  .cards-grid,
  .services-grid,
  .sym-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .photo-bottom-banner {
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.4 !important;
    padding: 10px 14px !important;
  }
}

/* Interactive CTA Polish (preserves original colors) */
.mt-nav-item,
.mt-center-fab-container {
  transition: transform 0.16s ease, color 0.16s ease;
}
.mt-nav-item:active,
.mt-center-fab-container:active {
  transform: scale(0.96);
}
.mt-nav-item.mt-bottom-active {
  color: #00b4d8 !important;
  font-weight: 700 !important;
}
.mt-center-fab-container.mt-bottom-active .mt-center-text {
  color: #00b4d8 !important;
  font-weight: 700 !important;
}

/* Progressive Appointment Form Status & Validation */
.mt-form-status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  display: none;
  animation: mtFadeUp 0.24s ease;
}

.mt-form-status.is-visible {
  display: block;
}

.mt-form-status.is-success {
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #14532d;
}

.mt-form-status.is-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.mt-form-status-title {
  font-weight: 700;
  font-size: 15.5px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mt-whatsapp-confirm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.15s ease;
}

.mt-whatsapp-confirm:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.mt-field-invalid {
  border-color: #e63946 !important;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.14) !important;
}

.mt-field-hint {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  color: #b91c1c;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
}

button.mt-submitting,
input[type="submit"].mt-submitting {
  opacity: 0.78;
  cursor: wait !important;
}

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

/* Instant Search Modal Overlay (matches Clinical Navy & Cyan palette) */
#mt-search-modal {
  position: fixed;
  inset: 0;
  z-index: 10000020;
  background: rgba(15, 42, 58, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(20px, 7vh, 72px) 16px 24px;
  font-family: 'Outfit', sans-serif;
}

#mt-search-modal.is-open {
  display: flex;
  animation: mtFadeUp 0.18s ease;
}

.mt-search-dialog {
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(10, 28, 40, 0.35);
  overflow: hidden;
  border: 1px solid rgba(0, 180, 216, 0.22);
  display: flex;
  flex-direction: column;
  max-height: 82vh;
}

.mt-search-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.mt-search-head i {
  color: #1a425a;
  font-size: 17px;
  flex-shrink: 0;
}

#mt-search-input {
  flex: 1;
  min-width: 0;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #0f2a3a;
  padding: 6px 0;
}

.mt-search-close {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1a425a;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  flex-shrink: 0;
}

.mt-search-close:hover {
  background: #f1f5f9;
}

.mt-search-body {
  padding: 14px 18px 18px;
  overflow-y: auto;
  flex: 1;
}

.mt-search-meta {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mt-search-group-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0096c7;
  margin: 12px 0 6px;
}

.mt-search-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.mt-search-item:hover,
.mt-search-item:focus-visible {
  background: #f0f9ff;
  border-color: #bae6fd;
}

.mt-search-item-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #0f2a3a;
  line-height: 1.35;
}

.mt-search-item-desc {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.4;
}

.mt-search-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  white-space: nowrap;
  flex-shrink: 0;
}

.mt-search-empty {
  text-align: center;
  padding: 28px 16px;
  color: #475569;
  font-size: 14.5px;
}

.mt-search-empty strong {
  color: #0f2a3a;
  display: block;
  margin-bottom: 6px;
}


/* =====================================================================
 * REDESIGNED APPOINTMENT BOOKING SECTION & ACCESSIBLE FORM
 * ===================================================================== */
.ultra-wrapper .booking-wrapper {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

.ultra-wrapper .booking-card {
  background: #ffffff;
  border-radius: 26px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 64px rgba(15, 42, 58, 0.10);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: stretch;
}

.ultra-wrapper .booking-visual {
  background: url('/wp-content/uploads/2026/11/dr-manish-tiwari-opd-patient-consultation.jpg') no-repeat center 22%;
  background-size: cover;
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  color: #ffffff;
}

.ultra-wrapper .booking-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 42, 58, 0.42) 0%,
    rgba(15, 42, 58, 0.12) 34%,
    rgba(15, 42, 58, 0.72) 66%,
    rgba(10, 28, 42, 0.96) 100%
  );
  pointer-events: none;
}

.ultra-wrapper .booking-visual > * {
  position: relative;
  z-index: 2;
}

.booking-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 42, 58, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.booking-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.28);
}

.ultra-wrapper .booking-visual-content {
  margin-top: auto;
  padding-top: 140px;
}

.ultra-wrapper .booking-visual-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(22px, 2.2vw, 27px);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
  line-height: 1.2;
}

.ultra-wrapper .booking-visual-content p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 16px;
  line-height: 1.5;
}

.booking-visual-points {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.booking-visual-points li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.booking-visual-points i {
  color: #38bdf8;
  font-size: 14px;
  flex-shrink: 0;
}

.booking-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.booking-qa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.booking-qa-btn--wa {
  background: #16a34a;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.32);
}

.booking-qa-btn--wa:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.booking-qa-btn--call {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #ffffff !important;
  backdrop-filter: blur(6px);
}

.booking-qa-btn--call:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.ultra-wrapper .booking-form-box {
  padding: clamp(28px, 3.2vw, 44px);
  background: #ffffff;
}

/* Form Header Typography (shared across index.php and contact-us) */
.mt-booking-eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mt-booking-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: clamp(24px, 2.4vw, 30px) !important;
  font-weight: 800 !important;
  color: #0f2a3a !important;
  margin: 10px 0 6px !important;
  line-height: 1.18 !important;
}

.mt-booking-sub {
  font-family: 'Outfit', sans-serif !important;
  font-size: 14.5px !important;
  color: #475569 !important;
  margin: 0 0 22px !important;
  line-height: 1.5 !important;
}

/* Grid & Controls */
.mt-booking-form {
  font-family: 'Outfit', sans-serif;
}

.mt-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.mt-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.mt-field--full,
.mt-field:has(select[name="consultation-type"]),
.mt-field:has(select[name="clinic-location"]) {
  grid-column: 1 / -1;
}

.mt-age-gender-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(112px, 0.36fr) minmax(0, 1fr);
  gap: 16px 18px;
  align-items: start;
}

.mt-booking-form .mt-label,
.mt-booking-form .mt-legend {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f2a3a;
  line-height: 1.3;
  margin: 0;
  padding: 0;
}

.mt-req {
  color: #0077b6;
  margin-left: 2px;
}

.mt-optional-tag {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

.mt-hint {
  font-size: 12px;
  color: #475569;
  line-height: 1.35;
  margin: -2px 0 0;
}

.mt-input,
.mt-select,
.mt-textarea {
  width: 100%;
  font-family: 'Outfit', sans-serif;
  font-size: max(1rem, 15px);
  color: #0f2a3a;
  background-color: #ffffff;
  border: 1.5px solid #64748b;
  border-radius: 11px;
  padding: 11px 14px;
  min-height: 48px;
  line-height: 1.4;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.mt-input::placeholder,
.mt-textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.mt-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230f2a3a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  cursor: pointer;
}

.mt-textarea {
  min-height: 88px;
  resize: vertical;
}

.mt-input:hover,
.mt-select:hover,
.mt-textarea:hover {
  border-color: #1a425a;
}

.mt-input:focus-visible,
.mt-select:focus-visible,
.mt-textarea:focus-visible {
  border-color: #0077b6;
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.22);
  outline: 2px solid #0077b6;
  outline-offset: 1px;
}

@media (pointer: coarse) {
  .mt-input,
  .mt-select {
    min-height: 52px;
  }
}

/* Segmented Gender Radio Group */
.mt-gender-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mt-radio-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mt-radio-option {
  position: relative;
}

.mt-radio-label {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1.5px solid #64748b;
  border-radius: 11px;
  background: #ffffff;
  color: #0f2a3a;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.mt-radio-label:hover {
  border-color: #0f2a3a;
  background: #f8fafc;
}

.mt-radio-option input:checked + .mt-radio-label {
  background: #0f2a3a;
  border-color: #0f2a3a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 42, 58, 0.18);
}

.mt-radio-option input:focus-visible + .mt-radio-label {
  outline: 2px solid #0077b6;
  outline-offset: 2px;
}

@media (pointer: coarse) {
  .mt-radio-label {
    min-height: 52px;
  }
}

/* After-interaction validation (:user-invalid + fallback) */
.mt-booking-form :is(.mt-input, .mt-select, .mt-textarea):is(:user-invalid, .user-invalid-fallback, .mt-field-invalid) {
  border-color: #b91c1c;
  background-color: #fef2f2;
}

.mt-booking-form :is(.mt-input, .mt-select, .mt-textarea):is(:user-valid, .user-valid-fallback) {
  border-color: #15803d;
}

.mt-error-msg {
  display: none;
  font-size: 12.5px;
  color: #b91c1c;
  font-weight: 600;
  line-height: 1.35;
  align-items: center;
  gap: 5px;
}

.mt-booking-form :is(.mt-input, .mt-select, .mt-textarea):is(:user-invalid, .user-invalid-fallback, .mt-field-invalid) + .mt-error-msg {
  display: flex;
}

/* Submit CTA & Trust Row */
.mt-submit-wrap {
  grid-column: 1 / -1;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mt-submit-btn {
  width: 100%;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a425a 0%, #0077b6 100%);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(15, 42, 58, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.mt-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 119, 182, 0.30);
}

.mt-submit-btn:active {
  transform: translateY(0);
}

.mt-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
  text-align: center;
}

.mt-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mt-trust-row i {
  color: #16a34a;
}

@media (max-width: 968px) {
  .ultra-wrapper .booking-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ultra-wrapper .booking-visual {
    min-height: 500px;
    padding: 18px;
    background-position: center top;
    background-size: 100% auto;
    background-color: #0b2131;
  }

  .ultra-wrapper .booking-visual::before {
    background: linear-gradient(
      to bottom,
      rgba(11, 33, 49, 0.08) 0%,
      rgba(11, 33, 49, 0.0) 36%,
      rgba(11, 33, 49, 0.88) 54%,
      #0b2131 66%
    );
  }

  .ultra-wrapper .booking-visual-content {
    padding-top: 270px;
  }
}

@media (max-width: 600px) {
  .mt-form-grid,
  .mt-age-gender-row {
    grid-template-columns: 1fr;
  }

  .ultra-wrapper .booking-form-box {
    padding: 24px 18px;
  }
}
