/* Shared contact-form modal overlay — used by BOTH products (main legislat.ai
   + /legal Sentinel Legal AI). Neutral dark surface; the accent adapts per product
   via the .sl-contact--gold / .sl-contact--orange modifier the JS sets. */

.sl-contact-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(5, 7, 10, .74);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  overflow-y: auto;
}
.sl-contact-overlay.is-open { display: flex; }

.sl-contact {
  --accent: #E2AE52;                 /* default gold; JS swaps to orange on the main site */
  width: 100%; max-width: 480px; margin: auto;
  background: linear-gradient(180deg, #12161D 0%, #0B0F14 100%);
  border: 1px solid rgba(250, 247, 240, .12);
  border-radius: 18px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
  color: #FAF7F0;
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  padding: 30px 30px 26px;
  position: relative;
  animation: slContactIn .28s cubic-bezier(.16, 1, .3, 1) both;
}
.sl-contact--orange { --accent: #FF7A29; }
@keyframes slContactIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sl-contact { animation: none; } }

.sl-contact-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(250, 247, 240, .14); background: transparent;
  color: #9AA0AA; font-size: 18px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.sl-contact-close:hover { color: #FAF7F0; border-color: rgba(250, 247, 240, .3); }

.sl-contact-eyebrow { margin: 0; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.sl-contact-title { margin: 10px 0 0; font-family: 'Newsreader', Georgia, serif; font-weight: 600; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; }
.sl-contact-sub { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: #9AA0AA; }

.sl-contact form { margin-top: 20px; display: flex; flex-direction: column; gap: 13px; }
.sl-contact-field { display: flex; flex-direction: column; gap: 5px; }
.sl-contact-field label { font-size: 11.5px; font-weight: 500; color: #C9C7C0; letter-spacing: .01em; }
.sl-contact-field label .req { color: var(--accent); }
.sl-contact input, .sl-contact select, .sl-contact textarea {
  width: 100%; box-sizing: border-box;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(250, 247, 240, .14);
  border-radius: 10px; padding: 11px 13px;
  color: #FAF7F0; font-family: inherit; font-size: 14px; line-height: 1.4;
}
.sl-contact textarea { resize: vertical; min-height: 78px; }
.sl-contact input:focus, .sl-contact select:focus, .sl-contact textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(226, 174, 82, .12);
}
.sl-contact select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%239AA0AA' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.sl-contact select option { background: #12161D; color: #FAF7F0; }

/* honeypot — visually + programmatically hidden from humans, bots fill it */
.sl-contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sl-contact-hint { margin: 2px 0 0; padding: 10px 13px; border-radius: 10px; background: rgba(226,174,82,.08); border: 1px solid rgba(226,174,82,.22); font-size: 12.5px; line-height: 1.45; color: #D8D5CE; }
.sl-contact--orange .sl-contact-hint { background: rgba(255,122,41,.08); border-color: rgba(255,122,41,.22); }
.sl-contact-captcha { min-height: 1px; }
.sl-contact-captcha .g-recaptcha { margin-top: 2px; }

.sl-contact-submit {
  margin-top: 4px;
  background: var(--accent); color: #0B0F14;
  font-size: 15px; font-weight: 600; padding: 13px 20px; border: 0; border-radius: 999px;
  cursor: pointer; font-family: inherit;
}
.sl-contact-submit:hover:not(:disabled) { filter: brightness(1.06); }
.sl-contact-submit:disabled { opacity: .55; cursor: not-allowed; }

.sl-contact-status { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; min-height: 1em; }
.sl-contact-status.is-error { color: #F0A0A0; }
.sl-contact-status.is-ok { color: var(--accent); }
.sl-contact-micro { margin: 12px 0 0; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 10px; color: #6E7480; text-align: center; }

.sl-contact-success { display: none; text-align: center; padding: 8px 0 4px; }
.sl-contact.is-sent form, .sl-contact.is-sent .sl-contact-sub { display: none; }
.sl-contact.is-sent .sl-contact-success { display: block; }
.sl-contact-success .tick { font-size: 34px; color: var(--accent); }
.sl-contact-success p { margin: 8px 0 0; font-size: 14px; color: #C9C7C0; line-height: 1.55; }

@media (max-width: 480px) {
  .sl-contact { padding: 26px 20px 22px; border-radius: 16px; }
  .sl-contact-title { font-size: 23px; }
}
