/* Lead modal — shared across homepage and subpages */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 6, 8, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.lead-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lead-card {
  width: min(520px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: linear-gradient(165deg, var(--bg2, #121419), var(--bg, #0b0c0f));
  border: 1px solid var(--border, #2a2e37);
  border-radius: var(--radius-lg, 20px);
  box-shadow: var(--elev-shadow, 0 24px 64px rgba(0, 0, 0, 0.55));
  padding: 28px 28px 24px;
}

.lead-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.lead-head h3 {
  font-family: var(--display, "Plus Jakarta Sans", sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text, #f3f5f7);
}

.lead-sub {
  font-size: 0.88rem;
  color: var(--text3, #97a1ad);
  margin-bottom: 20px;
}

.lead-sub a {
  color: var(--accent, #db4722);
  text-decoration: none;
}

.lead-sub a:hover {
  text-decoration: underline;
}

.lead-close {
  border: 1px solid var(--border, #2a2e37);
  background: transparent;
  color: var(--text2, #c6ced7);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.lead-close:hover {
  color: var(--text, #f3f5f7);
  border-color: var(--border2, #3a414d);
}

.lead-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lead-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lead-field.full {
  grid-column: 1 / -1;
}

.lead-field label {
  font-family: var(--mono, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3, #97a1ad);
}

.lead-field input,
.lead-field textarea {
  font-family: var(--body, "Manrope", sans-serif);
  font-size: 0.95rem;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border, #2a2e37);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text, #f3f5f7);
}

.lead-field textarea {
  min-height: 100px;
  resize: vertical;
}

.lead-field input:focus,
.lead-field textarea:focus {
  outline: none;
  border-color: var(--accent, #db4722);
  box-shadow: 0 0 0 2px rgba(219, 71, 34, 0.2);
}

.lead-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.lead-status {
  font-size: 0.85rem;
  color: var(--text2, #c6ced7);
  flex: 1;
  min-width: 180px;
}

.lead-status a {
  color: var(--accent-bright, #d88949);
}

/* Homepage inline modal compatibility */
body:not(.nadir-site) .lead-modal .btn-primary {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

@media (max-width: 560px) {
  .lead-body {
    grid-template-columns: 1fr;
  }
}
