/* Layout only: copy, titles, links, image and form stay native UX Builder elements. */
#footer {
  padding-top: 0;
}

#footer .ce-footer {
  padding-block: 48px !important;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
}

#footer .ce-footer .ce-footer__grid {
  display: grid;
  grid-template-columns: 1.08fr 1.08fr 0.94fr 0.94fr;
  gap: 32px;
  width: calc(100% - 64px);
  max-width: 1240px !important;
  margin: 0 auto !important;
}

#footer .ce-footer .ce-footer__grid > .ce-footer__column {
  width: auto !important;
  min-width: 0;
  max-width: none !important;
  flex-basis: auto !important;
  padding: 0 !important;
  border: 0 !important;
}

#footer .ce-footer .ce-footer__column > .col-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 !important;
}

#footer .ce-footer .section-title-container {
  width: 100%;
  padding: 0;
  margin: 0 0 18px;
}

#footer .ce-footer h3.section-title {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 68px;
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid #dbe6ec;
  color: var(--veas-secondary, #52b6c3);
  font-size: 21px;
  font-weight: 800 !important;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

#footer .ce-footer h3.section-title::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--veas-accent, #d95096);
  content: '';
}

#footer .ce-footer .section-title-main {
  padding: 0;
  border: 0;
  color: inherit;
  overflow-wrap: break-word;
}

#footer .ce-footer .section-title > b {
  display: none;
}

#footer .ce-footer p {
  margin: 0 0 12px;
  line-height: 1.6;
}

#footer .ce-footer .ce-footer__links p {
  margin: 0 0 6px;
}

#footer .ce-footer .ce-footer__links a {
  display: block;
  padding-block: 3px;
  color: #475569;
  line-height: 1.6;
  text-decoration: none;
  transition: color 180ms ease;
}

#footer .ce-footer a:not(.icon):hover {
  color: #b52d75 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#footer .ce-footer a:focus-visible,
#footer .ce-footer input:focus-visible {
  outline: 2px solid #248699;
  outline-offset: 4px;
}

#footer .ce-footer .ce-footer__column--contact .text p:first-child {
  margin-bottom: 18px;
  color: #26324a;
  font-weight: 600;
}

#footer .ce-footer .ce-footer__column--contact .text p:last-child {
  margin-bottom: 0;
}

#footer .ce-footer .ce-footer__column--about .section-title-container ~ .section-title-container,
#footer .ce-footer .ce-footer__column--visitors .section-title-container ~ .section-title-container {
  margin-top: auto !important;
  padding-top: 22px;
  margin-bottom: 14px;
}

#footer .ce-footer .section-title-container ~ .section-title-container h3 {
  min-height: 0;
  padding-bottom: 12px;
  font-size: 20px;
}

#footer .ce-footer .social-icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 46px;
  margin: 0;
}

#footer .ce-footer .social-icons .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  margin: 0 !important;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

#footer .ce-footer .wpcf7 {
  margin: 0;
  min-height: 46px;
}

#footer .ce-footer .wpcf7 form > p {
  margin-bottom: 0;
}

#footer .ce-footer .wpcf7 form {
  margin: 0;
}

#footer .ce-footer .cf7-email-label {
  display: block;
  margin: 0;
}

#footer .ce-footer input[type='email'] {
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #d6e1e9;
  border-radius: 10px;
  background: #fff;
  color: #26324a;
  font-size: 15px;
  box-shadow: none;
}

#footer .absolute-footer .container {
  max-width: 1280px;
  padding-inline: 32px;
}

@media (min-width: 1100px) {
  /* Leave the existing floating call control clear of Privacy/Contact links. */
  #footer .footer-secondary.pull-right {
    padding-right: 220px;
  }
}

@media (max-width: 1099px) {
  #footer .ce-footer .ce-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 32px;
  }

  #footer .ce-footer h3.section-title {
    min-height: 42px;
  }

  #footer .ce-footer .ce-footer__column--about .section-title-container ~ .section-title-container,
  #footer .ce-footer .ce-footer__column--visitors .section-title-container ~ .section-title-container {
    margin-top: 12px !important;
    padding-top: 12px;
  }
}

@media (max-width: 599px) {
  #footer .ce-footer {
    padding-block: 34px !important;
  }

  #footer .ce-footer .ce-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    width: calc(100% - 48px);
  }

  #footer .ce-footer .section-title-container {
    margin-bottom: 14px;
  }

  #footer .ce-footer h3.section-title {
    min-height: 0;
    font-size: 21px;
  }

  #footer .ce-footer .ce-footer__links a {
    padding-block: 7px;
  }

  #footer .absolute-footer .container {
    padding-inline: 24px;
  }
}
