body {
  overflow-x: hidden;
}

#fch-info-hub * {
  box-sizing: border-box;
}

#fch-svg-map-popup,
.fch-map-popup {
  box-shadow: 0 6px 32px #0001;
  border-radius: 18px;
  padding: 28px 34px 18px 34px;
  background: #fff;
  z-index: 100;
  border: 1.5px solid #e5e7eb;
  font-family: inherit;
  font-size: 1em;
  color: #222;
  display: none;
  width: 250px;
  max-width: 380px;
  max-height: 90vh;
  overflow-y: auto;
  position: absolute;
  left: 0;
  top: 0;
  transform: none;
  transform-origin: top left;
}

/* Ensure the SVG map scales within its container */
#fch-svg-map {
  width: var(--fch-map-desktop, 100%);
  height: auto;
  display: block;
  margin: 0;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
#fch-svg-map-popup .fch-popup-close {
  position: absolute;
  right: 16px;
  top: 11px;
  font-size: 1.5em;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #8b95b3;
}
#fch-svg-map-popup .fch-popup-title {
  font-weight: 700;
  font-size: 1.19em;
  color: #1d4ed8;
}
#fch-svg-map-popup .fch-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #c8d8ff;
  padding: 10px 16px;
  margin: -28px -34px 18px -34px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
#fch-svg-map-popup .fch-popup-header .fch-popup-close {
  position: static;
  right: auto;
  top: auto;
}
#fch-svg-map-popup .fch-popup-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
#fch-svg-map-popup .fch-popup-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
#fch-svg-map-popup .fch-popup-name {
  font-weight: 600;
  color: #2b314d;
  flex: 1 1 auto;
  min-width: 0;
}
#fch-svg-map-popup .fch-popup-logo {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 7px;
  background: #f1f3f8;
  border: 1px solid #dbeafe;
}
#fch-svg-map-popup .fch-popup-website {
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 7px;
  width: 32px;
  height: 32px;
  padding: 0;
  margin-left: auto;
  transition: background 0.13s;
}
#fch-svg-map-popup .fch-website-icon {
  width: 16px;
  height: 16px;
  display: block;
}
#fch-svg-map-popup .fch-popup-website:hover {
  background: #1d4ed8;
}

#fch-svg-map path[tabindex="0"]:focus {
  outline: none;
  outline-offset: 2.5px;
}

/* Ensure main container stays centered */
#fch-info-hub {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 0 15px;
}

#fch-map-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#fch-map-container {
  flex: 1 1 auto;
  text-align: center;
}

#fch-map-svg-container {
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: inline-block;
}

#fch-stats-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  margin-left: 0;
  width: 100%;
  max-width: 100%;
}

.fch-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.fch-region-row {
  flex-wrap: nowrap;
}

.fch-region-row .fch-stat-card {
  flex: 1;
}

.fch-stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  box-sizing: border-box;
  min-width: 0;
}

.fch-stat-card:hover {
  transform: translateY(-5px);
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 32px #3b82f660, 0 2px 8px #3b82f633;
}

.fch-stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: #3b82f6;
  display: block;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  #fch-info-hub {
    padding: 0 10px;
    max-width: 100vw;
    overflow-x: hidden;
  }
  /* Ensure the SVG map fits mobile screens */
  #fch-svg-map {
    width: var(--fch-map-mobile, 100%) !important;
  }
  #fch-map-row {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
  }
  #fch-map-container {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
  #fch-map-svg-container {
    width: 100%;
    max-width: 100%;
    display: inline-block;
  }
  #fch-stats-container {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-top: 20px;
  }
  .fch-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    width: 100%;
  }
  .fch-region-row {
    flex-wrap: wrap;
  }
  .fch-region-row .fch-stat-card {
    flex: 1 1 calc(50% - 6px);
    min-width: 140px;
  }
}

@media (max-width: 480px) {
  #fch-info-hub {
    padding: 0 5px;
  }
  .fch-stat-card {
    padding: 1.5rem;
  }
  .fch-stat-number {
    font-size: 2.5rem;
  }
  .fch-faq-button {
    right: 10px;
    bottom: 10px;
  }
}

/* FAQ styling */
#fch-faq-container {
  margin-top: 40px;
}
#fch-faq-container h2 {
  text-align: center;
}

.fch-faq-item {
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.fch-faq-question {
  background: #445bff;
  color: white;
  font-weight: 600;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border: none;
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
  outline: none !important;
}

.fch-faq-question:hover {
  background: #445bff;
}

.fch-faq-answer {
  background: #9fabff;
  line-height: 1.45;
  color: black;
  border-top: 5px solid #798aff;
  border-bottom: 10px solid #6d7ad8;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 16px;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}
.fch-faq-item.open .fch-faq-answer {
  max-height: 500px;
  opacity: 1;
  padding: 12px 16px;
}

.fch-faq-arrow {
  transition: transform 0.2s ease;
}

/* Logo grid */
.fch-logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0 auto;
  max-width: 1340px;
}

.fch-logos-grid img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
}

