/* ==========================================================================
   SEJAL CITY - SITE UTILITY & VENDOR COMPATIBILITY STYLES
   (Elementor behaviours, Swiper fix, Responsive navigation, and International Tel Input)
   ========================================================================== */

/* Critical SVG & Swiper button sizing */
svg.e-font-icon-svg {
  width: 1em;
  height: 1em;
  max-width: 100%;
  display: inline-block;
}
.elementor-swiper-button {
  position: absolute !important;
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.elementor-swiper-button svg {
  width: 25px !important;
  height: 25px !important;
  max-width: 25px !important;
  max-height: 25px !important;
}

/* Mobile Nav Menu Dropdown & Sticky Header Visibility Control */
@media (max-width: 1024px) {
  /* Prevent Sticky Header 2 from blocking Header 1 when at top of page */
  .elementor-element.elementor-element-5a01651:not(.sj-sticky-active) {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    display: none !important;
  }

  .elementor-element.elementor-element-5a01651.sj-sticky-active {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 10000 !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  }

  /* Hamburger Toggle Button */
  .elementor-menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10002 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    background: transparent !important;
    border: none !important;
    padding: 6px !important;
    color: #28374B !important;
  }

  .elementor-menu-toggle svg {
    width: 26px !important;
    height: 26px !important;
    fill: #28374B !important;
  }

  .elementor-menu-toggle:not(.elementor-active) .elementor-menu-toggle__icon--open {
    display: block !important;
  }
  .elementor-menu-toggle:not(.elementor-active) .elementor-menu-toggle__icon--close {
    display: none !important;
  }
  .elementor-menu-toggle.elementor-active .elementor-menu-toggle__icon--open {
    display: none !important;
  }
  .elementor-menu-toggle.elementor-active .elementor-menu-toggle__icon--close {
    display: block !important;
  }

  /* Dropdown Menu Container */
  .elementor-nav-menu--dropdown,
  .elementor-widget-nav-menu .elementor-nav-menu--dropdown,
  .elementor-nav-menu--stretch .elementor-nav-menu__container.elementor-nav-menu--dropdown,
  nav.elementor-nav-menu--dropdown {
    display: none !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  .elementor-menu-toggle.elementor-active + nav.elementor-nav-menu--dropdown,
  .elementor-menu-toggle.elementor-active ~ nav.elementor-nav-menu--dropdown,
  .elementor-widget-nav-menu nav.elementor-nav-menu--dropdown.sj-menu-open,
  nav.elementor-nav-menu--dropdown.sj-menu-open {
    display: block !important;
    position: fixed !important;
    top: 60px;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: calc(100vh - 60px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background-color: #ffffff !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15) !important;
    z-index: 100001 !important;
    border-top: 1px solid #f1f5f9 !important;
    border-bottom: 2px solid #c5a059 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .elementor-nav-menu--dropdown ul.elementor-nav-menu,
  nav.elementor-nav-menu--dropdown ul.elementor-nav-menu {
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    list-style: none !important;
    background-color: #ffffff !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .elementor-nav-menu--dropdown ul.elementor-nav-menu li,
  nav.elementor-nav-menu--dropdown ul.elementor-nav-menu li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    box-sizing: border-box !important;
  }

  .elementor-nav-menu--dropdown ul.elementor-nav-menu li:last-child,
  nav.elementor-nav-menu--dropdown ul.elementor-nav-menu li:last-child {
    border-bottom: none !important;
  }

  .elementor-nav-menu--dropdown ul.elementor-nav-menu li a.elementor-item,
  nav.elementor-nav-menu--dropdown ul.elementor-nav-menu li a.elementor-item {
    display: flex !important;
    align-items: center !important;
    padding: 16px 24px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #28374B !important;
    text-decoration: none !important;
    background: #ffffff !important;
    transition: background-color 0.2s, color 0.2s, padding-left 0.2s !important;
    line-height: 1.4 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    text-overflow: clip !important;
    overflow: visible !important;
  }

  .elementor-nav-menu--dropdown ul.elementor-nav-menu li a.elementor-item:hover,
  .elementor-nav-menu--dropdown ul.elementor-nav-menu li a.elementor-item:active,
  .elementor-nav-menu--dropdown ul.elementor-nav-menu li a.elementor-item:focus,
  nav.elementor-nav-menu--dropdown ul.elementor-nav-menu li a.elementor-item:hover,
  nav.elementor-nav-menu--dropdown ul.elementor-nav-menu li a.elementor-item:active,
  nav.elementor-nav-menu--dropdown ul.elementor-nav-menu li a.elementor-item:focus {
    background-color: #f8fafc !important;
    color: #c5a059 !important;
    padding-left: 28px !important;
  }
}

/* Images used as lightbox-less links */
.elementor-image-carousel .swiper-slide a{cursor:default}
.e-n-carousel .swiper-slide{height:auto}

/* International Telephone Input (CDN) styling */
.elementor-field-type-tel .iti {
  width: 100%;
  display: block;
}
.elementor-field-type-tel .iti input[type="tel"] {
  width: 100% !important;
}
.iti__selected-country {
  background: transparent !important;
  outline: none !important;
}
.iti__selected-country:focus,
.iti__selected-country:active {
  background: transparent !important;
  outline: none !important;
}

/* Ensure dropdown appears above all modals and popups */
.iti--container {
  z-index: 100005 !important;
}

/* Dropdown list styling */
.iti__dropdown-content {
  z-index: 99999 !important;
  max-height: 260px !important;
  background-color: #ffffff !important;
  color: #222222 !important;
  border: 1px solid #d0d7de !important;
  border-radius: 6px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
  font-family: inherit !important;
  font-size: 14px !important;
}
.iti__search-input {
  color: #222222 !important;
  background-color: #f6f8fa !important;
  border: 1px solid #d0d7de !important;
  padding: 8px 10px !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  width: 100% !important;
}
.iti__country {
  padding: 8px 10px !important;
  color: #222222 !important;
}
.iti__country.iti__highlight,
.iti__country:hover {
  background-color: #f0f4f8 !important;
  color: #0b1c2d !important;
}
.iti__country-name,
.iti__dial-code {
  color: #222222 !important;
}

/* ==========================================================================
   Bottom Contact Form (#contactus) - Dark Theme
   ========================================================================== */
#contactus .elementor-field-type-tel,
.elementor-element-2dbb83d .elementor-field-type-tel,
.elementor-element-7f544e5 .elementor-field-type-tel {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}

#contactus .iti,
.elementor-element-2dbb83d .iti,
.elementor-element-7f544e5 .iti {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  position: relative !important;
}

#contactus .iti input[type="tel"],
.elementor-element-2dbb83d .iti input[type="tel"],
.elementor-element-7f544e5 .iti input[type="tel"],
#form-field-phone {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
  height: 48px !important;
  min-height: 48px !important;
  padding-left: 96px !important;
  padding-right: 14px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  border: 1px solid #FFFFFF !important;
  border-radius: 5px !important;
  background-color: transparent !important;
  color: #FFFFFF !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 15px !important;
  line-height: normal !important;
  outline: none !important;
}

#contactus input#form-field-name,
#contactus input#form-field-email,
.elementor-element-7f544e5 input#form-field-name,
.elementor-element-7f544e5 input#form-field-email {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 10px 14px !important;
  border: 1px solid #FFFFFF !important;
  border-radius: 5px !important;
  background-color: transparent !important;
  color: #FFFFFF !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 15px !important;
  outline: none !important;
}

#contactus .elementor-field-group,
.elementor-element-7f544e5 .elementor-field-group {
  margin-bottom: 16px !important;
  width: 100% !important;
}

#contactus input::placeholder,
.elementor-element-7f544e5 input::placeholder {
  color: rgba(255, 255, 255, 0.75) !important;
  opacity: 1 !important;
  font-family: 'Montserrat', sans-serif !important;
}

#contactus input:focus,
.elementor-element-7f544e5 input:focus {
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3) !important;
}

