/* Contact page: who to reach beside the form, the branches below. */

.st-contact-page { padding-bottom: 72px; }

.st-contact-page h1 {
  margin: 0 0 28px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
}

.st-contact-page h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.st-contact-page p {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}

.st-contact-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
  align-items: start;
}

.st-contact-card {
  display: grid;
  gap: 16px;
  padding: 32px;
  border-radius: 12px;
  background: var(--st-navy);
  color: #fff;
}

.st-contact-card h2 { margin: 0; }

.st-contact-page .st-contact-line {
  display: grid;
  gap: 2px;
  color: #fff;
  text-decoration: none;
}

.st-contact-line span {
  font-size: 13px;
  line-height: 20px;
  opacity: .75;
}

.st-contact-line strong {
  font-size: 22px;
  font-weight: 700;
  line-height: 30px;
}

.st-contact-line:hover strong,
.st-contact-line:focus-visible strong { text-decoration: underline; }

.st-contact-form {
  display: grid;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--st-line);
  border-radius: 12px;
  background: #fff;
}

.st-contact-form h2 { margin: 0; }

.st-contact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.st-contact-field {
  display: grid;
  gap: 8px;
}

.st-contact-field label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
}

.st-contact-field.required label::after {
  content: ' *';
  color: #c62828;
}

/* The fields the account forms use. */
.st-contact-field input,
.st-contact-field textarea {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 0;
  background: #f5f5f5;
  font-size: 16px;
  line-height: 24px;
}

.st-contact-field textarea {
  height: auto;
  min-height: 160px;
  padding: 10px 14px;
  resize: vertical;
}

.st-contact-field .is-invalid { border-color: #c62828; }

.st-contact-form .st-btn {
  justify-self: start;
  height: 44px;
  min-width: 160px;
}

.st-contact-page .st-contact-heading { margin: 56px 0 20px; }

.st-contact-branches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.st-contact-branch {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 24px;
  border-radius: 12px;
  background: var(--st-soft);
}

.st-contact-branch h3 {
  margin: 0 0 4px;
  color: var(--st-navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.st-contact-branch a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.st-contact-page .st-contact-open { color: var(--st-muted); }

@media (max-width: 991px) {
  .st-contact-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .st-contact-top,
  .st-contact-row { grid-template-columns: minmax(0, 1fr); }

  .st-contact-page h1 { font-size: 28px; }

  .st-contact-card,
  .st-contact-form { padding: 24px; }
}

@media (max-width: 575px) {
  .st-contact-branches { grid-template-columns: minmax(0, 1fr); }
}
