﻿/* ===========================================
   COMPONENT: Lead Form
   Fully isolated â€” no global.css variables or reset dependency
   =========================================== */

/* Local reset */
.lead-form *, .lead-form *::before, .lead-form *::after { box-sizing: border-box; }
.lead-form input, .lead-form textarea, .lead-form select { font: inherit; }
.lead-form button { border: none; background: none; font: inherit; cursor: pointer; }
.lead-form-header h3 { margin: 0; }
.lead-form-header p  { margin: 0; }
.form-group label    { margin: 0; }

.lead-form { width: 100%; font-family: 'Inter', sans-serif; line-height: 1.6; }

.lead-form-header {
  margin-bottom: 1.5rem;
  text-align: center;
}
.lead-form-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: #0F172A;
  margin-bottom: 0.25rem;
  line-height: 1.25;
}
.lead-form-header p {
  font-size: 0.875rem;
  color: #64748B;
}

.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0F172A;
  margin-bottom: 0.25rem;
}
.form-group label .required { color: #EF4444; }

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #E2E8F0;
  border-radius: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #0F172A;
  background: #FFFFFF;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
  box-sizing: border-box;
}
.form-control:focus {
  border-color: #0E8B7F;
  box-shadow: 0 0 0 3px rgba(14,139,127,0.12);
}
.form-control::placeholder { color: #94A3B8; }

.form-submit {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, #0a7b6e 0%, #0E8B7F 100%);
  color: #FFFFFF;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(14,139,127,0.25);
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(14,139,127,0.35); }
.form-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.form-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: #94A3B8;
  margin-top: 0.75rem;
}
.form-disclaimer i { margin-right: 4px; }

/* Status messages */
.form-success, .form-error {
  display: none;
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  margin-top: 1rem;
}
.form-success { background: rgba(14,139,127,0.1); color: #0A6F67; border: 1px solid rgba(14,139,127,0.2); }
.form-error   { background: rgba(239,68,68,0.08); color: #DC2626; border: 1px solid rgba(239,68,68,0.2); }
.form-success.show, .form-error.show { display: block; }

/* Inline form variant (standalone pages) */
.form-card {
  background: #FFFFFF;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* Implied-consent footer link styling */
.lead-form .form-disclaimer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lead-form .form-disclaimer a:hover {
  color: #14B8A6;
}

