.social-contact-offices,
.social-contact-main,
.social-contact-faq {
  padding-block: clamp(3rem, 7vw, 6.25rem);
}

.social-contact-offices {
  background: #f2f5f8;
  border-bottom: 1px solid var(--line, #dbe2e8);
}

.social-contact-office-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: 1.65rem;
}

.social-contact-office-header h2,
.social-contact-intro h2 {
  margin: .5rem 0 0;
  color: var(--dark, #101d30);
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.social-contact-office-header > p,
.social-contact-intro > p {
  max-width: 34ch;
  color: var(--muted, #566373);
  margin: 0;
}

.social-contact-office-grid,
.social-contact-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 4vw, 3.25rem);
}

.social-contact-office-grid {
  grid-template-areas: 'map details';
  gap: 1rem;
}

.social-contact-office-card {
  grid-area: details;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: #fff;
  border: 1px solid var(--line, #dbe2e8);
  border-radius: 8px;
}

.social-contact-office-details h3,
.social-contact-form h3 {
  margin: 0;
  color: var(--dark, #101d30);
  font-size: clamp(1.375rem, 2.7vw, 1.9rem);
  letter-spacing: -.03em;
  line-height: 1.2;
}

.social-contact-office-details p,
.social-contact-office-details address {
  color: var(--muted, #566373);
  margin: .65rem 0 0;
}

.social-contact-office-card .social-contact-field {
  margin-bottom: 1.5rem;
}

.social-contact-office-details address,
.social-contact-channels address {
  font-style: normal;
  white-space: pre-line;
}

.social-contact-office-details .social-contact-directions {
  display: inline-block;
  margin-top: 1rem;
}

.social-contact-map {
  position: relative;
  display: grid;
  grid-area: map;
  min-height: 22rem;
  overflow: hidden;
  border: 1px solid #cfdae7;
  border-radius: 8px;
  background: #e7edf4;
}

.social-contact-map > div {
  grid-area: 1 / 1;
}

.social-contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.social-contact-map-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .5rem;
  padding: 2rem;
  text-align: center;
  color: var(--dark, #101d30);
  background: radial-gradient(ellipse at center, #f7f9fc, #dbe6f1);
  z-index: 1;
}

.social-contact-map-placeholder > span {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid #d8e0e9;
  border-radius: 50%;
  color: var(--accent, #a4102f);
  background: #fff;
}

.social-contact-map-placeholder p {
  margin: .25rem 0 0;
}

.social-contact-main-grid {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
}

.social-contact-intro h2 {
  margin-bottom: 1.25rem;
}

.social-contact-channels {
  display: grid;
  gap: .55rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  color: var(--dark, #101d30);
}

.social-contact-channels li {
  display: flex;
  gap: .65rem;
  align-items: start;
  overflow-wrap: anywhere;
}

.social-contact-channels svg {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .16rem;
  flex: 0 0 auto;
  color: var(--accent, #a4102f);
}

.social-contact-mail-icon {
  position: relative;
  width: 1.125rem;
  height: .82rem;
  flex: 0 0 auto;
  margin-top: .33rem;
  border: 1.5px solid var(--accent, #a4102f);
  border-radius: 2px;
  overflow: hidden;
}

.social-contact-mail-icon::after {
  content: '';
  position: absolute;
  inset: -.36rem .2rem auto;
  height: .65rem;
  transform: rotate(45deg);
  border-right: 1.5px solid var(--accent, #a4102f);
  border-bottom: 1.5px solid var(--accent, #a4102f);
}

.social-contact-channels a:hover {
  text-decoration: underline;
}

.social-contact-intro .social-contact-employment {
  margin-top: 1.5rem;
}

.social-contact-directions,
.social-contact-consent a {
  color: var(--accent, #a4102f);
  text-decoration: underline;
  text-underline-offset: .18em;
  font-weight: 700;
}

button.social-contact-directions {
  font: inherit;
  font-weight: 700;
  background: transparent;
  border: 0;
  min-height: 2.75rem;
  padding: 0 .25rem;
  cursor: pointer;
}

.social-contact-form {
  position: relative;
  display: grid;
  gap: 1.15rem;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: #f5f7fa;
  border: 1px solid var(--line, #dbe2e8);
  border-top: 3px solid var(--accent, #a4102f);
  border-radius: 8px;
}

.social-contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem 1rem;
}

.social-contact-field {
  display: grid;
  gap: .4rem;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--dark, #101d30);
}

.social-contact-field small {
  font-size: .875rem;
  color: var(--muted, #566373);
  font-weight: 400;
}

.social-contact-field :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  padding: .75rem;
  border: 1px solid #aab9c7;
  border-radius: 5px;
  background-color: #fff;
  color: var(--dark, #101d30);
  min-height: 3rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
}

.social-contact-field select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 1.2rem center, right .9rem center;
  background-repeat: no-repeat;
  background-size: .3rem .3rem;
}

.social-contact-field textarea {
  resize: vertical;
}

.social-contact-consent {
  display: flex;
  align-items: start;
  gap: .65rem;
  color: var(--muted, #566373);
  font-size: .9375rem;
}

.social-contact-consent input {
  width: 1.125rem;
  height: 1.125rem;
  flex: 0 0 auto;
  margin: .12rem 0 0;
  accent-color: var(--accent, #a4102f);
}

.social-contact-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.social-contact-form-actions .button:disabled {
  cursor: wait;
  opacity: .72;
}

.social-contact-result {
  margin: 0;
  font-weight: 700;
}

.social-contact-result[data-status] {
  margin-top: .75rem;
}

.social-contact-result[data-status='error'] {
  color: var(--accent, #a4102f);
}

.social-contact-result[data-status='success'] {
  color: #276346;
}

.social-contact-faq {
  border-top: 1px solid var(--line, #dbe2e8);
}

.social-contact-form[hidden],
.social-contact-field[hidden],
.social-contact-map[hidden],
.social-contact-map [hidden] {
  display: none;
}

@media (max-width: 760px) {
  .social-contact-office-header {
    align-items: start;
    flex-direction: column;
  }

  .social-contact-office-grid,
  .social-contact-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .social-contact-office-grid {
    grid-template-areas: 'details' 'map';
  }

  .social-contact-map {
    min-height: 17rem;
  }
}

@media (max-width: 520px) {
  .social-contact-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .social-contact-form-actions .button {
    width: 100%;
  }
}
