.contact-footer-button { min-height: 44px; padding: 0; color: inherit; background: transparent; border: 0; font: inherit; cursor: pointer; }
.contact-footer-button:hover { color: var(--signal-bright); }
.contact-footer-button:focus-visible { outline: 3px solid var(--signal-bright); outline-offset: 4px; }
html.contact-dialog-open { overflow: hidden; }
.contact-dialog { width: min(560px, calc(100vw - 32px)); max-width: none; max-height: calc(100svh - 32px); margin: auto; padding: 0; overflow: auto; color: var(--text); background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: 0 32px 100px rgb(0 0 0 / .5); }
.contact-dialog::backdrop { background: rgb(4 7 15 / .76); backdrop-filter: blur(7px); }
.contact-shell { padding: 28px; }
.contact-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.contact-heading h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 7vw, 2.8rem); line-height: 1.1; letter-spacing: .035em; }
.contact-heading p { margin: 8px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.55; }
.contact-close { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--text); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 50%; font: inherit; font-size: 1.35rem; cursor: pointer; }
.contact-fields { display: grid; gap: 16px; }
.contact-field { min-width: 0; }
.contact-field > label { display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 700; }
.contact-field > small { display: block; margin-top: 6px; color: var(--muted); font-size: .7rem; }
.contact-field input, .contact-field textarea { display: block; width: 100%; padding: 10px 12px; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 9px; font: inherit; font-size: .9rem; line-height: 1.5; }
.contact-field textarea { min-height: 130px; resize: vertical; }
.contact-field :is(input, textarea)[aria-invalid='true'] { border-color: var(--amber); }
.contact-message-guidance { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 6px; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.contact-message-guidance [data-over-limit='true'] { color: var(--amber); font-weight: 700; }
.contact-consent { display: flex; align-items: start; gap: 10px; font-size: .8rem; line-height: 1.6; cursor: pointer; }
.contact-consent input { flex-shrink: 0; width: 20px; height: 20px; margin: 3px 0; accent-color: var(--signal); }
.contact-privacy { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.6; }
.contact-privacy a { text-decoration: underline; text-underline-offset: 3px; }
.contact-verification { min-height: 70px; }
.contact-status { min-height: 1.5em; margin: 14px 0; color: var(--muted); font-size: .83rem; line-height: 1.6; overflow-wrap: anywhere; }
.contact-status[data-state='error'] { color: var(--amber); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.contact-actions button, .contact-retry, .contact-success button { min-height: 44px; padding: 10px 16px; color: var(--text); background: var(--surface-soft); border: 1px solid var(--line-strong); border-radius: 9px; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.contact-actions [type='submit'] { background: var(--signal); color: var(--surface-solid); }
.contact-dialog button:disabled { opacity: .5; cursor: not-allowed; }
.contact-dialog :is(button, input, textarea):focus-visible { outline: 3px solid var(--signal-bright); outline-offset: 3px; }
.contact-success p { line-height: 1.7; }
.contact-dialog [hidden] { display: none !important; }
@media (max-width: 600px) {
  .contact-dialog { width: calc(100vw - 20px); max-height: calc(100svh - 20px); border-radius: 14px; }
  .contact-shell { padding: 20px; }
  .contact-heading { gap: 12px; }
}
