/* ==========================================================================
   LEAD FORM

   Panel pattern: a dark header band over a white body. It does two things —
   it separates the form from whatever it sits on, and it gives the heading
   somewhere to live that is not competing with the hero headline behind it.
   ========================================================================== */

.leadform {
  background: var(--hbr-white);
  border-radius: var(--hbr-radius);
  overflow: hidden;
  box-shadow: var(--hbr-shadow-l);
}

/* --- Header band ---------------------------------------------------------- */

.leadform__head {
  background: var(--hbr-charcoal);
  padding: var(--hbr-space-4) var(--hbr-space-5);
}
.leadform__title {
  font-family: var(--hbr-font-head);
  font-size: 24px;
  line-height: 1.15;
  font-weight: var(--hbr-w-extrabold);
  color: var(--hbr-white);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
}
.leadform__sub {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}

/* --- Body ----------------------------------------------------------------- */

.leadform__body {
  padding: var(--hbr-space-5);
  display: grid;
  gap: var(--hbr-space-3);
}

.field label {
  display: block;
  font-family: var(--hbr-font-head);
  font-size: 12px;
  font-weight: var(--hbr-w-bold);
  color: var(--hbr-charcoal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.field .req { color: var(--hbr-accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--hbr-font-body);
  font-size: 16px;
  line-height: 1.4;
  color: var(--hbr-text);
  background: var(--hbr-white);
  border: 1px solid var(--hbr-hairline);
  border-radius: var(--hbr-radius-sm);
  padding: 13px 14px;
  transition: border-color var(--hbr-duration) var(--hbr-ease),
              box-shadow var(--hbr-duration) var(--hbr-ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--hbr-steel); opacity: 0.75; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--hbr-accent);
  box-shadow: 0 0 0 3px var(--hbr-red-focus);
  outline: none;
}
.field textarea { resize: vertical; min-height: 92px; }

/* Two fields on one line — phone and ZIP, the pair people expect together. */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--hbr-space-3); }

.leadform__submit {
  width: 100%;
  margin-top: var(--hbr-space-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 16px;
  padding: 17px 24px;
}

.leadform__consent {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--hbr-text-muted);
  text-align: center;
}

.leadform__status {
  margin: 0;
  font-size: 15px;
  line-height: 23px;
  padding: 13px 15px;
  border-radius: var(--hbr-radius-sm);
}
.leadform__status[data-state="ok"]    { background: rgba(32,38,41,.05);  border-left: 3px solid var(--hbr-accent); color: var(--hbr-charcoal); }
.leadform__status[data-state="error"] { background: rgba(163,14,15,.08); border-left: 3px solid var(--hbr-accent); color: var(--hbr-charcoal); }

/* Honeypot: off-screen, never display:none — some bots skip hidden fields. */
.leadform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Hero contact block --------------------------------------------------- */

.herophone { display: flex; align-items: center; gap: 14px; margin-block: var(--hbr-space-5); }
.herophone__icon {
  flex: 0 0 auto; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--hbr-accent); color: var(--hbr-white);
  border-radius: var(--hbr-radius-sm);
}
.herophone__label {
  display: block;
  font-family: var(--hbr-font-head);
  font-size: 11px; font-weight: var(--hbr-w-bold);
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2px;
}
.herophone__number {
  font-family: var(--hbr-font-head);
  font-size: 26px; font-weight: var(--hbr-w-extrabold);
  color: var(--hbr-white); line-height: 1.1;
}
.herophone__number:hover { color: var(--hbr-white); opacity: .85; }

/* Two-column bullet list with square markers, as under a hero. */
.herolist {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, auto);
  gap: 10px var(--hbr-space-5); justify-content: start;
}
.herolist li { position: relative; padding-left: 20px; font-size: 15px; color: rgba(255,255,255,0.82); }
.herolist li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 9px; height: 9px; background: var(--hbr-accent);
}

@media (max-width: 767px) {
  .leadform__head, .leadform__body { padding: var(--hbr-space-4); }
  .leadform__title { font-size: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .herolist { grid-template-columns: 1fr; }
  .herophone__number { font-size: 22px; }
}

/* --- Hero panel: the form sits in the hero, so it needs no extra wrapper ---- */

#hbr-hero .hbr-formpanel {
  background: transparent;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}
#hbr-hero-chips { margin-bottom: var(--hbr-space-4); }
#hbr-hero-chips .credbar { gap: var(--hbr-space-3) var(--hbr-space-4); }
#hbr-hero-chips .credbar__item {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--hbr-radius-sm);
  padding: 8px 12px;
}
#hbr-hero-chips .hbr-tbc { background: rgba(255,255,255,.16); outline-color: rgba(255,255,255,.5); }
#hbr-hero-phone .hbr-tbc { background: rgba(255,255,255,.16); outline-color: rgba(255,255,255,.5); }
#hbr-hero-list { margin-top: var(--hbr-space-5); }

/* The eyebrow gets the short rule the reference uses. */
#hbr-hero-eyebrow .elementor-heading-title { display: flex; align-items: center; gap: 12px; }
#hbr-hero-eyebrow .elementor-heading-title::before {
  content: ""; width: 28px; height: 2px; background: var(--hbr-accent); flex: 0 0 auto;
}

/* --- Compact CTA strip ----------------------------------------------------
   Sits high in the main column. The sidebar form only helps desktop, because
   the sidebar stacks below the article on mobile.
   -------------------------------------------------------------------------- */

.ctastrip {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--hbr-space-4); flex-wrap: wrap;
  background: var(--hbr-bg-alt);
  border-left: 4px solid var(--hbr-accent);
  border-radius: 0 var(--hbr-radius) var(--hbr-radius) 0;
  padding: var(--hbr-space-4);
  margin-block: var(--hbr-space-5);
}
.ctastrip__text {
  margin: 0; font-family: var(--hbr-font-head);
  font-size: 17px; font-weight: var(--hbr-w-bold); color: var(--hbr-charcoal);
}
.ctastrip__actions { display: flex; align-items: center; gap: var(--hbr-space-4); flex-wrap: wrap; }
.ctastrip__phone {
  font-family: var(--hbr-font-head); font-size: 19px; font-weight: var(--hbr-w-extrabold);
  color: var(--hbr-charcoal); white-space: nowrap;
}
.ctastrip__phone:hover { color: var(--hbr-accent); }

@media (max-width: 767px) {
  .ctastrip { flex-direction: column; align-items: stretch; text-align: center; }
  .ctastrip__actions { flex-direction: column; align-items: stretch; gap: var(--hbr-space-3); }
  .ctastrip__phone { font-size: 22px; }
}

/* Hello Elementor's default button (pink #CC3366 outline) was showing through. */
.leadform__submit.btn--primary {
  background: var(--hbr-red); color: var(--hbr-white);
  border: 1px solid var(--hbr-red); border-radius: 4px; cursor: pointer;
  font-family: var(--hbr-font-body); font-weight: var(--hbr-w-bold);
}
.leadform__submit.btn--primary:hover,
.leadform__submit.btn--primary:focus-visible { background: var(--hbr-red-hover); border-color: var(--hbr-red-hover); color: var(--hbr-white); }
.leadform__submit.btn--primary:focus-visible { outline: 3px solid var(--hbr-red-focus); outline-offset: 2px; }
