/* ============================================================
   Lead Form Plugin — Standalone CSS
   Works without Tailwind, Bootstrap, or any framework.
   Scope: everything inside #lead-form
   Brand-matched to PrimeTradeAI landing page.
   ============================================================ */

#lead-form {
  --lf-bg: #ffffff;
  --lf-text: #363443;
  --lf-muted: #7A7A7A;
  --lf-border: #EEEEEE;
  --lf-accent: #FC5910;
  --lf-accent-hover: #e04e0d;
  --lf-accent-dark: #363443;
  --lf-green: #61CE70;
  --lf-error-bg: #fef2f2;
  --lf-error-border: #fecaca;
  --lf-error-text: #b91c1c;
  --lf-radius: 0px;
  --lf-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  font-family: var(--lf-font);
  background: var(--lf-bg);
  color: var(--lf-text);
  border-radius: 0;
  box-shadow: none;
  padding: 20px;
  max-width: 480px;
  width: 100%;
  box-sizing: border-box;
  border: none;
  margin: 0 auto;
}

/* ---- Rating row ---- */
#lead-form .lf-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
#lead-form .lf-stars { display: flex; gap: 2px; }
#lead-form .lf-stars svg { width: 14px; height: 14px; }
#lead-form .lf-rating-text { font-size: 0.8rem; color: var(--lf-muted); }

/* ---- Headings ---- */
#lead-form h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.2rem;
  color: var(--lf-text);
}
#lead-form .lf-subtitle {
  font-size: 16px;
  color: #1C1C1C;
  margin: 0 0 0.75rem;
  font-weight: 400;
  line-height: 1.4;
}

/* ---- Benefits list ---- */
#lead-form .lf-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}
#lead-form .lf-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 14px;
  color: var(--lf-text);
  margin-bottom: 0.35rem;
  font-weight: 400;
  line-height: 1.4;
}
#lead-form .lf-check {
  color: var(--lf-accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 12px;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---- Form fields ---- */
#lead-form .lf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
#lead-form .lf-phone-row {
  display: flex;
  gap: 0.5rem;
}
#lead-form input,
#lead-form select {
  font-family: var(--lf-font);
  font-size: 15px;
  border: none;
  border-radius: 0;
  padding: 0.65rem 0.8rem;
  outline: none;
  transition: box-shadow 0.15s;
  width: 100%;
  box-sizing: border-box;
  color: #757575;
  background: #EEEEEE;
  font-weight: 400;
  line-height: 1.4;
}
#lead-form input:focus,
#lead-form select:focus {
  box-shadow: 0 0 0 2px rgba(252,89,16,0.25);
}
#lead-form select {
  min-width: 85px;
  width: auto;
  flex-shrink: 0;
  background: #EEEEEE;
  cursor: pointer;
}
#lead-form .lf-field {
  margin-bottom: 0.5rem;
}

/* ---- Error ---- */
#lead-form .lf-error {
  background: var(--lf-error-bg);
  border: 1px solid var(--lf-error-border);
  color: var(--lf-error-text);
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--lf-radius);
  margin-bottom: 0.5rem;
}

/* ---- Submit button ---- */
#lead-form .lf-submit {
  width: 100%;
  padding: 10px 0;
  font-size: 17px;
  font-weight: 500;
  color: #ffffff;
  background-color: #FC5910;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: var(--lf-font);
  line-height: 1.4;
}
#lead-form .lf-submit:hover {
  background-color: #e04e0d;
}
#lead-form .lf-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---- Spinner ---- */
#lead-form .lf-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lf-spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 0.5rem;
}
@keyframes lf-spin { to { transform: rotate(360deg); } }

/* ---- Trust footer ---- */
#lead-form .lf-trust {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.65rem;
  color: var(--lf-muted);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
#lead-form .lf-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
#lead-form .lf-trust .lf-trust-icon {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}
#lead-form .lf-disclaimer {
  font-size: 0.65rem;
  color: #9799A8;
  text-align: center;
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* ---- Mobile compact overrides ---- */
@media (max-width: 600px) {
  #lead-form {
    padding: 14px;
  }
  #lead-form h2 {
    font-size: 20px;
  }
  #lead-form .lf-subtitle {
    font-size: 14px;
    margin-bottom: 0.5rem;
  }
  #lead-form .lf-benefits li {
    font-size: 13px;
  }
  #lead-form input,
  #lead-form select {
    font-size: 14px;
    padding: 0.55rem 0.7rem;
  }
  #lead-form .lf-submit {
    font-size: 16px;
    padding: 9px 0;
  }
  #lead-form .lf-trust {
    gap: 0.5rem;
    font-size: 0.6rem;
  }
}
