.contact-page .contact-main {
  min-height: calc(100vh - 83px);
  min-height: calc(100dvh - 83px);
  padding: 24px 0;
  scroll-margin-top: 83px;
  background: #eef8f1;
}

.contact-page .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
  gap: clamp(42px, 5vw, 72px);
  align-items: start;
}

.contact-details {
  padding-top: clamp(10px, 2vw, 28px);
}

.contact-details h2,
.contact-form h2 {
  margin: .35rem 0 1rem;
  color: #101b16;
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.contact-details > p:not(.eyebrow),
.contact-form-heading > p:not(.eyebrow) {
  color: #52665d;
  line-height: 1.7;
}

.contact-direct {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 26px 0 20px;
}

.contact-direct-card {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 20px;
  border: 1px solid #cfe3d7;
  border-radius: 18px;
  background: #f3faf5;
  color: #101b16;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.contact-direct-card:hover {
  border-color: #00843d;
  box-shadow: 0 14px 34px rgba(15, 48, 33, .1);
  transform: translateY(-2px);
}

.contact-direct-icon {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #00843d;
  color: #fff;
}

.contact-direct-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-direct-card small,
.contact-office span {
  display: block;
  margin-bottom: 4px;
  color: #486257;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-direct-card strong {
  display: block;
  white-space: nowrap;
  font-size: .98rem;
}

.contact-office {
  display: grid;
  gap: 8px;
  padding: 22px 0;
  border-top: 1px solid #dce8e1;
  border-bottom: 1px solid #dce8e1;
}

.contact-office p {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  margin: 0;
  line-height: 1.5;
}

.contact-route {
  margin-top: 24px;
}

.contact-route a,
.contact-consent a,
.mmc-success-help a {
  color: #006b33;
  font-weight: 800;
}

.contact-form {
  padding: 24px;
  border: 1px solid #d7e5dd;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16, 45, 31, .1);
}

.contact-form-heading {
  margin-bottom: 22px;
}

.contact-form-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.contact-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #15231c;
  font-weight: 800;
}

.contact-field-wide {
  grid-column: 1 / -1;
}

.contact-form input:not([type="checkbox"]),
.contact-form textarea {
  width: 100%;
  border: 1px solid #aebfb6;
  border-radius: 10px;
  background: #fff;
  color: #101b16;
  font: inherit;
  font-weight: 400;
}

.contact-form input:not([type="checkbox"]) {
  min-height: 52px;
  padding: 0 15px;
}

.contact-form textarea {
  height: 112px;
  min-height: 112px;
  padding: 14px 15px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #00843d;
  outline: 3px solid rgba(0, 132, 61, .18);
  outline-offset: 1px;
}

.contact-consent {
  grid-template-columns: 22px 1fr !important;
  gap: 11px !important;
  margin: 24px 0;
  color: #52665d !important;
  font-size: .92rem;
  font-weight: 500 !important;
  line-height: 1.55;
}

.contact-consent input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: #00843d;
}

.contact-submit {
  width: 100%;
}

.contact-submit[aria-busy="true"] {
  cursor: wait;
  opacity: .72;
}

.contact-form-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: #9c291e;
  font-weight: 800;
  line-height: 1.5;
}

.contact-form-status:empty {
  min-height: 0;
  margin: 0;
}

.contact-noscript-name {
  margin-top: 20px;
}

.contact-privacy-dialog {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  color: #101b16;
}

.contact-privacy-dialog::backdrop {
  background: rgba(5, 18, 12, .72);
}

.contact-privacy-panel {
  position: relative;
  width: min(100% - 40px, 920px);
  margin: 0 auto;
  padding: clamp(52px, 7vw, 88px) 0 70px;
}

.contact-privacy-close {
  position: fixed;
  top: 18px;
  right: 24px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #bdd3c6;
  border-radius: 50%;
  background: #fff;
  color: #101b16;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16, 45, 31, .12);
}

.contact-privacy-header {
  padding-bottom: 24px;
  border-bottom: 1px solid #dce8e1;
}

.contact-privacy-header h2 {
  margin: .35rem 0 0;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
}

.contact-privacy-content {
  padding: 28px 0;
}

.contact-privacy-bottom-close {
  min-width: 150px;
}

html.contact-privacy-open {
  overflow: hidden;
}

.confirmation-page .mmc-success-help,
.utility-page .mmc-success-help {
  margin-top: 28px;
  font-size: .95rem;
}

@media (max-width: 980px) {
  .contact-page .contact-main {
    min-height: 0;
    padding: 68px 0;
  }

  .contact-page .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-details {
    padding-top: 0;
  }

  .contact-form {
    padding: clamp(28px, 4vw, 38px);
  }

  .contact-form-fields {
    gap: 20px 18px;
  }

  .contact-form textarea {
    height: auto;
    min-height: 148px;
  }
}

@media (min-width: 981px) and (max-height: 760px) {
  .contact-page .contact-main {
    padding: 20px 0;
  }

  .contact-form {
    padding: 20px;
  }

  .contact-form input:not([type="checkbox"]) {
    min-height: 44px;
  }

  .contact-form textarea {
    height: 96px;
    min-height: 96px;
  }
}

@media (max-width: 620px) {
  .contact-direct,
  .contact-form-fields {
    grid-template-columns: 1fr;
  }

  .contact-field-wide {
    grid-column: auto;
  }

  .contact-office p {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .contact-form {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .contact-direct-card strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .contact-privacy-panel {
    width: min(100% - 28px, 920px);
    padding-top: 72px;
  }

  .contact-privacy-close {
    top: 12px;
    right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-direct-card {
    transition: none;
  }
}
