.contact-note { max-width: 250px; margin: 18px 0 0; color: var(--muted); text-align: center; font-size: 14px; line-height: 1.65; }
#contact-dialog { width: min(650px, calc(100% - 32px)); padding: 32px; color-scheme: dark; }
#contact-dialog .dialog-top { margin-bottom: 18px; }
#contact-dialog .dialog-top .eyebrow { font-size: 12px; letter-spacing: 1.3px; }
#contact-dialog h2 { font-size: clamp(28px, 5vw, 38px); margin-bottom: 12px; }
#contact-dialog .dialog-lead { font-size: 16px; line-height: 1.6; margin-bottom: 24px; }
.contact-form { display: grid; gap: 18px; }
.contact-form[hidden], .contact-form [hidden], .contact-success[hidden] { display: none; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.contact-field label { color: #e5f0ff; font-size: 14px; font-weight: 600; line-height: 1.4; }
.contact-field label span { color: #acbfd7; font-weight: 400; }
.contact-field input, .contact-field textarea { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid #587495; border-radius: 9px; background: #0c1b30; color: #edf5ff; font: inherit; font-size: 16px; line-height: 1.5; transition: border-color .2s, box-shadow .2s; }
.contact-field textarea { resize: vertical; min-height: 136px; max-height: 360px; }
.contact-field input::placeholder, .contact-field textarea::placeholder { color: #9caec5; opacity: 1; }
.contact-field input:focus, .contact-field textarea:focus { outline: 2px solid #8fc8ff; outline-offset: 2px; border-color: #8fc8ff; }
.contact-form small { font-size: 13px; line-height: 1.5; color: #b6c9df; }
.contact-form .contact-trap { display: none; }
.contact-privacy { margin: 0; font-size: 13px; color: #b6c9df; line-height: 1.6; }
.contact-privacy a { text-decoration: underline; text-underline-offset: 3px; color: #bddfff; }
.contact-feedback { color: #ffd7c1; background: #4a2d33; border: 1px solid #a96565; border-radius: 9px; padding: 12px 14px; font-size: 14px; line-height: 1.6; }
.contact-submit { width: 100%; justify-content: center; gap: 14px; font-size: 15px; min-height: 52px; }
.contact-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.contact-success { padding: 22px 0 12px; }
.contact-success-mark { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 50%; background: #99dce1; color: #12303b; font-size: 26px; }
.contact-success h3 { font-size: 25px; line-height: 1.3; margin-bottom: 12px; color: #d8edff; }
.contact-success p { font-size: 16px; line-height: 1.6; color: #bed0e6; margin-bottom: 26px; }
.contact-success .button { font-size: 15px; }
@media (max-width: 580px) {
  #contact-dialog { padding: 23px; max-height: calc(100dvh - 28px); }
  #contact-dialog .dialog-top .eyebrow { font-size: 11px; }
  .contact-row { grid-template-columns: 1fr; gap: 18px; }
  .contact-form { gap: 16px; }
}
