.contact-widget { font: inherit; }
.contact-launcher { position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 45; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid #fff3; border-radius: 50%; background: #294f85; color: #fff; box-shadow: 0 5px 18px #202b3b26; cursor: pointer; }
.contact-launcher svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.contact-launcher svg path + path { stroke-width: 3; }
.contact-dialog { width: min(400px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); box-sizing: border-box; margin: auto; padding: 24px; border: 1px solid #dce0e4; border-radius: 16px; background: #fff; color: #202b3b; font: inherit; line-height: 1.5; box-shadow: 0 24px 72px #202b3b33; overflow: auto; }
.contact-dialog::backdrop { background: #17283b66; }
.contact-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.contact-kicker { margin: 0 0 5px; color: #294f85; font-size: 9px; font-weight: 600; letter-spacing: 1.6px; }
.contact-header h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.3px; }
.contact-close { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; padding: 6px; border: 0; border-radius: 50%; background: #f2f4f6; color: #626b78; cursor: pointer; }
.contact-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.contact-intro { margin: 12px 0 18px; color: #626b78; font-size: 12px; }
.contact-label { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 600; }
.contact-dialog textarea { display: block; box-sizing: border-box; width: 100%; min-height: 90px; max-height: 180px; padding: 12px; border: 1px solid #dce0e4; border-radius: 6px; background: #fbfcfd; color: #202b3b; font: inherit; font-size: 13px; line-height: 1.6; resize: vertical; }
.contact-submit { display: block; width: 100%; min-height: 42px; margin: 12px 0 0; padding: 9px 16px; border: 0; border-radius: 6px; background: #294f85; color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.contact-submit:disabled { opacity: .5; cursor: not-allowed; }
.contact-status { margin: 9px 0 0; color: #294f85; font-size: 12px; overflow-wrap: anywhere; }
.contact-status:empty { display: none; }
.contact-honeypot { display: none; }
.contact-wechat { margin-top: 20px; padding-top: 18px; border-top: 1px solid #dce0e4; text-align: center; }
.contact-wechat h3 { margin: 0 0 5px; color: #294f85; font-size: 13px; font-weight: 600; }
.contact-qr { display: block; width: 224px; max-width: 100%; height: auto; margin: 0 auto; }
.contact-widget button:focus-visible, .contact-widget textarea:focus-visible, .contact-widget a:focus-visible { outline: 2px solid #294f85; outline-offset: 4px; }
#toTop { bottom: calc(92px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: no-preference) {
  .contact-launcher, .contact-close { transition: transform .18s, background-color .18s; }
  .contact-launcher:hover { transform: translateY(-2px); background: #183861; }
  .contact-close:hover { background: #e6ecf1; }
  .contact-dialog[open] { animation: contact-enter .18s ease-out; }
  @keyframes contact-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 480px) {
  .contact-launcher { right: max(18px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); width: 48px; height: 48px; }
  .contact-dialog { padding: 20px; }
  .contact-header h2 { font-size: 18px; }
  .contact-qr { width: 210px; }
}
@media print { .contact-widget { display: none !important; } }
