/* The unified public intake form: the "Book a publication demo" design,
   shared by the homepage lead modal, the stealth-wall Request access overlay
   and the standalone /request-access page. Self-contained values (the home.css
   demo palette) and an explicit font stack, so the form renders identically on
   every surface, whether inside .t2a-home or the plain chrome. Loaded on all
   site pages via site_base; only .lead-form elements are affected. The
   surrounding chrome (modal, dialog, page) and success handling stay per
   surface; only the form design and fields are shared here. */

.lead-form {
  --lf-ink: #f2f3f5;
  --lf-muted: #99a3b2;
  --lf-muted-2: #6c7686;
  --lf-surface: #181b21;
  --lf-line: rgba(255, 255, 255, 0.14);
  --lf-live: #ff2a2a;
  --lf-focus: #6fa8ff;
  --lf-font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

.lead-form .field.col-2 {
  grid-column: 1 / -1;
}

.lead-form .field label {
  font-family: var(--lf-font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--lf-ink);
}

.lead-form .field label .req {
  color: var(--lf-live);
}

.lead-form .field input,
.lead-form .field select,
.lead-form .field textarea {
  font-family: var(--lf-font);
  font-size: 0.92rem;
  color: var(--lf-ink);
  background: var(--lf-surface);
  border: 1px solid var(--lf-line);
  border-radius: 10px;
  padding: 11px 12px;
  width: 100%;
}

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

.lead-form .field input:focus,
.lead-form .field select:focus,
.lead-form .field textarea:focus {
  outline: none;
  border-color: var(--lf-focus);
}

.lead-form .field input::placeholder,
.lead-form .field textarea::placeholder {
  color: var(--lf-muted-2);
}

.lead-form .field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2399A3B2' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

/* The honeypot: removed from every human's flow, present for automation. */
.lead-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form .form-actions {
  margin-top: 20px;
}

.lead-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: var(--lf-font);
  font-weight: 700;
  font-size: 0.92rem;
  color: #0b0d10;
  background: var(--lf-ink);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 13px 20px;
  cursor: pointer;
}

.lead-form-submit:hover {
  background: #fff;
}

.lead-form-submit:disabled {
  opacity: 0.7;
  cursor: default;
}

.lead-form .form-msg {
  font-family: var(--lf-font);
  font-size: 0.84rem;
  margin-top: 12px;
  min-height: 1em;
  color: var(--lf-muted);
}

.lead-form .form-msg.error {
  color: var(--lf-live);
}

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