.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1.25fr);
  gap: clamp(45px, 8vw, 100px);
  padding: 92px 0 100px;
  border-top: 1px solid var(--line);
}
.contact-intro h2 {
  margin: 18px 0 24px;
  font-size: clamp(48px, 5vw, 70px);
}
.contact-intro > p:last-child {
  max-width: 330px;
  color: var(--muted);
  line-height: 1.9;
}
.contact-form {
  min-width: 0;
}
.contact-form fieldset {
  display: grid;
  gap: 22px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.contact-field {
  display: grid;
  gap: 7px;
}
.contact-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-field input,
.contact-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #947d84;
  border-radius: 3px;
  background: color-mix(in srgb, var(--paper) 91%, var(--pink));
  resize: vertical;
}
.contact-field textarea {
  min-height: 170px;
}
.contact-field input:hover,
.contact-field textarea:hover {
  border-color: var(--rose);
}
.contact-field input:user-invalid,
.contact-field textarea:user-invalid {
  border-color: #a53f55;
}
.field-hint,
.contact-privacy {
  color: var(--muted);
  font-size: 10px;
}
.contact-privacy a {
  color: var(--rose);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.field-hint {
  justify-self: end;
}
.contact-form .button {
  justify-self: start;
  min-width: 170px;
  min-height: 48px;
}
.contact-form[aria-busy="true"] .button span {
  animation: contact-pulse 1s ease-in-out infinite alternate;
}
.contact-status {
  min-height: 25px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.contact-status[data-kind="success"] {
  color: #39724e;
}
.contact-status[data-kind="error"] {
  color: #9b354b;
}
.contact-status:focus {
  outline: none;
}
.contact-status:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 4px;
}
.contact-recheck,
.contact-verify-retry {
  min-height: 44px;
  margin-top: 5px;
  padding: 5px 0;
  color: var(--rose);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.contact-privacy {
  max-width: 590px;
  margin-top: 17px;
  line-height: 1.65;
}
html[data-theme="celestial"] .contact-field input,
html[data-theme="celestial"] .contact-field textarea {
  border-color: #977aa6;
  background: #2b2036;
}
html[data-theme="celestial"] .contact-status[data-kind="success"] {
  color: #a9dfbb;
}
html[data-theme="celestial"] .contact-status[data-kind="error"] {
  color: #ffabc0;
}
@keyframes contact-pulse {
  to { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-form[aria-busy="true"] .button span { animation: none; }
}
@media (max-width: 700px) {
  .contact-section {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 62px 0 70px;
  }
  .contact-intro > p:last-child { max-width: none; }
  .contact-form .button { width: 100%; }
}
