/* FFC Website Lead Form — styles
   Kept deliberately plain so it looks right inside the ffcwi.com iframe. */

:root {
  --ffc-blue: #0042a9;        /* same button blue as the old JobTread form */
  --ffc-blue-dark: #00337f;
  --ink: #1f2933;
  --muted: #6b7280;
  --line: #d9dee5;
  --bg: #ffffff;
  --error: #b42318;
  --ok: #067647;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

.ffc-form-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 12px 24px;
}

.ffc-form {
  background: var(--bg);
  border-radius: 8px;
  padding: 4px 0;
}

.field { display: block; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.label { display: block; font-weight: 700; margin-bottom: 6px; }
.req { color: var(--error); font-weight: 400; }
.hint { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }

input[type="text"], input[type="email"], input[type="tel"], textarea, input[type="file"] {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
textarea { resize: vertical; }
input:focus, textarea:focus { outline: 3px solid rgba(0, 66, 169, .25); border-color: var(--ffc-blue); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }

.choices {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.choices label {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.choices label:nth-child(odd) { border-right: 1px solid var(--line); }
.choices label:nth-last-child(-n+2) { border-bottom: 0; }
.choices input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; }
@media (max-width: 420px) {
  .choices { grid-template-columns: 1fr; }
  .choices label:nth-child(odd) { border-right: 0; }
  .choices label:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .choices label:last-child { border-bottom: 0; }
}

/* honeypot — moved off-screen, never display:none (some bots check that) */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.consent {
  margin: 18px 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  font-size: 14px;
  color: #334155;
}
.consent-label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.consent-label input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; }
.consent a { color: var(--ffc-blue); text-decoration: underline; }

.turnstile-row { margin: 8px 0 12px; min-height: 0; }

.actions { display: flex; justify-content: flex-end; }
.submit {
  font: inherit; font-weight: 600;
  color: #e6ecf6;
  background: var(--ffc-blue);
  border: 0; border-radius: 6px;
  padding: 12px 22px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.submit:hover { background: var(--ffc-blue-dark); }
.submit[disabled] { opacity: .6; cursor: progress; }

.status { min-height: 1.2em; margin: 12px 0 0; font-size: 14px; }
.status.error { color: var(--error); }
.status.ok { color: var(--ok); }

.done {
  padding: 28px 16px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--ok);
}
