/* FMP static-site overrides */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
img,
svg,
video,
iframe {
  max-width: 100%;
}
.elementor-element-5ff3044 iframe {
  width: 100% !important;
  max-width: 100%;
}

/* Popup template widgets sit in page markup; hide until the right panel opens. */
.elementor-element-c3b616a,
.elementor-element-422c3ab,
.elementor-location-popup {
  display: none;
}

/* Live Elementor popup 9: right-side panel */
#elementor-popup-modal-9 {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  background-color: #f4f5f578;
  justify-content: flex-end;
  align-items: flex-start;
  pointer-events: all;
}
#elementor-popup-modal-9.is-open { display: flex; }
#elementor-popup-modal-9 .dialog-widget-content {
  position: relative;
  width: min(450px, 100vw);
  height: 100vh;
  background: #fff;
  box-shadow: 2px 8px 23px 3px rgb(0 0 0 / 0.2);
  overflow: auto;
  animation: fmp-panel-in 1.2s ease;
}
@keyframes fmp-panel-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
#elementor-popup-modal-9 .dialog-message {
  width: 100%;
  min-height: 100%;
  padding: 10px;
  box-sizing: border-box;
}
#elementor-popup-modal-9 .dialog-close-button {
  position: absolute;
  top: 3.9%;
  right: 7.7%;
  z-index: 10;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1f2124;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
#elementor-popup-modal-9 .dialog-close-button .eicon-close {
  font-size: 28px;
  color: #1f2124;
}
#elementor-popup-modal-9 .elementor-nav-menu--dropdown {
  display: block !important;
  background: #fff;
  border-radius: 8px;
  position: static !important;
  width: 100% !important;
  max-width: none !important;
}
#elementor-popup-modal-9 .elementor-nav-menu--dropdown a {
  display: block;
  color: #54595f;
  font-family: Raleway, sans-serif;
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 23px;
}
#elementor-popup-modal-9 .elementor-nav-menu--dropdown a:hover,
#elementor-popup-modal-9 .elementor-nav-menu--dropdown a:focus {
  background: #f4f5f5;
}
#elementor-popup-modal-9 .elementor-search-form { margin: 0 10px 16px; }
#elementor-popup-modal-9 .elementor-element-c3b616a,
#elementor-popup-modal-9 .elementor-element-422c3ab,
#elementor-popup-modal-9 .elementor-element-02544a9 { display: block !important; }
#elementor-popup-modal-9 .elementor-element-02544a9 img {
  width: min(180px, 60%);
  height: auto;
}

/* Helpdesk launcher: fixed bottom-right, expand upward (Element Pack FAB) */
.bdt-helpdesk { position: static !important; }
.bdt-helpdesk .bdt-helpdesk-icons {
  position: fixed !important;
  right: 18px !important;
  bottom: 24px !important;
  left: auto !important;
  z-index: 9999;
  width: 70px !important;
  height: 200px !important;
  overflow: visible !important;
  filter: none !important;
  pointer-events: none;
  box-sizing: border-box;
}
.bdt-helpdesk .bdt-helpdesk-icons * { pointer-events: all; }
.bdt-helpdesk .bdt-helpdesk-icons-item,
.bdt-helpdesk .bdt-helpdesk-icons-open-button {
  position: absolute !important;
  bottom: 0 !important;
  right: 0 !important;
  left: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 50px !important;
  height: 50px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #14abf4 !important;
  color: #fff !important;
  font-size: 20px !important;
  line-height: 1 !important;
  text-indent: 0;
  text-decoration: none !important;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  transition: all ease-out 200ms;
}
.bdt-helpdesk .bdt-helpdesk-icons-open-button { z-index: 2; cursor: pointer; }
.bdt-helpdesk .bdt-helpdesk-icons-item i,
.bdt-helpdesk .bdt-helpdesk-icons-open-button i {
  font-size: 20px !important;
  line-height: 1;
  color: inherit;
}
.bdt-helpdesk .bdt-helpdesk-icons-item svg,
.bdt-helpdesk .bdt-helpdesk-icons-open-button svg {
  width: 20px !important;
  height: 20px !important;
  fill: currentColor;
  stroke: currentColor;
}
.bdt-helpdesk .bdt-hdi-mailto {
  font-size: 0 !important;
  color: #fff !important;
}
.bdt-helpdesk .bdt-hdi-mailto svg {
  stroke: #fff;
  fill: none;
}
.bdt-helpdesk .bdt-helpdesk-icons-item:hover {
  background: #fff !important;
  color: #14abf4 !important;
}
.bdt-helpdesk .bdt-helpdesk-icons-item:hover svg {
  stroke: #14abf4;
  fill: none;
}
.bdt-helpdesk .bdt-helpdesk-icons-open:checked ~ .bdt-helpdesk-icons-item:nth-child(3) {
  transform: translate3d(0, -60px, 0) !important;
}
.bdt-helpdesk .bdt-helpdesk-icons-open:checked ~ .bdt-helpdesk-icons-item:nth-child(4) {
  transform: translate3d(0, -120px, 0) !important;
}
@media (min-width: 960px) {
  .bdt-helpdesk .bdt-helpdesk-icons-open:checked ~ .bdt-helpdesk-icons-item:nth-child(3) {
    transform: translate3d(0, -70px, 0) !important;
  }
  .bdt-helpdesk .bdt-helpdesk-icons-open:checked ~ .bdt-helpdesk-icons-item:nth-child(4) {
    transform: translate3d(0, -140px, 0) !important;
  }
}

