/* =====================================================================
   HFDC Lead Form — one style for the whole form
   Tweak the variables below; everything else follows them.
   ===================================================================== */
.hfdc-lf {
  --hfdc-font: "Manrope", sans-serif;  /* whole form — matches site benchmark */
  --hfdc-size: 16px;               /* labels, placeholders, typed text, dropdowns, buttons */
  --hfdc-small: 14px;              /* consent / notes / errors */
  --hfdc-label-transform: none;    /* set "uppercase" if wanted */
  --hfdc-btn-transform: none;        /* Title Case, same as site buttons */
  --hfdc-spacing: normal;          /* letter-spacing everywhere (keep "normal") */

  --hfdc-accent: #e30613;          /* red */
  --hfdc-accent-dark: #b8050f;
  --hfdc-dark: #1d1d1d;
  --hfdc-line: #3a3a3a;            /* field underline */
  --hfdc-label: #1d1d1d;
  --hfdc-placeholder: #6b6b6b;    /* darker = readable (WCAG AA on light bg) */
  --hfdc-muted: #5a5a5a;
  --hfdc-back: #252525;            /* Back link — charcoal */
  --hfdc-error: #c4000c;
  --hfdc-success-bg: rgba(0, 0, 0, .035);

  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  color: var(--hfdc-dark);
  position: relative;
  text-align: left;
}
.hfdc-lf [hidden] { display: none !important; }
.hfdc-lf *, .hfdc-lf *::before, .hfdc-lf *::after { box-sizing: border-box; }

/* Same font + no theme letter/word spacing on every form element */
.hfdc-lf label,
.hfdc-lf input,
.hfdc-lf select,
.hfdc-lf option,
.hfdc-lf textarea,
.hfdc-lf button,
.hfdc-lf p {
  font-family: var(--hfdc-font) !important;
  letter-spacing: var(--hfdc-spacing) !important;
  word-spacing: normal !important;
}

/* Screen-reader-only */
.hfdc-lf .hfdc-lf__sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Step 2 heading / intro ---------- */
.hfdc-lf .hfdc-lf__title { margin: 0 0 .5rem; font-size: 1.35rem; line-height: 1.3; text-align: center; }
.hfdc-lf .hfdc-lf__title:focus { outline: none; }
.hfdc-lf .hfdc-lf__intro {
  margin: 0 0 1.75rem; text-align: center; color: var(--hfdc-muted);
  font-size: var(--hfdc-size); line-height: 1.5;
}

/* ---------- Grid: 2 columns desktop, 1 column mobile ---------- */
.hfdc-lf .hfdc-lf__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 30px;
  row-gap: 22px;
  margin-bottom: 22px;
}
.hfdc-lf .hfdc-lf__field { position: relative; margin: 0; min-width: 0; }
.hfdc-lf .hfdc-lf__field--full { grid-column: 1 / -1; }
@media (max-width: 767px) {
  .hfdc-lf .hfdc-lf__grid { grid-template-columns: 1fr; row-gap: 20px; }
}

/* ---------- Labels (fixed, above the field) ---------- */
.hfdc-lf .hfdc-lf__label {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  color: var(--hfdc-label);
  font-size: var(--hfdc-size) !important;
  font-weight: 500;
  line-height: 1.4;
  text-transform: var(--hfdc-label-transform) !important;
}
.hfdc-lf .hfdc-lf__req { color: var(--hfdc-accent); }

/* ---------- Fields: underline style ---------- */
.hfdc-lf input[type="text"],
.hfdc-lf input[type="email"],
.hfdc-lf input[type="tel"],
.hfdc-lf select,
.hfdc-lf textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 0;
  border: 0 !important;
  border-bottom: 1px solid var(--hfdc-line) !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: var(--hfdc-dark);
  font-size: var(--hfdc-size) !important;   /* 16px also stops iOS zoom */
  font-weight: 400;
  line-height: 1.4;
  text-transform: none !important;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hfdc-lf textarea { min-height: 96px; resize: vertical; }

.hfdc-lf input::placeholder,
.hfdc-lf textarea::placeholder {
  color: var(--hfdc-placeholder);
  opacity: 1;
  font-family: var(--hfdc-font);
  font-weight: 400;
  font-size: var(--hfdc-size);
  letter-spacing: var(--hfdc-spacing);
  text-transform: none;
}

.hfdc-lf input:focus,
.hfdc-lf select:focus,
.hfdc-lf textarea:focus {
  outline: none;
  border-bottom-color: var(--hfdc-accent) !important;
  box-shadow: 0 1px 0 0 var(--hfdc-accent) !important;
}
.hfdc-lf [aria-invalid="true"] { border-bottom-color: var(--hfdc-error) !important; }

