.contact-form-panel {
  width: min(760px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: 16px auto;
  padding: 0;
  border: 1px solid #e6ebf3;
  border-radius: 14px;
  background: white;
  color: #0b1020;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.contact-form-panel::backdrop { background: rgb(0 0 0 / 35%); }
html:has(.contact-form-panel[open]) { overflow: hidden; }
.contact-form-heading {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 16px;
  border-bottom: 1px solid #e6ebf3;
  background: white;
}
.contact-form-heading h2 { margin: 0; font-size: 18px; }
[data-contact-form-error] { margin: 20px; }
[data-contact-form-host] { min-width: 0; }
[data-contact-form-host] iframe { max-width: 100%; }
[data-contact-form-host][aria-busy="true"] { min-height: 180px; }
[data-contact-form-host][aria-busy="true"]::before {
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  margin: 32px auto;
  border: 3px solid #e6ebf3;
  border-top-color: #CE191F;
  border-radius: 50%;
  animation: contact-form-loading 1s linear infinite;
}
@keyframes contact-form-loading { to { transform: rotate(360deg); } }
@media (max-width: 559px) {
  .contact-form-panel { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  [data-contact-form-host][aria-busy="true"]::before { animation: none; }
}
