/* ==========================================================================
   Transformers & Switchgear Scoped Styles (Page 1621)
   Strictly scoped to prevent leakage to other pages
   ========================================================================== */

/* 1. Why MES Section (#why-mes) */
#why-mes {
  background: linear-gradient(rgb(6, 8, 12) 0%, rgb(10, 14, 23) 40%, rgb(6, 8, 12) 100%) !important;
}

/* 2. Applications Section (#applications) */
#applications .app-card-img-wrap {
  height: 12rem !important; /* h-48 */
}
@media (min-width: 640px) {
  #applications .app-card-img-wrap {
    height: 14rem !important; /* sm:h-56 */
  }
}

/* 3. Quality Verification (#quality-verification) */
#quality-verification .qv-accordion-item .qv-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
#quality-verification .qv-accordion-item.is-open .qv-answer {
  max-height: 2000px;
}
#quality-verification .qv-accordion-item .qv-icon-wrap svg {
  transition: transform 0.3s ease;
}
#quality-verification .qv-accordion-item.is-open .qv-icon-wrap svg {
  transform: rotate(180deg);
}

/* 4. Lead Times (#lead-times) */
#lead-times .no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}
#lead-times .no-scrollbar::-webkit-scrollbar {
  display: none !important;
}

#lead-times .min-w-\[1040px\] {
  position: relative !important;
  min-width: 1040px !important;
}

/* Horizontal Connector Line */
#lead-times .min-w-\[1040px\] > .bg-slate-200,
#lead-times .min-w-\[1040px\] > div:first-child {
  position: absolute !important;
  top: 1.25rem !important; /* 20px */
  left: 0 !important;
  right: 0 !important;
  height: 1px !important;
  background-color: #e2e8f0 !important;
  z-index: 1 !important;
}

/* Steps Row Container */
#lead-times .min-w-\[1040px\] > div:nth-child(2) {
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 2rem !important; /* 32px */
  width: 100% !important;
  z-index: 2 !important;
}

/* Each Step Column - Zero out Elementor 20px gap to eliminate huge gap between lines */
#lead-times .min-w-\[1040px\] > div:nth-child(2) > .e-con,
#lead-times .w-28 {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  width: 7rem !important; /* 112px (matches Replit w-28) */
  min-width: 7rem !important;
  max-width: 7rem !important;
  flex: 0 0 7rem !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  padding-top: 3rem !important; /* 48px / pt-12 */
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  --padding-top: 3rem !important;
  --padding-block-start: 3rem !important;
  box-sizing: border-box !important;
  gap: 0 !important;
  row-gap: 0 !important;
  --gap: 0px !important;
  overflow: visible !important;
}

/* Step Dot Widget */
#lead-times .min-w-\[1040px\] > div:nth-child(2) > .e-con > .elementor-widget-mesn-tag:first-child,
#lead-times .w-28 > .elementor-widget-mesn-tag:first-child {
  position: absolute !important;
  top: 14px !important;
  left: 0 !important;
  width: 12px !important;
  height: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 10 !important;
}
#lead-times .min-w-\[1040px\] > div:nth-child(2) > .e-con > .elementor-widget-mesn-tag:first-child .elementor-widget-container,
#lead-times .min-w-\[1040px\] > div:nth-child(2) > .e-con > .elementor-widget-mesn-tag:first-child span,
#lead-times .w-28 > .elementor-widget-mesn-tag:first-child span {
  position: static !important;
  display: block !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 9999px !important;
  box-sizing: border-box !important;
}

/* Circle Colors & Halo Rings */
#lead-times .bg-slate-300 {
  background-color: #cbd5e1 !important;
  box-shadow: 0 0 0 4px #ffffff !important;
}
#lead-times .bg-orange-500 {
  background-color: #f97316 !important;
  box-shadow: 0 0 0 4px #ffffff !important;
}

/* Step Number "01".."09" */
#lead-times .min-w-\[1040px\] > div:nth-child(2) > .e-con > .elementor-widget-mesn-tag:nth-child(2),
#lead-times .w-28 > .font-mono {
  margin: 0 !important;
  font-family: monospace, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New" !important;
  font-size: 10px !important;
  line-height: 15px !important;
  color: #94a3b8 !important; /* text-slate-400 */
  display: block !important;
}

