.contact-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: var(--plat-paper);
  background: #111918;
}

.contact-hero-art {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.contact-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 55%;
}

.contact-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #111918 0%, #111918e0 30%, #11191848 65%, transparent 100%);
}

.contact-hero-inner { padding-block: clamp(44px, 6.7vw, 91px) clamp(66px, 8vw, 107px); }
.contact-hero h1 { font-size: clamp(3rem, 7vw, 7.3rem); line-height: .94; }
.contact-hero p { max-width: 31rem; margin-top: 20px; color: #ece7d9; font-size: clamp(1.05rem, 1.65vw, 1.24rem); text-wrap: pretty; }
.contact-hero .platform-button { margin-top: 24px; gap: 19px; color: var(--plat-ink); }
.contact-hero :focus-visible { outline-color: var(--plat-light-focus); }

.contact-desk {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(230px, 1fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: start;
  margin-block: -30px clamp(48px, 7vw, 96px);
}

.contact-sheet {
  padding: clamp(20px, 4vw, 50px);
  border: 1px solid #e1d6bd;
  border-radius: 21px;
  background: var(--plat-surface);
  box-shadow: 0 24px 55px -37px #33255670;
}

.contact-sheet-header { margin-bottom: clamp(20px, 3vw, 36px); }
.contact-sheet-header h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.contact-sheet-header p { margin-top: 8px; color: var(--plat-ink-muted); }
.contact-form { position: relative; display: grid; gap: 23px; }
.contact-topics { min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-topics legend { padding: 0; margin-bottom: 11px; font-weight: 720; }
.contact-topic-grid, .contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.contact-fields { gap: 15px 14px; }

.contact-topic {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 12px 10px;
  min-height: 69px;
  border: 1px solid #ddd3be;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .16s, background .16s;
}

.contact-topic:hover { border-color: #975b3c; }
.contact-topic:last-child { grid-column: 1 / -1; }
.contact-topic:has(:checked) { border-color: #965139; background: #fae9d6; }
.contact-topic input { width: 16px; height: 16px; margin: 4px 0 0; accent-color: #8b492e; }
.contact-topic strong, .contact-help strong { display: block; font-weight: 725; }
.contact-topic small, .contact-help small { display: block; color: var(--plat-ink-muted); font-size: .82rem; line-height: 1.35; }
.contact-field { display: grid; min-width: 0; align-content: start; gap: 5px; }
.contact-field > label { font-weight: 695; }
.contact-field small { color: var(--plat-ink-muted); font-size: .83rem; font-weight: 400; }
.contact-field > label small { margin-inline-start: 4px; }

.contact-field :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 8px 11px;
  border: 1px solid #8a8b77;
  border-radius: 8px;
  color: var(--plat-ink);
  background: #fffef8;
  font: inherit;
}

.contact-field textarea { resize: vertical; min-height: 106px; }
.contact-field :is(input, select, textarea):hover { border-color: #655b49; }
.contact-form [aria-invalid="true"] { border-color: var(--plat-bad); }
.contact-field-error { color: #873825; font-size: .84rem; font-weight: 650; }
.contact-topics .contact-field-error { margin-top: 6px; }
.contact-trap { position: absolute; overflow: hidden; clip-path: inset(50%); width: 1px; height: 1px; white-space: nowrap; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 18px; }
.contact-actions .platform-button { gap: 18px; font-size: .94rem; font-weight: 720; white-space: nowrap; }
.contact-actions .platform-button[disabled] { opacity: .65; cursor: wait; }
.contact-actions p { flex: 1 1 13rem; color: var(--plat-ink-muted); font-size: .84rem; }
.contact-actions a { text-underline-offset: 3px; }
.contact-feedback { padding: 10px 13px; border-radius: 8px; color: #782f25; background: #f8e4dc; }
.contact-side { display: grid; gap: 15px; }

.contact-direct {
  padding: clamp(19px, 3vw, 33px);
  border-radius: 20px;
  background: var(--plat-amber-light);
}

.contact-direct h2, .contact-help h2 { font-size: 1.6rem; }
.contact-direct a { overflow-wrap: anywhere; }
.contact-direct p { color: var(--plat-ink-muted); font-size: .9rem; }
.contact-help { padding: clamp(16px, 2.3vw, 25px); border-radius: 20px; border: 1px solid #ded8c8; }
.contact-help h2 { margin: 0 0 11px; }
.contact-help a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 5px; border-top: 1px solid #ded8c8; text-decoration: none; }
.contact-help a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.contact-success { display: grid; justify-items: start; gap: 11px; padding-block: 14px; outline: none; }
.contact-success h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.contact-success-icon { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 50%; color: #27452e; background: var(--plat-mint); font-size: 1.35rem; }
.contact-success p { max-width: 100%; overflow-wrap: anywhere; }
.contact-reference { color: var(--plat-ink-muted); }
.contact-reference code { padding: 3px 7px; border: 1px solid var(--plat-line); border-radius: 5px; }
.contact-send-another { padding: 7px 0; border: 0; background: transparent; color: var(--plat-ink); cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 760px) {
  .contact-desk { grid-template-columns: 1fr; }
  .contact-hero-art img { object-position: 72% 55%; }
  .contact-hero::after { background: linear-gradient(90deg, #111918f5 0%, #111918df 37%, #11191880 100%); }
  .contact-hero p { max-width: 25rem; }
}

@media (max-width: 520px) {
  .contact-topic-grid, .contact-fields { grid-template-columns: 1fr; }
  .contact-topic { min-height: 52px; }
  .contact-hero h1 { font-size: clamp(2.8rem, 11vw, 4rem); }
  .contact-actions .platform-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-topic { transition: none; }
}
