/* ============================================================
   CONTACT PAGE — LAYOUT
   ============================================================ */

/* Override Astra container */
body.mf-contact .ast-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Strip Astra container padding */
body.mf-contact .site-main,
body.mf-contact #main {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  overflow-x: hidden !important;
}

/* Body section — full width background */
body.mf-contact section {
  width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Inner content — constrained to match home page */
body.mf-contact .mf-container {
  max-width: 1152px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

/* Fix empty space below footer on large screens */
body.mf-contact #content.site-content,
body.mf-contact #content.site-content .ast-container {
  min-height: unset !important;
  height: auto !important;
}

/* Hero background image position — contact page specific */
body.mf-contact .mf-page-hero {
  background-position: center 38% !important;
}

/* Mobile padding override */
@media (max-width: 768px) {
  body.mf-contact .mf-container {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }
}