.sp-contact-page-block {
  width: min(100% - 32px, 620px);
  margin: clamp(24px, 5vw, 56px) auto;
  scroll-margin-top: 85px;
}

.contact-form-card:has(> .sp-shared-contact),
.seo-form-card:has(> .sp-shared-contact),
.wd-form-card:has(> .sp-shared-contact) {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.contact-form-card:has(> .sp-shared-contact) > h3,
.seo-form-card:has(> .sp-shared-contact) > h3,
.wd-form-card:has(> .sp-shared-contact) > h3,
.seo-form-card:has(> .sp-shared-contact) > noscript,
.wd-form-card:has(> .sp-shared-contact) > noscript {
  display: none;
}

.sp-shared-contact,
.sp-shared-contact * {
  box-sizing: border-box;
}

.sp-shared-contact {
  width: 100%;
  min-width: 0;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid #6f65a6;
  border-radius: 14px;
  background: #29234f;
  color: #fff;
  line-height: 1.52;
}

.sp-shared-contact h3.sp-shared-contact-title {
  color: #fff;
  font: inherit;
  font-size: 1.24rem;
  font-weight: 750;
  margin: 0 0 12px;
}

.sp-shared-contact form.sp-contact-fields {
  display: grid;
  gap: 10px;
  margin: 0;
}

.sp-shared-contact .sp-contact-fields label {
  display: block;
  min-width: 0;
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
}

.sp-shared-contact .sp-contact-fields :is(input:not([type="hidden"]), select, textarea) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 4px 0 0;
  padding: 8px 10px;
  color: #13162c;
  background: #fff;
  border: 1px solid #b5b0db;
  border-radius: 6px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
}

.sp-shared-contact .sp-contact-fields textarea {
  resize: vertical;
}

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

.sp-shared-contact .sp-contact-fields :is(p.sp-contact-note, p.sp-contact-status) {
  color: #e7e5ff;
  font-size: .83rem;
  margin: 0;
}

.sp-shared-contact .sp-contact-fields a {
  color: #fff;
  text-decoration: underline;
}

.sp-shared-contact .sp-contact-status {
  border: 1px solid #a49bcf;
  padding: 8px 10px;
  border-radius: 6px;
}

.sp-shared-contact .sp-contact-fields button.sp-contact-submit {
  justify-self: start;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #d4fcf0;
  color: #12243a;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.sp-shared-contact .sp-contact-fields button.sp-contact-submit:hover {
  background: #b6f1e0;
}

.sp-shared-contact [hidden] {
  display: none !important;
}

.sp-shared-contact .sp-contact-fields :focus-visible {
  outline: 3px solid #b9a2ff;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .sp-shared-contact .sp-contact-row {
    grid-template-columns: 1fr;
  }
}
