/* =========================
   Greenwalls Lead Form
   Improved vertical rhythm
   ========================= */

.fd-lead-form{
  --fd-bg:#0f2f24;        /* dark green */
  --fd-card:#0b241b;
  --fd-ink:#f3fbf7;
  --fd-muted:rgba(243,251,247,.78);
  --fd-line:rgba(243,251,247,.18);
  --fd-radius:18px;
  --fd-pad:clamp(18px,3vw,28px);
  --fd-shadow:0 14px 40px rgba(0,0,0,.25);

  max-width:760px;
  width:min(760px,92vw);
  margin:0 auto;
  background:var(--fd-bg);
  border-radius:var(--fd-radius);
  padding:var(--fd-pad);
  box-shadow:var(--fd-shadow);
  color:var(--fd-ink);
}

/* --- Rows / layout --- */
.fd-lead-form .fd-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;                 /* horizontal gap */
  margin-bottom:20px;       /* space between rows */
}

.fd-lead-form .fd-col{
  min-width:0;
  display:flex;
  flex-direction:column;
}

.fd-lead-form .fd-col-full{
  grid-column:1 / -1;
}

/* --- Labels (tight to inputs, not floating upward) --- */
.fd-lead-form label{
  display:block;
  margin:0 0 6px;           /* SMALL gap below label */
  font-weight:600;
  font-size:0.95rem;
  line-height:1.25;
  color:var(--fd-ink);
}

/* --- Inputs / selects / textarea --- */
.fd-lead-form input[type="text"],
.fd-lead-form input[type="email"],
.fd-lead-form input[type="tel"],
.fd-lead-form input[type="file"],
.fd-lead-form select,
.fd-lead-form textarea{
  width:100%;
  box-sizing:border-box;
  background:var(--fd-card);
  color:var(--fd-ink);
  border:1px solid var(--fd-line);
  border-radius:14px;
  padding:12px 14px;
  font-size:0.95rem;
  line-height:1.4;
}

/* Remove default top margins some themes inject */
.fd-lead-form input,
.fd-lead-form select,
.fd-lead-form textarea{
  margin-top:0;
}

/* Placeholder text */
.fd-lead-form input::placeholder,
.fd-lead-form textarea::placeholder{
  color:rgba(243,251,247,.55);
}

/* Textarea specifics */
.fd-lead-form textarea{
  min-height:140px;
  resize:vertical;
}

/* File upload help text */
.fd-lead-form .fd-help{
  margin-top:6px;           /* close to field */
  font-size:0.85rem;
  line-height:1.3;
  color:var(--fd-muted);
}

/* --- Validation messages --- */
.fd-lead-form .wpcf7-not-valid-tip{
  margin-top:6px;
  font-size:0.85rem;
  color:#ffd1d1;
}

.fd-lead-form .wpcf7-response-output{
  margin:16px 0 0;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--fd-line);
  color:var(--fd-ink);
}

/* --- Submit button --- */
.fd-lead-form .fd-actions{
  margin-top:8px;
}

.fd-lead-form .fd-submit{
  width:100%;
  border:0;
  border-radius:999px;
  padding:14px 18px;
  font-size:1rem;
  font-weight:700;
  cursor:pointer;
  background:#8dc63f;
  color:#0b241b;
}

.fd-lead-form .fd-submit:hover{
  filter:brightness(1.05);
}

/* --- Honeypot (hidden safely) --- */
.fd-lead-form .fd-hp{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* --- Mobile --- */
@media (max-width:780px){
  .fd-lead-form .fd-row{
    grid-template-columns:1fr;
    gap:16px;
    margin-bottom:18px;
  }
}
