/* "Reach Out" / "Talk to Sales" popup — loaded sitewide since the modal can
   be triggered from any page. Uses the same CSS custom properties every
   per-page stylesheet already defines on :root (--navy, --orange, etc.),
   with hardcoded fallbacks in case a page's own CSS hasn't loaded yet. */
.socxly-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 30, 46, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}
.socxly-modal-overlay[hidden] { display: none; }

.socxly-modal {
  position: relative;
  background: var(--white, #fff);
  border-radius: var(--r-lg, 14px);
  box-shadow: var(--sh-lg, 0 8px 32px rgba(16, 63, 99, 0.2));
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  font-family: 'Figtree', -apple-system, sans-serif;
}

.socxly-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--text-muted, #8899aa);
  cursor: pointer;
  border-radius: 50%;
}
.socxly-modal-close:hover { background: var(--surface-2, #ebf0f7); color: var(--text-primary, #0d1e2e); }

.socxly-modal h3 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--navy, #103f63);
}
.socxly-modal-sub {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--text-secondary, #445566);
}

.socxly-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.socxly-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) {
  .socxly-field-row { grid-template-columns: 1fr; }
}

.socxly-field { margin-bottom: 16px; }
.socxly-field-row .socxly-field { margin-bottom: 16px; }
.socxly-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #0d1e2e);
  margin-bottom: 6px;
}
.socxly-field input,
.socxly-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border, #dde3ec);
  border-radius: var(--r-sm, 6px);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary, #0d1e2e);
  background: var(--surface, #f5f8fc);
}
.socxly-field input:focus,
.socxly-field textarea:focus {
  outline: none;
  border-color: var(--navy-mid, #1f6399);
  background: var(--white, #fff);
}
.socxly-field textarea { resize: vertical; min-height: 84px; }

.socxly-field-error {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: #c0392b;
}

.socxly-form-error {
  margin: 0 0 16px;
  font-size: 13px;
  color: #c0392b;
}
.socxly-form-error[hidden] { display: none; }

.socxly-modal-submit {
  width: 100%;
  justify-content: center;
  border: none;
  cursor: pointer;
}
.socxly-modal-submit:disabled { opacity: 0.7; cursor: wait; }

.socxly-modal-success { text-align: center; padding: 20px 0; }
.socxly-modal-success[hidden] { display: none; }
.socxly-modal-success p { font-size: 15px; color: var(--navy, #103f63); }