/* Select: chevron, grey text until chosen, same size as everything else */
.hfdc-lf select {
  padding-right: 28px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237a7a7a' stroke-width='1.2'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 4px center !important;
}
.hfdc-lf select.is-empty { color: var(--hfdc-placeholder); }
.hfdc-lf option {
  color: var(--hfdc-dark);
  font-size: var(--hfdc-size) !important;
  text-transform: none !important;
}

.hfdc-lf .hfdc-lf__error {
  margin: 6px 0 0; color: var(--hfdc-error);
  font-size: var(--hfdc-small); line-height: 1.4;
}

/* ---------- Notes ---------- */
.hfdc-lf .hfdc-lf__consent,
.hfdc-lf .hfdc-lf__note {
  color: var(--hfdc-muted);
  font-size: var(--hfdc-small);
  line-height: 1.5;
}
.hfdc-lf .hfdc-lf__consent { margin: 0 0 18px; }
.hfdc-lf .hfdc-lf__consent a { color: inherit; text-decoration: underline; }
.hfdc-lf .hfdc-lf__note { margin: 12px 0 0; text-align: center; }

/* ---------- Buttons ---------- */
.hfdc-lf .hfdc-lf__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  margin: 0;
  padding: 12px 28px;
  border-radius: 0;
  font-size: var(--hfdc-size) !important;
  font-weight: 600;
  line-height: 1.2;
  text-transform: var(--hfdc-btn-transform) !important;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

/* Main action — solid red, full width */
.hfdc-lf .hfdc-lf__btn--primary {
  width: 100%;
  background: var(--hfdc-accent) !important;
  color: #fff !important;
  border: 1px solid var(--hfdc-accent) !important;
}
.hfdc-lf .hfdc-lf__btn--primary:hover,
.hfdc-lf .hfdc-lf__btn--primary:focus {
  background: var(--hfdc-accent-dark) !important;
  border-color: var(--hfdc-accent-dark) !important;
}

/* Step 2 lower row: Back (left) ...... Skip (right) */
.hfdc-lf .hfdc-lf__secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, .1);
}

/* Skip — quiet dark outline, clearly secondary to the red button */
.hfdc-lf .hfdc-lf__btn--secondary {
  background: transparent !important;
  color: var(--hfdc-dark) !important;
  border: 1px solid var(--hfdc-dark) !important;
}
.hfdc-lf .hfdc-lf__btn--secondary:hover,
.hfdc-lf .hfdc-lf__btn--secondary:focus {
  background: var(--hfdc-dark) !important;
  color: #fff !important;
}

/* Back — plain text link */
.hfdc-lf .hfdc-lf__btn--link {
  min-height: 44px;
  padding: 8px 0;
  background: none !important;
  border: 0 !important;
  color: var(--hfdc-back) !important;
  font-weight: 600;
  text-transform: none !important;
}
.hfdc-lf .hfdc-lf__btn--link:hover,
.hfdc-lf .hfdc-lf__btn--link:focus { color: var(--hfdc-accent) !important; text-decoration: underline; }

.hfdc-lf .hfdc-lf__btn:focus-visible { outline: 2px solid var(--hfdc-accent); outline-offset: 2px; }
.hfdc-lf .hfdc-lf__btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Messages ---------- */
.hfdc-lf .hfdc-lf__status {
  margin: 14px 0 0; padding: 10px 14px;
  border-left: 3px solid var(--hfdc-error);
  background: rgba(196, 0, 12, .06);
  color: var(--hfdc-error);
  font-size: var(--hfdc-small);
}
.hfdc-lf .hfdc-lf__received {
  margin: 0 0 24px; padding: 12px 16px;
  border-left: 3px solid var(--hfdc-accent);
  background: var(--hfdc-success-bg);
  font-size: var(--hfdc-size); line-height: 1.5;
}
.hfdc-lf .hfdc-lf__done { padding: 28px 20px; text-align: center; background: var(--hfdc-success-bg); }
.hfdc-lf .hfdc-lf__done p { margin: 0; font-size: var(--hfdc-size); line-height: 1.6; }

/* Honeypot — hidden from humans */
.hfdc-lf .hfdc-lf__hp {
  position: absolute !important; left: -10000px !important; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .hfdc-lf .hfdc-lf__secondary { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .hfdc-lf .hfdc-lf__btn--secondary { width: 100%; }
  .hfdc-lf .hfdc-lf__btn--link { align-self: center; }
}
