.contactus-header {
  padding: 3rem 0 1.75rem;
  text-align: center;
}

.contactus-header h1 {
  margin: .5rem 0 0;
  font-size: 2rem;
}

.contactus-header__intro p {
  margin: 1rem auto 0;
  max-width: 42rem;
}

.support-topics {
  padding: 1rem 0 1.5rem;
  background: #f7f7f7;
}

.support-topics h1,
.support-topics h2,
.support-topics__lead {
  text-align: center;
}

.support-topics h1,
.support-topics h2 {
  margin: 0;
  font-size: 1.8rem;
}

.support-topics h1 + h2 {
  margin-top: .5rem;
}

.support-topics__lead {
  margin: .75rem 0 1.25rem;
}

.tag-group {
  display: flex;
  gap: .75rem;
}

.tag {
  flex: 1 1 0;
  min-height: 3.1rem;
  padding: .65rem;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #111;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-align: center;
}

.tag.active,
.tag[aria-selected="true"] {
  border-color: #111;
  background: #e9e6e3;
}

.topic-links > ul,
.topic-modal__links > ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .9rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.topic-links a,
.topic-modal__links a {
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: .65rem;
  border: 1px solid #e5e7eb;
  background: #efedea;
  color: #1f2937;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.topic-links a:hover,
.topic-modal__links a:hover {
  background: #e5e7eb;
}

.contact-options {
  padding: 2.75rem 0 4rem;
}

.contact-options h2 {
  margin: 0 0 1.75rem;
  color: #111;
  font-size: 1.8rem;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-grid > li {
  grid-column: span 2;
}

.contact-card {
  display: block;
  overflow: hidden;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #111;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.contact-grid > li:nth-child(4) {
  grid-column: 2 / span 2;
}

.contact-grid > li:nth-child(5) {
  grid-column: 4 / span 2;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgb(0 0 0 / 12%);
}

.contact-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 2.5 / 1;
  object-fit: cover;
}

.contact-card__body {
  display: flex;
  min-height: 8.25rem;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: .85rem 1rem 1.1rem;
}

.contact-card__icon {
  width: 1.7rem;
  height: 1.7rem;
}

.contact-card strong {
  font-size: 1.05rem;
}

.contact-card__body > span:last-child {
  max-width: 18rem;
  color: #4b5563;
  font-size: .875rem;
  line-height: 1.4;
}

.contact-empty {
  grid-column: 1 / -1;
  text-align: center;
}

.contact-topic-dialog {
  width: min(36rem, calc(100vw - 2rem));
  max-height: 85vh;
  padding: 1.25rem;
  border: 0;
  box-shadow: 0 12px 36px rgb(0 0 0 / 28%);
}

.contact-topic-dialog::backdrop {
  background: rgb(0 0 0 / 48%);
}

.contact-topic-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-topic-dialog__header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.contact-topic-dialog__close {
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.topic-modal__links > ul {
  grid-template-columns: 1fr;
  gap: .8rem;
  margin: 0;
}

.topic-modal__links a {
  min-height: 3.15rem;
  padding: .8rem;
}

.contact-card:focus-visible,
.tag:focus-visible,
.topic-links a:focus-visible,
.topic-modal__links a:focus-visible,
.contact-topic-dialog__close:focus-visible {
  outline: 3px solid #005eb1;
  outline-offset: 3px;
}

@media (max-width: 899px) {
  .support-topics {
    padding: .75rem 0 1.5rem;
    background: transparent;
  }

  .tag-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
  }

  .tag {
    min-height: 5.25rem;
    border: 0;
    background: #f3f3f3;
    white-space: normal;
  }

  .topic-links {
    display: none;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid > li,
  .contact-grid > li:nth-child(4),
  .contact-grid > li:nth-child(5) {
    grid-column: auto;
  }

  .contact-card:hover {
    transform: none;
    box-shadow: none;
  }
}

@media (max-width: 599px) {
  .contactus-header {
    padding-top: 1.5rem;
  }

  .contact-options {
    padding-top: 2rem;
  }

  .contact-options h2 {
    margin-bottom: 1.25rem;
    font-size: 1.45rem;
  }

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

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