/* ---- Phone layout fixes ---- */
@media (max-width: 767px) {
  /* Stop the page sliding sideways (the hidden slide-in menu was widening it). */
  html,
  body {
    overflow-x: clip;
  }

  /* Keep the slide-in menu out of the way until it is opened. */
  .uichemy-nav-0-u0 .uichemy-nav-0-u0__menu {
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease !important;
  }
  .uichemy-nav-0-u0.uc-nav-open .uichemy-nav-0-u0__menu {
    visibility: visible;
  }

  /* The menu button stays on top so it can also close the menu. */
  .uichemy-nav-0-u0 .hamburger {
    position: relative;
    z-index: 10000;
  }

  .uichemy-nav-0-u0 .uichemy-nav-0-u0__actions {
    margin-top: 10px;
  }

  /* 16px stops iPhones zooming in when a form field is tapped. */
  .uc-form .uc-input {
    font-size: 16px !important;
  }
}

@media (max-width: 480px) {
  /* Phone number and Free Consultation sit side by side instead of one being pushed off screen. */
  .uichemy-nav-0-u0 .uichemy-nav-0-u0__actions {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    height: 44px !important;
    gap: 8px !important;
  }
  .uichemy-nav-0-u0 .uichemy-nav-0-u0__phone,
  .uichemy-nav-0-u0 .uichemy-nav-0-u0__cta {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0;
    height: 100% !important;
    padding: 0 8px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }
  .uichemy-nav-0-u0 .uichemy-nav-0-u0__phone {
    gap: 6px !important;
  }
  .uichemy-nav-0-u0 .uichemy-nav-0-u0__phone span {
    font-size: 13px !important;
  }
}

/* ---- Contact details turned into links ---- */
a.accf-contact-link {
  color: inherit;
  text-decoration: none;
}
a.accf-contact-link:hover {
  text-decoration: underline;
}

/* ---- "Page not found" page ---- */
.accf-404 {
  background: #f5f7fa;
  padding: 96px 20px;
  box-sizing: border-box;
}
.accf-404__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.accf-404__eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #e2241f;
}
.accf-404__title {
  margin: 12px 0 0;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 1.2;
  color: #0d2c4c;
}
.accf-404__text {
  margin: 16px 0 0;
  font-family: Inter, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #46586c;
}
.accf-404__buttons {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.accf-404__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: filter 0.2s ease, background 0.2s ease;
}
.accf-404__btn--primary {
  background: #e2241f;
  color: #ffffff;
}
.accf-404__btn--primary:hover {
  filter: brightness(0.92);
  color: #ffffff;
}
.accf-404__btn--outline {
  border: 2px solid #0d2c4c;
  color: #0d2c4c;
}
.accf-404__btn--outline:hover {
  background: #0d2c4c;
  color: #ffffff;
}
.accf-404__btn:focus-visible {
  outline: 2px solid #0d2c4c;
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .accf-404 {
    padding: 64px 16px;
  }
  .accf-404__title {
    font-size: 30px;
  }
}
