/* ==========================================================================
   INSTALLATION STEPS COMPONENT (Matches Trust Section + Plus Button & Modal)
   ========================================================================== */

.ng-trust-wrapper {
  width: min(100% - 2rem, 1170px);
  margin: 3rem auto;
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Section Header - Side by Side with Arrow Controls on Desktop */
.ng-trust-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.ng-trust-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ng-trust-title {
  font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  text-transform: capitalize !important;
  line-height: 1.2;
  color: #000000;
  margin: 0;
}

.ng-trust-subtitle {
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ng-coral, #f04b22);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  white-space: nowrap;
}

/* Desktop Arrow Navigation Controls */
.ng-trust-nav-arrows {
  display: flex;
  gap: 0.75rem;
}

.ng-trust-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #000000;
  transition: all 0.3s ease;
}

.ng-trust-arrow-btn:hover {
  background: var(--ng-coral, #FEAC97);
  color: #ffffff;
  border-color: var(--ng-coral, #FEAC97);
  transform: translateY(-2px);
}

.ng-trust-arrow-btn svg {
  width: 18px;
  height: 18px;
}

/* Horizontal Slider Track Container */
.ng-trust-slider-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.ng-trust-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  width: 100%;
  padding-bottom: 0.75rem;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.ng-trust-grid::-webkit-scrollbar {
  display: none;
}

/* Individual Card */
.ng-trust-card {
  flex: 0 0 280px;
  min-width: 280px;
  background: #0085FF;
  border-radius: 16px;
  overflow: hidden;
  border: none !important;
  height: 280px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.85rem;
  scroll-snap-align: start;
  box-shadow: none !important;
  cursor: pointer;
}

/* Video inside Card background */
.ng-card-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Floating White Text Box */
.ng-trust-card-content-box {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: 12px;
  padding: 0.8rem 0.75rem;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  gap: 0.5rem;
  transition: background-color 0.2s ease;
}

.ng-trust-card:hover .ng-trust-card-content-box {
  background: #fdfdfd;
}

/* Plus Icon Styling */
.ng-card-plus-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 133, 255, 0.1);
  color: #0085FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.ng-trust-card:hover .ng-card-plus-icon {
  background: #0085FF;
  color: #ffffff;
}

/* ==========================================================================
   MODAL POPUP STYLES
   ========================================================================== */
.ng-wiring-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(21, 21, 21, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99999;
  padding: 1rem;
  align-items: center;
  justify-content: center;
}

.ng-wiring-modal-backdrop.is-open {
  display: flex;
}

.ng-wiring-modal-dialog {
  width: 100%;
  max-width: 540px;
  background: #ffffff;
  color: #151515;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(21, 21, 21, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: ngModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ngModalPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.ng-wiring-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ng-wiring-modal-badge {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(240, 75, 34, 0.15);
  color: #f04b22;
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ng-wiring-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #F5F6F7;
  border: none;
  font-size: 1.35rem;
  line-height: 1;
  color: #151515;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.ng-wiring-modal-close:hover {
  background: #f04b22;
  color: #ffffff;
}

.ng-wiring-modal-title {
  font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #151515;
  line-height: 1.25;
  margin: 0;
}

.ng-wiring-modal-body {
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 1rem;
  line-height: 1.65;
  color: #292929;
  margin: 0;
}

.ng-wiring-modal-takeaway {
  background: rgba(0, 133, 255, 0.1);
  border-left: 4px solid #0085FF;
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ng-takeaway-label {
  font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0085FF;
}

.ng-takeaway-text {
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  color: #292929;
  margin: 0;
  line-height: 1.5;
}

/* Mobile & Tablet Adjustments */
@media (max-width: 768px) {
  .ng-trust-wrapper {
    width: min(100% - 1rem, 1170px);
  }

  .ng-trust-nav-arrows {
    display: none;
  }

  .ng-trust-card {
    flex: 0 0 240px;
    min-width: 240px;
    height: 250px;
    padding: 0.6rem;
  }

  .ng-trust-card-content-box {
    padding: 0.6rem 0.5rem;
    min-height: 50px;
    font-size: 0.7rem;
  }

  .ng-trust-title {
    font-size: 1rem;
  }

  .ng-trust-subtitle {
    font-size: 0.7rem;
    white-space: normal;
  }
}