/* Contact page: on tablet and mobile, show the message form before the contact details. */
@media (max-width: 63.99em) {
  .contact-hero-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .contact-hero-copy { display: contents !important; }
  .contact-hero-copy > .eyebrow,
  .contact-hero-copy > h1,
  .contact-hero-copy > .lead { order: 0; }
  .contact-hero-layout > .contact-mailer {
    order: 1 !important;
    width: 100% !important;
    max-width: 42rem !important;
    margin: 0 auto !important;
  }
  .contact-hero-copy > .contact-hero-options {
    order: 2 !important;
    width: 100% !important;
  }
}

/* Tablet contact page: mirror the centered mobile presentation. */
@media (min-width: 40em) and (max-width: 63.99em) {
  .page-header:has(.contact-hero-options) > .container,
  .contact-hero-layout {
    width: min(100% - 2.5rem, 42rem) !important;
    margin-inline: auto !important;
    align-items: center !important;
    text-align: center !important;
  }
  .contact-hero-copy {
    align-self: center !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
  }
  .contact-hero-copy > .eyebrow {
    margin-inline: auto !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .contact-hero-copy > h1,
  .contact-hero-copy > .lead {
    max-width: 100% !important;
    margin-inline: auto !important;
    text-align: center !important;
  }
  .contact-mailer {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    text-align: center !important;
  }
  .contact-mailer h2,
  .contact-mailer-intro,
  .contact-mailer label,
  .contact-mailer-status { text-align: center !important; }
  .contact-form-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: stretch !important;
    text-align: center !important;
  }
  .contact-field,
  .contact-field-wide { width: 100% !important; text-align: center !important; }
  .contact-field input,
  .contact-field textarea { text-align: center !important; }
  .contact-mailer-submit { display: flex !important; margin-inline: auto !important; }
  .contact-hero-options {
    width: 100% !important;
    justify-items: center !important;
    text-align: center !important;
  }
  .contact-hero-options .contact-card {
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    justify-items: center !important;
    text-align: center !important;
  }
  .contact-hero-options .contact-card .icon-tile { grid-column: 1 !important; grid-row: 1 !important; }
  .contact-hero-options .contact-card h2 { grid-column: 1 !important; grid-row: 2 !important; text-align: center !important; }
  .contact-hero-options .contact-card-detail {
    grid-column: 1 !important;
    grid-row: 3 !important;
    align-items: center !important;
    text-align: center !important;
  }
  .contact-hero-options .contact-card-detail p,
  .contact-hero-options .contact-card-detail .contact-value,
  .contact-hero-options .hours-table td { text-align: center !important; }
}
