/* GENERATED 2026-05-02T08:53:04Z by tools/build-form.py from templates/walada-form-v5/ + brand-registry.yml entry: floorexpertsghana */
/* ═══════════════════════════════════════════════════════════════════
   WALADA FORM v5.0 — form.css
   ───────────────────────────────────────────────────────────────────
   The form's own CSS, sourced from v3.1 walada-master.css form-related
   selectors. Every color, font, and accent reference goes through CSS
   custom properties so brands can theme the form without editing this
   file.

   BRAND CONTRACT — sites must declare these CSS custom properties on
   :root (typically in their site.css or in a <style> block in <head>).
   Sensible fallbacks are provided for brands that haven't yet declared
   theme variables.

     --brand-accent           primary accent (focus, submit button)
     --brand-accent-alt       secondary accent (hover state, optional)
     --brand-accent-border    subtle accent border (hover glow, optional)
     --brand-accent-light     accent at 10% alpha for badges/active bg
     --brand-accent-dark      darker accent for inline links in success
     --brand-text             body text color
     --brand-muted            muted helper text color
     --brand-bg               page background (focus ring offset)
     --brand-surface          surface color for inputs
     --brand-font-head        heading font stack
     --brand-font-body        body font stack
     --brand-hover-curve      easing curve for transitions, e.g. cubic-bezier
     --border-subtle          1px hairline color
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Form section + card ────────────────────────────────────────── */
.form-section {
  padding: 4rem 0;
}
.form-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.30);
  padding: 2rem 1.25rem;
  max-width: 920px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .form-card { padding: 3rem 3rem; }
}
.form-card h2,
.form-card h3,
.form-card h4 {
  color: #1a1a1a;
}

/* ─── Trust strip (above form) ───────────────────────────────────── */
.form-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle, #eee);
  font-size: 0.875rem;
  color: var(--brand-text, #444);
}
.form-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
.form-trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--brand-accent, #134e4a);
  flex-shrink: 0;
}

/* ─── Honeypot (hidden from users + screen readers) ──────────────── */
.wf-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ─── Step containers ────────────────────────────────────────────── */
#walada-lead-form .wf-step {
  margin-bottom: 2rem;
}
#walada-lead-form .wf-step-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle, #eee);
}
#walada-lead-form .wf-step-title {
  font-family: var(--brand-font-head, Georgia, 'Times New Roman', serif);
  font-size: 1.375rem;
  color: #1a1a1a;
  display: block;
  margin-bottom: 0.35rem;
}

/* When JS-enhanced, hide plain-HTML fallback for path selection
   (Step 1) and replace with intent cards rendered by JS. */
#walada-lead-form.wf-js-enhanced .wf-paths-fallback,
#walada-lead-form.wf-js-enhanced .wf-path-fields-fallback {
  display: none;
}
/* Plain-HTML steps 2 + 3 remain visible at all times by default;
   JS reveals them only after path selection. We use display:none
   inline by JS in selectPath() so no CSS rule needed here. */

/* ─── Intent cards (Step 1, JS-rendered) ─────────────────────────── */
#walada-lead-form .wf-paths {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}
@media (min-width: 640px) {
  #walada-lead-form .wf-paths {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  #walada-lead-form .wf-paths {
    grid-template-columns: repeat(5, 1fr);
  }
}
#walada-lead-form .wf-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: #fff;
  border: 2px solid var(--border-subtle, #ddd);
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  transition: all 0.2s var(--brand-hover-curve, ease);
}
#walada-lead-form .wf-path:hover {
  border-color: var(--brand-accent, #134e4a);
  background: var(--brand-accent-light, rgba(19, 78, 74, 0.06));
}
#walada-lead-form .wf-path.active {
  border-color: var(--brand-accent, #134e4a);
  background: var(--brand-accent-light, rgba(19, 78, 74, 0.10));
  box-shadow: 0 4px 12px var(--brand-accent-border, rgba(19, 78, 74, 0.20));
}
#walada-lead-form .wf-path-icon {
  font-size: 1.875rem;
  line-height: 1;
}
#walada-lead-form .wf-path-title {
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a1a;
}
#walada-lead-form .wf-path-desc {
  font-size: 0.8125rem;
  color: var(--brand-muted, #666);
  line-height: 1.45;
}

