.ma-dialog-open {
  overflow: hidden;
}

.ma-form-dialog {
  box-sizing: border-box;
  width: min(590px, calc(100% - 28px));
  max-height: min(86vh, calc(100% - 32px));
  margin: auto;
  padding: clamp(20px, 5vw, 36px);
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: #282131;
  box-shadow: 0 24px 70px #27163845;
  overflow: auto;
  overscroll-behavior: contain;
}

.ma-form-dialog::backdrop {
  background: #27163899;
}

.ma-form-title {
  margin: 0 46px 20px 0;
  font-size: clamp(23px, 5vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  color: #652d90;
}

.ma-form-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f4edf8;
  color: #542272;
  font: 28px/1 sans-serif;
  cursor: pointer;
}

.ma-site-form {
  display: grid;
  gap: 12px;
  text-align: left;
}

.ma-form-field {
  display: grid;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.ma-form-field input,
.ma-form-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #c9b7d4;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
}

.ma-form-field textarea { resize: vertical; }

.ma-form-dialog :focus-visible,
.ma-support-callout button:focus-visible,
.ma-map-link:focus-visible {
  outline: 2px solid #652d90;
  outline-offset: 3px;
}

.ma-form-contact {
  min-width: 0;
  margin: 2px 0;
  padding: 0;
  border: 0;
  font-size: 14px;
}

.ma-form-contact legend { margin-bottom: 7px; }

.ma-form-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.ma-form-options label,
.ma-form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.ma-form-options input,
.ma-form-check input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: #652d90;
}

.ma-form-privacy,
.ma-map-link {
  justify-self: start;
  color: #652d90;
  font-size: 14px;
  text-decoration: underline;
}

.ma-form-status {
  margin: 0;
  color: #9b2044;
  font-size: 14px;
  line-height: 1.45;
}

.ma-form-status:empty { display: none; }

.ma-form-submit {
  min-height: 46px;
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  background: #a60073;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.ma-form-submit:disabled,
.ma-form-close:disabled {
  opacity: .65;
  cursor: wait;
}

.ma-form-success {
  margin: 0;
  padding: 16px;
  border-radius: 14px;
  background: #f3edf7;
  color: #3f2650;
  font-size: 16px;
  line-height: 1.55;
}

.ma-support-callout {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 720px;
  margin: clamp(24px, 5vw, 52px) auto 0;
  padding: clamp(20px, 5vw, 38px);
  border-radius: 22px;
  background: #f4edf8;
  text-align: center;
}

.ma-support-callout p {
  max-width: 550px;
  margin: 0;
  color: #392748;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.5;
}

.ma-contacts-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f0edf3;
}

.ma-map-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 16px;
}
