/* Independent modal for the top status-bar contact button. The homepage community-message area is separate. */
.message-pill {
  border: 1px solid rgba(140,198,63,.5);
  font-family: inherit;
  cursor: pointer;
}
.message-pill:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 3px;
}
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.contact-modal[hidden] { display: none !important; }
.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.contact-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 490px);
  max-height: min(92vh, 780px);
  overflow: auto;
  padding: 1.65rem;
  border: 1px solid rgba(56,189,248,.28);
  border-radius: 24px;
  background: linear-gradient(145deg,#0f172a 0%,#0b1830 65%,#0b2b37 100%);
  box-shadow: 0 28px 90px rgba(0,0,0,.55);
  color: #f1f5f9;
}
.contact-modal-close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px;
  background: rgba(255,255,255,.06);
  color: #e2e8f0;
  font-size: 1.1rem;
  cursor: pointer;
}
.contact-modal-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: .9rem;
  border: 1px solid rgba(56,189,248,.25);
  border-radius: 15px;
  background: linear-gradient(135deg,rgba(140,198,63,.2),rgba(14,165,233,.2));
  color: #bef264;
  font-size: 1.2rem;
}
.contact-modal-dialog h2 { margin: 0 2.2rem .45rem 0; font-size: 1.35rem; font-weight: 900; }
.contact-modal-dialog > p { margin: 0 0 1.15rem; color: #aebed0; font-size: .9rem; line-height: 1.55; }
.contact-modal-dialog form { display: flex; flex-direction: column; gap: .5rem; }
.contact-modal-dialog label { margin-top: .25rem; color: #dbeafe; font-size: .84rem; font-weight: 800; }
.contact-modal-dialog input,
.contact-modal-dialog textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 12px;
  background: rgba(2,6,23,.48);
  color: #f8fafc;
  padding: .78rem .85rem;
  font: inherit;
  font-size: 16px;
}
.contact-modal-dialog textarea { min-height: 112px; max-height: 240px; resize: vertical; }
.contact-modal-dialog input::placeholder,
.contact-modal-dialog textarea::placeholder { color: #718096; }
.contact-form-meta { display: flex; justify-content: space-between; gap: 1rem; color: #94a3b8; font-size: .75rem; }
.contact-captcha-box { margin-top: .25rem; padding: .75rem; border: 1px solid rgba(56,189,248,.18); border-radius: 12px; background: rgba(2,6,23,.28); }
.contact-captcha-box > label { display: block; margin: 0 0 .5rem; }
.contact-captcha-row { display: flex; align-items: center; gap: .65rem; }
.contact-captcha-question { flex: 1 1 auto; color: #bef264; font-weight: 900; letter-spacing: .04em; }
.contact-captcha-row input { width: 108px; flex: 0 0 108px; text-align: center; }
.contact-captcha-box > small { display: block; margin-top: .45rem; color: #94a3b8; font-size: .72rem; }
.contact-form-status { min-height: 1.25rem; color: #fca5a5; font-size: .84rem; line-height: 1.45; }
.contact-form-status.success { color: #bef264; }
.contact-form-status.warning { color: #fbbf24; }
.contact-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  min-height: 48px;
  margin-top: .2rem;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg,#7cb518,#0ea5e9);
  color: #fff;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(14,165,233,.18);
}
.contact-submit-button:hover { filter: brightness(1.08); }
.contact-submit-button:disabled { opacity: .65; cursor: wait; }
.contact-modal-dialog button:focus-visible,
.contact-modal-dialog input:focus-visible,
.contact-modal-dialog textarea:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 3px; }
.contact-honeypot { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
body.contact-modal-open { overflow: hidden; }
@media (max-width: 640px) {
  .contact-modal { padding: .65rem; }
  .contact-modal-dialog { padding: 1.35rem 1rem 1.1rem; border-radius: 20px; max-height: 94vh; }
  .contact-modal-dialog h2 { font-size: 1.2rem; }
}