#contactus .iti__selected-country,
.elementor-element-7f544e5 .iti__selected-country {
  padding-left: 12px !important;
  padding-right: 8px !important;
  background: transparent !important;
  outline: none !important;
  border: none !important;
}

#contactus .iti__selected-dial-code,
.elementor-element-7f544e5 .iti__selected-dial-code {
  color: #FFFFFF !important;
  font-size: 15px !important;
  font-family: 'Montserrat', sans-serif !important;
  margin-left: 6px !important;
}

#contactus .iti__arrow,
.elementor-element-7f544e5 .iti__arrow {
  border-top-color: #FFFFFF !important;
}

#contactus .iti__arrow--up,
.elementor-element-7f544e5 .iti__arrow--up {
  border-bottom-color: #FFFFFF !important;
}

#contactus .elementor-field-type-acceptance label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  cursor: pointer !important;
}

#contactus .elementor-field-type-acceptance input[type="checkbox"] {
  width: 17px !important;
  height: 17px !important;
  margin-top: 2px !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  accent-color: #0066cc;
}

#contactus .elementor-field-type-acceptance span.checkbox {
  color: rgba(255, 255, 255, 0.85) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: clamp(9.2px, 2.5vw, 10.5px) !important;
  line-height: 1.45 !important;
  letter-spacing: -0.1px !important;
}

#contactus .elementor-field-type-submit,
.elementor-element-7f544e5 .elementor-field-type-submit,
.elementor-element-7f544e5 .e-form__buttons {
  display: flex !important;
  justify-content: flex-start !important;
  text-align: left !important;
  width: 100% !important;
}

