.contact-form-gate { margin-top: 2rem; }
.contact-disclosure { padding: .25rem 1.25rem; border-radius: 1rem; background: var(--soft, #edf3f9); }
.contact-disclosure strong { color: var(--ink, #213449); }
.contact-network-note, .contact-form-status { color: var(--muted, #516478); }
.contact-open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: .75rem 1.25rem;
  border: 1px solid #416f9b;
  border-radius: .75rem;
  background: #416f9b;
  color: #fff;
  font: inherit;
  font-weight: 650;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.contact-open-button:hover { background: #345c82; }
.contact-open-button:focus-visible, .contact-form-frame:focus-visible {
  outline: 3px solid var(--accent, #416f9b);
  outline-offset: 4px;
}
.contact-form-status { min-height: 1.75em; }
.contact-form-region { width: 100%; margin: 1.25rem 0; }
.contact-form-region[hidden] { display: none; }
.contact-form-frame {
  display: block;
  width: 100%;
  height: max(44rem, 75vh);
  border: 1px solid var(--line, #c8d8e8);
  border-radius: .75rem;
  background: #fff;
}
.contact-direct-link { margin-top: 1rem; }
.contact-fallback { margin-top: 2rem; }
@media (max-width: 560px) {
  .contact-disclosure { padding-inline: .875rem; }
  .contact-open-button { width: 100%; }
  .contact-form-frame { height: max(44rem, 85vh); }
}
@media (prefers-color-scheme: dark) {
  .contact-open-button { border-color: #9abfe1; }
  .contact-open-button:hover { background: #2e557b; }
}

/* Keep the disclosure readable at 320px and 3x text, without changing the legacy comparison stylesheet. */
.contact-disclosure { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .contact-disclosure { padding-inline: 8px; } }
