html:has(body.contact-page) { height: 100%; min-height: 0; }
body.contact-page { display: flex; height: 100vh; height: 100dvh; min-height: 0; }
.contact-page .legal-header { flex-shrink: 0; min-height: 0; padding: clamp(12px, 2.5vh, 24px) 22px; }
.contact-page .legal-header .wordmark { width: clamp(110px, 15vh, 150px); }
.contact-page .legal-footer { flex-shrink: 0; padding: 12px 16px; font-size: .8rem; }
.contact-shell { display: flex; flex-direction: column; max-width: 760px; padding: clamp(12px, 2.5vh, 28px) 0; }
.contact-shell h1 { font-size: clamp(1.6rem, 4vh, 2.6rem); line-height: 1.1; }
.contact-intro { margin: 10px 0 16px; font-size: 1rem; line-height: 1.4; }
.contact-form { display: flex; flex: 1; min-height: 0; flex-direction: column; gap: clamp(8px, 1.5vh, 14px); }
.contact-field { display: grid; gap: 6px; }
.contact-field:has(textarea) { flex: 1; min-height: 90px; grid-template-rows: auto minmax(0, 1fr); }
.contact-field label { font-weight: 700; line-height: 1.5; }
.required-label { display: inline; margin-left: 6px; font-size: .75rem; font-weight: 400; }
.contact-field input, .contact-field textarea {
  width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--divider);
  border-radius: 10px; background: var(--white); color: var(--ink); font: inherit;
  font-size: 1rem; line-height: 1.5;
}
.contact-field textarea { resize: none; min-height: 0; height: 100%; }
.contact-field input:focus-visible, .contact-field textarea:focus-visible,
.contact-submit:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.contact-hint { margin: 0; line-height: 1.35; font-size: .8rem; }
.contact-hint a { color: inherit; text-underline-offset: 3px; }
.contact-submit {
  align-self: flex-start; flex-shrink: 0; min-height: 44px; padding: 10px 26px; border: 1px solid var(--ink);
  border-radius: 8px; background: var(--ink); color: var(--white); font: inherit; cursor: pointer;
}
.contact-submit:hover { opacity: .88; }
.contact-submit:disabled { opacity: .6; cursor: wait; }
.contact-status { margin: 0; line-height: 1.6; }
.contact-status:empty { display: none; }
@media (max-height: 700px) {
  .contact-intro { margin: 8px 0 10px; font-size: .9rem; }
  .contact-field label { font-size: .88rem; line-height: 1.3; }
  .contact-page .legal-footer { padding-block: 8px; }
  .contact-status { font-size: .85rem; line-height: 1.3; }
}
@media (max-height: 540px) {
  body.contact-page { height: auto; min-height: 100dvh; overflow: auto; }
  .contact-field textarea { min-height: 80px; }
}