#contactus .elementor-field-type-submit button[type="submit"],
.elementor-element-7f544e5 .elementor-field-type-submit button[type="submit"] {
  background-color: #FFFFFF !important;
  color: #164366 !important;
  border-radius: 6px !important;
  padding: 12px 36px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  display: inline-block !important;
  width: auto !important;
  min-width: 140px !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* On mobile/tablet (< 992px), center the submit button */
@media (max-width: 991px) {
  #contactus .elementor-field-type-submit,
  .elementor-element-7f544e5 .elementor-field-type-submit,
  .elementor-element-7f544e5 .e-form__buttons {
    justify-content: center !important;
    text-align: center !important;
  }

  #contactus .elementor-field-type-submit button[type="submit"],
  .elementor-element-7f544e5 .elementor-field-type-submit button[type="submit"] {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

#contactus .elementor-field-type-submit button[type="submit"]:hover,
.elementor-element-7f544e5 .elementor-field-type-submit button[type="submit"]:hover {
  background-color: #f1f5f9 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Section 11 Form & Map Row / Column Layout */
.elementor-element.elementor-element-2dbb83d {
  overflow: hidden !important;
  padding-top: 50px !important;
  padding-bottom: 50px !important;
}

.elementor-element.elementor-element-2dbb83d > .e-con-inner {
  display: flex !important;
  gap: 32px !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
}

@media (min-width: 992px) {
  .elementor-element.elementor-element-2dbb83d > .e-con-inner {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }
  .elementor-element.elementor-element-ab6a6b6 {
    flex: 0 0 calc(50% - 16px) !important;
    width: calc(50% - 16px) !important;
    max-width: calc(50% - 16px) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .elementor-element.elementor-element-df6ac0c {
    flex: 0 0 calc(50% - 16px) !important;
    width: calc(50% - 16px) !important;
    max-width: calc(50% - 16px) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
  }



}

@media (max-width: 991px) {
  .elementor-element.elementor-element-2dbb83d > .e-con-inner {
    flex-direction: column !important;
    gap: 24px !important;
  }
  .elementor-element.elementor-element-ab6a6b6 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 30px 20px !important;
    box-sizing: border-box !important;
  }
  .elementor-element.elementor-element-df6ac0c {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 350px !important;
    height: 350px !important;
    box-sizing: border-box !important;
  }
}

.elementor-element.elementor-element-df6ac0c .elementor-widget-google_maps,
.elementor-element.elementor-element-df6ac0c .elementor-widget-container,
.elementor-element.elementor-element-df6ac0c .elementor-custom-embed,
.elementor-element.elementor-element-df6ac0c iframe {
  width: 100% !important;
  height: 80% !important;
  min-height: 380px !important;
  border-radius: 8px !important;
  border: none !important;
  display: block !important;
}

/* ==========================================================================
   FORM VALIDATION STYLES (Bottom Contact Form & Popup Modal Form)
   ========================================================================== */

/* Error message styling */
.sj-field-error {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  margin-top: 6px !important;
  font-weight: 500 !important;
  animation: sjErrorFadeIn 0.2s ease-out !important;
}

.sj-field-error svg {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0 !important;
}

@keyframes sjErrorFadeIn {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 1. In-Page Dark Contact Form (#contactus / .elementor-element-7f544e5) */
#contactus .sj-field-error,
.elementor-element-7f544e5 .sj-field-error {
  color: #fecaca !important; /* Soft high-contrast red for dark background */
}

#contactus .sj-field-error svg,
.elementor-element-7f544e5 .sj-field-error svg {
  fill: #f87171 !important;
}

#contactus input.sj-input-error,
.elementor-element-7f544e5 input.sj-input-error,
#contactus .iti.sj-input-error input[type="tel"],
.elementor-element-7f544e5 .iti.sj-input-error input[type="tel"] {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.35) !important;
}

/* 2. Popup Modal Form (#sejal-popup-modal) */
.elementor-location-popup .sj-field-error {
  color: #dc2626 !important; /* Vivid red for white card background */
}

.elementor-location-popup .sj-field-error svg {
  fill: #dc2626 !important;
}

.elementor-location-popup input.sj-input-error,
.elementor-location-popup .iti.sj-input-error input[type="tel"] {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2) !important;
}

/* Checkbox Error Highlight */
.elementor-field-type-acceptance.sj-has-error label {
  outline: 1px dashed rgba(220, 38, 38, 0.5) !important;
  padding: 4px !important;
  border-radius: 4px !important;
}

#contactus .elementor-field-type-acceptance.sj-has-error label,
.elementor-element-7f544e5 .elementor-field-type-acceptance.sj-has-error label {
  outline: 1px dashed rgba(248, 113, 113, 0.7) !important;
}

/* Button Loading & Disabled State */
button[data-sj-busy="1"] {
  opacity: 0.8 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.sj-btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: sjSpin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes sjSpin {
  to { transform: rotate(360deg); }
}