/* Big Value "3 to 5", "5", etc. */
#lead-times .font-heading.text-3xl {
  font-size: 1.875rem !important; /* 30px */
  line-height: 2.25rem !important; /* 36px */
  font-weight: 700 !important;
  margin-top: 0.5rem !important; /* 8px (matches Replit mt-2) */
  margin-bottom: 0 !important;
  white-space: nowrap !important;
}
#lead-times .font-heading.text-3xl.text-\[\#16315C\] {
  color: #16315c !important;
}
#lead-times .font-heading.text-3xl.text-orange-500 {
  color: #f97316 !important;
}

/* Unit "business days", "weeks", "days" - tight below the number */
#lead-times .text-xs.font-bold.uppercase {
  font-size: 0.75rem !important; /* 12px */
  line-height: 1rem !important; /* 16px */
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #64748b !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  white-space: nowrap !important;
}

/* Label "Quote turnaround", etc. */
#lead-times .text-xs.font-semibold.text-slate-800 {
  font-size: 0.75rem !important; /* 12px */
  line-height: 1rem !important; /* 16px */
  font-weight: 600 !important;
  color: #1e293b !important;
  margin-top: 0.5rem !important; /* 8px (matches Replit mt-2) */
  margin-bottom: 0 !important;
  overflow: visible !important;
}

/* Subtext "before tooling · no cost", etc. */
#lead-times .text-\[11px\].text-slate-500 {
  font-size: 11px !important;
  line-height: 1rem !important; /* 16px */
  color: #64748b !important;
  margin-top: 0.25rem !important; /* 4px (matches Replit mt-1) */
  margin-bottom: 0 !important;
  overflow: visible !important;
}

/* Mobile Responsive Timeline */
@media (max-width: 767px) {
  #lead-times .space-y-4 {
    padding-left: 0.75rem !important;
  }
  #lead-times .space-y-4 > div {
    position: relative !important;
    display: flex !important;
    gap: 1rem !important;
    border-left: 1px solid #e2e8f0 !important;
    padding-left: 1.25rem !important;
    margin-bottom: 1rem !important;
  }
  #lead-times .space-y-4 .rounded-full {
    margin-left: -27px !important;
    margin-top: 0.25rem !important;
    width: 0.75rem !important;
    height: 0.75rem !important;
    flex-shrink: 0 !important;
    border-radius: 9999px !important;
  }
}

/* 5. Components Tabs (#components) */
#components .component-tab-panel {
  display: none !important;
}
#components .component-tab-panel.mes-tab-active {
  display: block !important;
}
#components [data-component-tab].mes-tab-active {
  border-color: #f97316 !important;
  color: #16315c !important;
}

/* 6. Engineering Questions (#engineering-questions) */
#engineering-questions {
  background-color: #ffffff !important;
  background-image: none !important;
}
#engineering-questions h2 {
  color: #16315c !important;
}
#engineering-questions .text-slate-400,
#engineering-questions .text-slate-300 {
  color: #475569 !important;
}
#engineering-questions h3 {
  color: #16315c !important;
}

/* 7. FAQs (#faqs) - Ensure opened answers are fully visible */
#faqs .mes-2grid-faq-item--open .mes-2grid-faq-answer,
#faqs .mes-2grid-faq-answer:not([hidden]) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  color: #475569 !important;
}
#faqs .mes-2grid-faq-answer p {
  color: #475569 !important;
  font-size: 0.875rem !important;
  line-height: 1.625 !important;
}
#faqs .mes-2grid-faq-answer[hidden] {
  display: none !important;
}

/* 8. Contact / CTA Section (#contact) */
#contact {
  background: linear-gradient(rgb(6, 8, 12) 0%, rgb(10, 14, 23) 40%, rgb(6, 8, 12) 100%) !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}
/* Prevent any scroll-reveal wrapper inside contact from remaining hidden */
#contact [style*="opacity: 0"],
#contact .mes-scroll-reveal {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}
#contact h2 {
  color: #ffffff !important;
}
#contact p {
  color: #cbd5e1 !important;
}
#contact .elementor-element-5208212 {
  justify-content: center !important;
}
#contact a.elementor-element-7e44920,
#contact a[href*="contact"] {
  background: linear-gradient(rgb(249, 115, 22) 0%, rgb(234, 88, 12) 100%) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9999px !important;
  box-shadow: rgba(234, 88, 12, 0.4) 0px 10px 30px -5px, rgba(249, 115, 22, 0.2) 0px 0px 24px, rgba(255, 255, 255, 0.3) 0px 1px 0px inset !important;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out !important;
}
#contact a[href*="contact"]:hover {
  transform: translateY(-2px) !important;
}
#contact a[href*="contact"] span,
#contact a[href*="contact"] svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}