.fch-logo-link {
  display: block;
}

/* Animated partner logo slider */
.fch-partners {
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  padding-bottom: 4rem;
}

.fch-partners-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(45deg, #fff, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
  padding: 2rem;
}

.fch-slider-container {
  --duration: 30s;
  will-change: transform;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

/* SEAMLESS SLIDER FIX */
.fch-logo-slider {
  --logo-size: 120px;
  --logo-gap: 30px;
  --loop-width: calc(
    (var(--logo-size) + var(--logo-gap)) * var(--logo-count, 1)
  );
  display: flex;
  gap: var(--logo-gap);
  width: calc(var(--loop-width) * 2 - var(--logo-gap));
  animation: fch-slide var(--duration, 30s) linear infinite;
  box-sizing: border-box;
}

.fch-logo-item {
  flex: 0 0 var(--logo-size);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* NO margin here, all spacing from gap */
}

/* The magic: animate by exactly one set (logo+gap)*logo-count */
@keyframes fch-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--loop-width)));
  }
}

.fch-logo-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 3px solid rgba(59, 130, 246, 0.3);
  overflow: hidden;
}

.fch-logo-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
  border-color: rgba(59, 130, 246, 0.8);
}

.fch-logo-circle img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  margin-top: 0;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.fch-logo-circle img:hover {
  transform: scale(1.04);
}

/* MOBILE OVERRIDES */
@media (max-width: 700px) {
  .fch-slider-container {
    padding: 2rem 1rem;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
  }
  .fch-slider-nav {
    font-size: 1.2rem;
    padding: 0.25rem 0.5rem;
  }
  .fch-logo-item {
    flex: 0 0 var(--logo-size);
    height: 60px;
  }
  .fch-logo-circle {
    width: 60px;
    height: 60px;
  }
  .fch-logo-circle img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: contain;
    display: block;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
      margin 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .fch-logo-circle img:hover {
    transform: scale(1.06);
  }
  .fch-logo-slider {
    --logo-size: 100px;
    --logo-gap: 18px;
    --loop-width: calc(
      (var(--logo-size) + var(--logo-gap)) * var(--logo-count, 1)
    );
    gap: var(--logo-gap);
    width: calc(var(--loop-width) * 2 - var(--logo-gap));
    animation: fch-slide var(--duration, 25s) linear infinite;
  }
}

/* Contact Forms */
.fch-contact-wrapper {
  margin-bottom: 2rem;
}
.fch-contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}
.fch-form-title {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.fch-form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.fch-contact-form label {
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

.fch-contact-form .fch-input,
.fch-contact-form .fch-input-textarea {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.fch-contact-form .fch-submit {
  align-self: flex-start;
  padding: 15px 30px;
  background: #1b5c9d;
  color: #fff;
  border: none;
  border-radius: 25px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  cursor: pointer;
  box-shadow: 0 6px 0 0 #4189d1;
}

.fch-contact-form .fch-submit:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 0 #4189d1;
  border: none;
}

.fch-contact-form .fch-submit:focus {
  outline-width: 0px !important;
  outline-style: none !important;
}

.fch-form-section {
  border: 1px solid #1161b1;
  padding: 30px 40px;
  margin-bottom: 20px;
  border-radius: 25px;
  box-shadow: 0 0 15px 3px #00162d;
}
/* Section Title Styling */
.fch-section-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4rem;
  background: linear-gradient(45deg, #fff, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding: 0;
}

/* FAQ Button and Overlay */
.fch-faq-button {
  position: fixed;
  bottom: 38px;
  right: 36px;
  width: 56px;
  height: 56px;
  background: rgb(23 87 255);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.2), 0 0 10px 3px rgb(0 88 255);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  padding: 0;
  outline: none;
  transition: box-shadow 0.25s, transform 0.18s;
  color: #dbe9ff;
}
.fch-faq-button:hover,
.fch-faq-button:focus {
  box-shadow: 0 8px 32px #3b82f660, 0 2px 8px #3b82f633;
  transform: scale(1.07);
}

.fch-faq-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.fch-faq-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fch-faq-modal {
  background: #1e31bf;
  border-radius: 50px;
  border-right: 15px solid #4e63ff;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 2rem;
  margin: 1rem;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.fch-faq-overlay.active .fch-faq-modal {
  transform: scale(1);
  opacity: 1;
}

.fch-faq-close {
  position: absolute;
  top: 10px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
}

@media (max-width: 768px) {
  .fch-faq-button {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
}
