/* forms.css — On-brand lead forms for The Soler Effect.
   Light surface, Oswald labels, Lato inputs, red focus + primary button.
   Linked via <link> (CSP style-src 'self' allows this). Namespaced `lead-`. */

.lead-form {
  display: grid;
  gap: 18px;
  text-align: left;
}

.lead-field {
  display: grid;
  gap: 7px;
}

.lead-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1d1d1f;
}

.lead-input,
.lead-textarea {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1d1d1f;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 2px;
  padding: 14px 16px;
  width: 100%;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.lead-input::placeholder,
.lead-textarea::placeholder { color: #9a9a9e; }

.lead-input:focus,
.lead-textarea:focus {
  outline: none;
  border-color: #c72d32;
  box-shadow: 0 0 0 3px rgba(199, 45, 50, 0.12);
}

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

/* Optional opt-in checkbox row */
.lead-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #444;
  cursor: pointer;
}
.lead-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #c72d32;
  flex: none;
  cursor: pointer;
}

/* Honeypot — visually and from AT hidden, still in the DOM for bots */
.lead-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

/* Primary button — matches CLAUDE.md live-site spec */
.lead-btn {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #ffffff;
  background: #c72d32;
  border: 2px solid #c72d32;
  border-radius: 2px;
  padding: 18px 48px;
  cursor: pointer;
  justify-self: start;
  box-shadow: 0 6px 20px rgba(199, 45, 50, 0.25);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}
.lead-btn:hover {
  background: transparent;
  color: #c72d32;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(199, 45, 50, 0.30);
}
.lead-btn:active { transform: translateY(0); }
.lead-btn:focus-visible { outline: 2px solid #c72d32; outline-offset: 3px; }
.lead-btn:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }

/* Full-width variant inside narrow funnel cards */
.lead-btn--block { justify-self: stretch; width: 100%; text-align: center; }

/* Status line */
.lead-form-status {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  margin: 2px 0 0;
  min-height: 1.2em;
}
.lead-form-status[data-kind='error'] { color: #c72d32; }
.lead-form-status[data-kind='success'] { color: #1d1d1f; font-weight: 700; }

/* Success panel (swap-in) */
.lead-success {
  text-align: center;
  padding: 8px 0;
}
.lead-success-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(199, 45, 50, 0.10);
  color: #c72d32;
  font-size: 26px;
  margin-bottom: 16px;
}
.lead-success-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 22px;
  color: #1d1d1f;
  margin: 0 0 8px;
}
.lead-success p {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  margin: 0;
}
