.contact-page .legal-main {
  padding-block: clamp(22px, 4vw, 52px) clamp(38px, 6vw, 76px);
  background: #f1e9f4;
  background: radial-gradient(ellipse at 12% 0%, #fff8e4 0, transparent 65%), #f1e9f4;
}

.contact-page .legal-shell {
  width: min(1080px, calc(100% - var(--gutter) * 2));
}

.contact-page .contact-content {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  padding: 0;
  border: 0;
  background: transparent;
}

.contact-page .contact-hero {
  --contact-art-width: clamp(94px, 24vw, 285px);
  --contact-hero-padding: clamp(16px, 4.5vw, 48px);
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) var(--contact-art-width);
  gap: clamp(6px, 2vw, 20px);
  min-height: clamp(146px, 20vw, 222px);
  padding: var(--contact-hero-padding);
  overflow: hidden;
  border: 1px solid #614388;
  border-radius: clamp(16px, 2vw, 22px);
  background: linear-gradient(116deg, #22123e 18%, #422963 100%);
  color: var(--cream);
}

.contact-page .contact-hero::after {
  position: absolute;
  z-index: -1;
  inset: -8px -12px -8px 45%;
  background: radial-gradient(circle, #efd7ff 1px, transparent 1.7px) 0 0 / 16px 16px;
  mask-image: linear-gradient(90deg, transparent, #000);
  opacity: .19;
  content: "";
}

.contact-page .contact-hero h1 {
  margin: 0;
  font-size: clamp(33px, 5.2vw, 64px);
  text-wrap: pretty;
}

.contact-page .contact-hero .meta {
  margin: 0 0 9px;
  color: var(--gold);
  font-size: clamp(11px, 1.5vw, 13px);
  font-weight: 700;
  letter-spacing: .045em;
}

.contact-page .contact-hero-art {
  position: absolute;
  inset: 0 var(--contact-hero-padding) 0 auto;
  display: grid;
  place-items: end center;
  width: var(--contact-art-width);
  background: radial-gradient(ellipse at 50% 62%, #9865d655, transparent 69%);
  pointer-events: none;
}

.contact-page .contact-hero-art img {
  position: absolute;
  bottom: 0;
  width: auto;
  max-width: 100%;
  height: 99%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 5px 12px #14092580);
}

.contact-page .contact-grid,
.contact-page .contact-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 2.4vw, 28px);
}

.contact-page .contact-panel {
  min-width: 0;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid #d4c1e3;
  border-radius: 16px;
  background: #fffdf6;
  box-shadow: 0 3px 0 #ddcce966;
}

.contact-page .contact-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 31px);
  text-wrap: pretty;
}

.contact-page .contact-form-panel .contact-intro {
  margin: 0 0 18px;
  color: #624d71;
  font-size: 15px;
}

.contact-page .contact-form {
  position: relative;
  display: grid;
  gap: 14px;
}

.contact-page .contact-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.contact-page .contact-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
}

.contact-page .contact-field input,
.contact-page .contact-field select,
.contact-page .contact-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 8px 11px;
  border: 1px solid #b19ac3;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
}

.contact-page .contact-field textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-page .contact-field :is(input, select, textarea):focus {
  border-color: var(--purple);
}

.contact-page .contact-attachment input[type=file] {
  padding: 5px;
  font-size: 14px;
}

.contact-page .contact-attachment ::file-selector-button {
  min-height: 34px;
  margin-inline-end: 9px;
  padding-inline: 10px;
  border: 0;
  border-radius: 5px;
  background: #eee1f6;
  color: #452465;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.contact-page .contact-attachment input[type=file]:hover::file-selector-button {
  background: #e1cdec;
}

.contact-page .contact-attachment-hint {
  color: #624d71;
  font-size: 13px;
  font-weight: 400;
}

.contact-page .contact-optional {
  padding-inline: 12px;
  border-radius: 8px;
  background: #f1e8f6;
}

.contact-page .contact-optional[open] {
  padding-bottom: 12px;
}

.contact-page .contact-optional .contact-fields {
  margin-top: 3px;
}

.contact-page .contact-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-page .contact-form .contact-note,
.contact-page .contact-form [data-contact-feedback] {
  margin: 0;
}

.contact-page .contact-note {
  color: #624d71;
  font-size: 13px;
}

.contact-page .contact-note a,
.contact-page .contact-answer a {
  display: inline;
}

.contact-page .contact-send {
  justify-self: start;
  min-height: 46px;
}

.contact-page .contact-send:disabled {
  cursor: wait;
  opacity: .68;
}

.contact-page .contact-form [data-contact-feedback]:empty {
  display: none;
}

.contact-page .contact-form [data-contact-state="sent"] {
  color: #285b3e;
  font-weight: 700;
}

.contact-page .contact-form :is([data-contact-state="invalid"], [data-contact-state="limited"], [data-contact-state="unavailable"], [data-contact-state^="attachment_"]) {
  color: #842246;
  font-weight: 700;
}

.contact-page .contact-direct {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 10px 16px;
  padding-block: clamp(14px, 2vw, 20px);
  border-color: #cdb4e3;
  background: #f5ebfa;
}

.contact-page .contact-direct .contact-channel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  gap: 2px 8px;
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
}

.contact-page .contact-channel svg {
  align-self: center;
  width: 16px;
  height: 16px;
}

.contact-page .contact-channel strong {
  color: var(--ink);
  font-weight: 700;
}

.contact-page .contact-channel span {
  grid-column: 2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-page .contact-faq details {
  border-top: 1px solid #e2d5ea;
}

.contact-page :is(.contact-optional, .contact-faq) summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-block: 9px;
  list-style: none;
  color: #503276;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.contact-page :is(.contact-optional, .contact-faq) summary::-webkit-details-marker {
  display: none;
}

.contact-page :is(.contact-optional, .contact-faq) summary::after {
  width: 20px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(currentColor, currentColor) center / 8px 2px,
              linear-gradient(currentColor, currentColor) center / 2px 8px,
              #e9daf3;
  background-repeat: no-repeat;
  content: "";
}

.contact-page .contact-faq details[open] > summary,
.contact-page .contact-optional[open] > summary {
  color: var(--ink);
}

.contact-page .contact-faq details[open] > summary::after,
.contact-page .contact-optional[open] > summary::after {
  background-size: 8px 2px, 0 0, 100%;
}

.contact-page .contact-faq summary:hover {
  color: #3b185e;
}

.contact-page .contact-faq .contact-answer {
  margin: 0 0 14px;
  padding-right: 18px;
  color: #624d71;
  font-size: 14px;
}

@media (min-width: 490px) {
  .contact-page .contact-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 780px) {
  .contact-page .contact-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .contact-page .contact-send {
    width: 100%;
  }
}