/* Header logo + decorative SVGs lost real dimensions after LiteSpeed un-lazy */
.elementor-element-9716e0a img {
  width: 180px !important;
  max-width: 70vw;
  height: auto !important;
}
.elementor-element-45d972f img {
  width: min(220px, 70vw) !important;
  height: auto !important;
}

.fmp-menu-toggle { cursor: pointer; }

/* Math captcha + form banners */
.elementor-form .e-form__buttons {
  overflow: visible;
}
.fmp-captcha {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 6px 10px;
  border: 1px solid #d5e8ee;
  border-radius: 8px;
  background: #f4fbfd;
  box-sizing: border-box;
}
.fmp-captcha-label {
  font: 600 14px/1 Arial, sans-serif;
  color: #09414F;
  margin: 0;
}
.fmp-captcha-label strong { font-size: 15px; color: #00AFEF; }
.elementor-form .fmp-captcha-input,
.fmp-captcha-input {
  width: 48px !important;
  height: 36px !important;
  padding: 0 4px !important;
  border: 1px solid #9ec9d6 !important;
  border-radius: 8px !important;
  text-align: center;
  font: 700 15px/1 Arial, sans-serif;
  color: #09414F;
  background: #fff !important;
}
.elementor-form button.fmp-captcha-refresh,
.fmp-captcha-refresh {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #9ec9d6 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #09414f !important;
  box-shadow: 0 1px 3px rgba(9, 65, 79, 0.12) !important;
  cursor: pointer;
  font-size: 0 !important;
  line-height: 1 !important;
  text-indent: 0 !important;
}
.elementor-form button.fmp-captcha-refresh svg,
.fmp-captcha-refresh svg.lucide {
  width: 16px !important;
  height: 16px !important;
  stroke: #09414f !important;
  fill: none !important;
  display: block !important;
}
.elementor-form button.fmp-captcha-refresh:hover,
.fmp-captcha-refresh:hover {
  background: #e6f7fd !important;
  color: #09414f !important;
}
.fmp-captcha-msg {
  flex-basis: 100%;
  margin: 0;
  font: 600 12px/1.4 Arial, sans-serif;
  color: #b42318;
  white-space: normal;
}
.fmp-form-banner {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font: 600 14px/1.5 Arial, sans-serif;
}
.fmp-form-banner.is-ok { background: #ecfdf3; border: 1px solid #10b981; color: #065f46; }
.fmp-form-banner.is-err { background: #fef2f2; border: 1px solid #ef4444; color: #991b1b; }

.fmp-business-hours { margin: 6px 0 0; font-size: 15px; color: rgba(255, 255, 255, 0.66) !important; }

/* Responsive */
@media (max-width: 1024px) {
  .elementor-element-9716e0a img { width: 150px !important; }
  .elementor-section.elementor-section-boxed > .elementor-container {
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 767px) {
  #elementor-popup-modal-9 .dialog-widget-content {
    width: 100vw;
  }
  #elementor-popup-modal-9 .dialog-close-button {
    top: 12px;
    right: 16px;
    font-size: 24px;
  }
  .elementor-element-9716e0a img { width: 132px !important; }
  .fmp-captcha {
    flex-wrap: wrap;
    white-space: normal;
  }
  .bdt-helpdesk .bdt-helpdesk-icons {
    right: 12px !important;
    bottom: 16px !important;
  }
  .elementor-element-af23560 {
    display: none;
  }
  .elementor-location-header .elementor-element-71cbe0e > .elementor-container {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
  }
  .elementor-location-header .elementor-column.elementor-col-50 {
    width: 50% !important;
  }
  .elementor-element-5ff3044 iframe {
    min-height: 240px;
  }
}
@media (max-width: 480px) {
  .elementor-heading-title {
    word-wrap: break-word;
  }
}
