.contact-dialog {
  box-sizing: border-box;
  width: min(560px, calc(100% - 32px));
  max-width: none;
  max-height: min(94vh, 900px);
  max-height: min(94dvh, 900px);
  margin: auto;
  padding: clamp(22px, 3vw, 28px);
  overflow: auto;
  border: 1px solid #e8defc;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(23, 19, 41, .22);
  color: #171329;
  font-family: Outfit, sans-serif;
}
.contact-dialog::backdrop { background: rgba(23, 19, 41, .68); }
.contact-dialog [hidden] { display: none !important; }
.contact-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.contact-dialog-eyebrow { margin: 0 0 10px; color: #3900f2; font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.contact-dialog h2 { margin: 0; color: #171329; font: 750 clamp(30px, 5vw, 38px)/1.15 Outfit, sans-serif; letter-spacing: -.04em; }
.contact-dialog-heading p:last-child { margin: 10px 0 18px; color: #514c65; font-size: 16px; line-height: 1.5; }
.contact-dialog-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e8defc;
  border-radius: 50%;
  background: #fff;
  color: #171329;
  font: 400 29px/1 Arial, sans-serif;
  cursor: pointer;
}
.contact-form { display: grid; gap: 14px; }
.contact-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-form-field { display: grid; gap: 8px; min-width: 0; }
.contact-form-field label { color: #171329; font-size: 16px; font-weight: 700; }
.contact-form-field input,
.contact-form-field textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #a49bb7;
  border-radius: 10px;
  background: #fff;
  color: #171329;
  font: 400 16px/1.4 Outfit, sans-serif;
}
.contact-form-field textarea { min-height: 108px; resize: vertical; }
.contact-form-field [aria-invalid="true"] { border-color: #a6292d; }
.contact-form-field input:focus,
.contact-form-field textarea:focus { border-color: #3900f2; outline: 3px solid rgba(57, 0, 242, .18); }
.contact-form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form-privacy { margin: 0; color: #514c65; font-size: 14px; line-height: 1.5; }
.contact-form-privacy a { color: #3900f2; font-weight: 700; text-underline-offset: 3px; }
.contact-form-status { min-height: 0; margin: -8px 0 0; color: #514c65; font-size: 15px; line-height: 1.4; }
.contact-form-status:empty { display: none; }
.contact-form-status.is-error { color: #a6292d; }
.contact-form-submit,
.contact-form-success button {
  min-height: 50px;
  padding: 12px 24px;
  border: 0;
  border-radius: 10px;
  background: #3900f2;
  color: #fff;
  font: 750 16px/1.3 Outfit, sans-serif;
  cursor: pointer;
}
.contact-form-submit:disabled { opacity: .65; cursor: wait; }
.contact-dialog button:focus-visible,
.contact-dialog a:focus-visible { outline: 3px solid #3900f2; outline-offset: 3px; }
.contact-form-success { padding: 8px 0 0; }
.contact-form-success > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #e4f6ee; color: #0b7b53; font-size: 28px; }
.contact-form-success h3 { margin: 17px 0 8px; color: #171329; font-size: 25px; }
.contact-form-success p { margin: 0 0 25px; color: #514c65; font-size: 16px; line-height: 1.5; }
@media (max-width: 560px) {
  .contact-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 24px 20px; border-radius: 18px; }
  .contact-form-row { grid-template-columns: 1fr; gap: 19px; }
  .contact-form-submit,
  .contact-form-success button { width: 100%; }
}