/* ─── Field grid + inputs ────────────────────────────────────────── */
#walada-lead-form .wf-field {
  margin-bottom: 1.25rem;
}
#walada-lead-form .wf-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
#walada-lead-form .wf-field label .req {
  color: #c33;
  font-weight: 700;
}
#walada-lead-form .wf-field input,
#walada-lead-form .wf-field select,
#walada-lead-form .wf-field textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  font-family: var(--brand-font-body, system-ui, sans-serif);
  font-size: 0.9375rem;
  color: #1a1a1a;
  background: #fafafa;
  border: 1px solid var(--border-subtle, #ddd);
  border-radius: 6px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
#walada-lead-form .wf-field input:focus,
#walada-lead-form .wf-field select:focus,
#walada-lead-form .wf-field textarea:focus {
  outline: none;
  border-color: var(--brand-accent, #134e4a);
  box-shadow: 0 0 0 3px var(--brand-accent-light, rgba(19, 78, 74, 0.15));
  background: #fff;
}
#walada-lead-form .wf-field-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--brand-muted, #777);
  margin-top: 0.35rem;
}
#walada-lead-form .wf-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  #walada-lead-form .wf-fields.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
#walada-lead-form .wf-field.full {
  grid-column: 1 / -1;
}

/* ─── Radio groups (siteVisit + contactPref) ─────────────────────── */
#walada-lead-form .wf-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.25rem;
}
#walada-lead-form .wf-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--brand-text, #333);
  cursor: pointer;
  font-weight: 500;
}
#walada-lead-form .wf-radio input {
  width: auto;
  margin: 0;
  accent-color: var(--brand-accent, #134e4a);
}

/* ─── Qualifying chips (Step 3 top) ──────────────────────────────── */
#walada-lead-form .wf-qualify {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--brand-accent-light, rgba(19, 78, 74, 0.05));
  border-radius: 8px;
}
#walada-lead-form .wf-qualify-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-text, #333);
  margin-bottom: 0.75rem;
}
#walada-lead-form .wf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
#walada-lead-form .wf-chip {
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid var(--border-subtle, #ccc);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--brand-text, #333);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s ease;
}
#walada-lead-form .wf-chip:hover {
  border-color: var(--brand-accent, #134e4a);
}
#walada-lead-form .wf-chip.active {
  background: var(--brand-accent, #134e4a);
  border-color: var(--brand-accent, #134e4a);
  color: #fff;
}

/* ─── Submit button (context-aware label) ────────────────────────── */
#walada-lead-form .wf-submit {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  background: var(--brand-accent, #134e4a);
  color: var(--brand-bg, #fff);
  font-family: var(--brand-font-body, system-ui, sans-serif);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}
#walada-lead-form .wf-submit:hover {
  background: var(--brand-accent-alt, var(--brand-accent, #0e3b38));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--brand-accent-border, rgba(19, 78, 74, 0.30));
}
#walada-lead-form .wf-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ─── Inline validation warning (pre-submit) ─────────────────────── */
#walada-lead-form .wf-inline-warn {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: #fff9e6;
  border: 1px solid #e4c468;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #664400;
  display: none;
}

/* ─── Error state (after webhook+fallback both failed) ───────────── */
#walada-lead-form .wf-error {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: #fff4f4;
  border: 1px solid #d44;
  border-radius: 6px;
  color: #a22;
  font-size: 0.9375rem;
  line-height: 1.55;
}
#walada-lead-form .wf-error a {
  color: #a22;
  font-weight: 700;
  text-decoration: underline;
}

/* ─── Success state ──────────────────────────────────────────────── */
.wf-success {
  text-align: center;
  padding: 2rem 1rem;
}
.wf-success-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.wf-success h2 {
  color: #1a1a1a;
  margin-bottom: 1rem;
}
.wf-success p {
  color: var(--brand-text, #444);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 1.25rem;
}
.wf-success-ref {
  display: inline-block;
  margin: 0.5rem 0 1rem;
  padding: 0.5rem 1rem;
  background: var(--brand-accent-light, rgba(19, 78, 74, 0.10));
  border-radius: 999px;
  font-family: var(--brand-font-head, Georgia, serif);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-accent-dark, #0e3b38);
}
.wf-success-fine {
  font-size: 0.875rem !important;
  color: var(--brand-muted, #666) !important;
}

/* ─── Specialist line + noscript note (below form) ───────────────── */
.wf-specialist-line {
  font-size: 0.8125rem;
  color: var(--brand-muted, #666);
  text-align: center;
  margin-top: 1.5rem;
  line-height: 1.55;
}
.wf-specialist-line a {
  color: var(--brand-accent-dark, var(--brand-accent, #0e3b38));
  text-decoration: underline;
}
.wf-noscript-note {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #fff9e6;
  border: 1px solid #e4c468;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #664400;
}
.wf-noscript-note a {
  color: #664400;
  text-decoration: underline;
}
