/* CONTACT PAGE FIX */
.mp-contact-page {
  max-width: 1200px !important;
  width: calc(100% - 32px) !important;
  margin: 40px auto 80px !important;
  padding: 0 !important;
  color: #062d4f;
  overflow: visible !important;
}

.mp-contact-page * {
  box-sizing: border-box;
}

.mp-contact-box {
  background: #eef6fc;
  border: 1px solid #d6e7f3;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(6,45,79,.10);
}

.mp-contact-intro,
.mp-contact-cards,
.mp-form-box,
.mp-service-box {
  padding: clamp(24px, 4vw, 44px);
}

.mp-contact-intro {
  padding-bottom: 18px;
}

.mp-contact-page h2 {
  color: #062d4f;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
}

.mp-contact-page p {
  color: #24496b;
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

.mp-contact-cards {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px;
  padding-top: 0;
}

.mp-contact-card {
  background: #fff;
  border: 1px solid #cfe2f1;
  border-radius: 22px;
  padding: 24px;
  min-height: 165px;
  box-shadow: 0 12px 34px rgba(6,45,79,.06);
  overflow: hidden;
}

.mp-contact-card h3 {
  color: #062d4f;
  font-size: 27px;
  line-height: 1.05;
  margin: 0 0 14px;
}

.mp-contact-card p,
.mp-contact-card a {
  color: #24496b !important;
  font-size: 17px;
  line-height: 1.55;
  text-decoration: none !important;
  word-break: normal;
  overflow-wrap: anywhere;
}

.mp-form-box {
  background: #fff;
  border-top: 1px solid #d6e7f3;
}

.mp-form-box form {
  max-width: 100% !important;
}

.mp-form-box input,
.mp-form-box textarea,
.mp-form-box select {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.mp-service-box {
  background: #f7fbff;
  border-top: 1px solid #d6e7f3;
}

.mp-map-wrap {
  margin-top: 22px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 20px;
}

/* hide old contact grid styles if they are still on the page */
.content-grid,
.content-panel {
  all: unset;
}

@media (max-width: 1050px) {
  .mp-contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .mp-contact-page {
    width: calc(100% - 20px) !important;
    margin: 24px auto 60px !important;
  }

  .mp-contact-box {
    border-radius: 22px;
  }

  .mp-contact-cards {
    grid-template-columns: 1fr !important;
  }

  .mp-contact-card {
    min-height: auto;
  }
}