/* Keep the primary hero call-to-action aligned consistently on every page. */
.hero-actions {
  justify-content: center !important;
  text-align: center !important;
}

.hero-actions > .btn.btn-red.btn-large {
  margin-left: auto !important;
  margin-right: auto !important;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-submit-status {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.form-submit-status:empty { display: none; }
.form-submit-status.success { color: #176233; background: #eaf7ef; border: 1px solid #b9e1c7; }
.form-submit-status.error { color: #8f1730; background: #fff0f3; border: 1px solid #efbdc8; }
.btn-submit:disabled { cursor: wait; opacity: .72; }

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  img,
  video,
  iframe {
    max-width: 100%;
  }

  /* Keep the homepage hero stacked after all of the page's later overrides. */
  .hero .hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
  }

  .hero .hero-copy,
  .hero .hero-visual {
    width: 100% !important;
    min-width: 0 !important;
  }

  .hero .hero-visual {
    min-height: 320px !important;
    background-position: center center !important;
    background-size: contain !important;
  }

  .collaboration-network {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px !important;
  }

  .collaboration-network-list {
    min-width: 0;
    width: 100%;
  }

  .collaboration-network-list li {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .build-visual-head {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .build-visual-badge {
    align-self: flex-start;
    max-width: 100%;
    white-space: normal;
    text-align: left;
  }

  .portal-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .portal-card {
    width: 100%;
    min-width: 0;
  }

  body.employee-portal-page .menu-toggle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  /* Keep the phone icon and number together on one visible mobile row. */
  .topbar .topbar-inner {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
  }

  .topbar .topbar-meta {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .topbar .topbar-message {
    display: none !important;
  }

  .topbar .topbar-badge {
    display: inline-flex !important;
    white-space: nowrap !important;
  }

  .topbar .topbar-phone,
  .topbar .topbar-phone span {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
  }

  .topbar .topbar-phone {
    flex: 0 0 auto !important;
    gap: 6px !important;
    padding-left: 0 !important;
    border-left: 0 !important;
  }
}
