/* Force GF horizontal steps under theme #Bzl-afv-forms (desktop). */
#Bzl-afv-forms .gform_wrapper.gform_legacy_markup_wrapper .gf_page_steps,
.buzz2-fp-form.gform_legacy_markup_wrapper .gf_page_steps {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.35rem 0.5rem;
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 1.5em;
  box-sizing: border-box;
}
#Bzl-afv-forms .gform_wrapper.gform_legacy_markup_wrapper .gf_page_steps .gf_step,
.buzz2-fp-form.gform_legacy_markup_wrapper .gf_page_steps .gf_step {
  display: block !important;
  flex: 1 1 0 !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 1.25em 0 0 !important; /* no side margins — flex gap handles spacing */
  height: auto !important;
  float: none !important;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#Bzl-afv-forms .gform_wrapper.gform_legacy_markup_wrapper .gf_page_steps .gf_step_label,
.buzz2-fp-form.gform_legacy_markup_wrapper .gf_page_steps .gf_step_label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  #Bzl-afv-forms .gform_wrapper.gform_legacy_markup_wrapper .gf_page_steps,
  .buzz2-fp-form.gform_legacy_markup_wrapper .gf_page_steps {
    flex-wrap: wrap !important;
  }
  #Bzl-afv-forms .gform_wrapper.gform_legacy_markup_wrapper .gf_page_steps .gf_step,
  .buzz2-fp-form.gform_legacy_markup_wrapper .gf_page_steps .gf_step {
    flex: 1 1 40% !important;
    margin: .85em 0 0 !important;
    white-space: normal;
  }
}

/* GF legacy multipage steps + page visibility (theme #Bzl-afv-forms styles the look) */

.gform_legacy_markup_wrapper .gf_page_steps {
  border-bottom: 1px dotted #ccc;
  padding: 0 0 4px 0;
}
.gform_legacy_markup_wrapper .gf_step {
  font-family: inherit;
  font-size: .875em;
  line-height: 1.25 !important;
  opacity: .35;
}
.gform_legacy_markup_wrapper .gf_step.gf_step_active,
.gform_legacy_markup_wrapper .gf_step.gf_step_completed {
  opacity: 1;
}
.gform_legacy_markup_wrapper .gf_step span.gf_step_number,
.gform_legacy_markup_wrapper .gf_step span.gf_step_label {
  display: inline-block;
  vertical-align: middle;
}
.gform_legacy_markup_wrapper .gf_step_clear {
  clear: both;
  display: block;
  height: 1px;
  overflow: hidden;
}

/* Beat theme rules that show all .gform_page blocks */
.buzz2-fp-form.buzz2-fp-form--multipage .buzz2-fp-page.gform_page { display: none !important; }
.buzz2-fp-form.buzz2-fp-form--multipage .buzz2-fp-page.gform_page.is-active { display: block !important; }

.buzz2-fp-form .buzz2-fp-nav,
.buzz2-fp-form .gform_page_footer {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}
.buzz2-fp-form .gform_page_footer .gform_button,
.buzz2-fp-form .gform_page_footer .button { min-width: 7rem; }
.buzz2-fp-form .buzz2-fp-field-error { outline: 2px solid #c0392b; outline-offset: 2px; }
.buzz2-fp-form .buzz2-fp-page-error { color: #c0392b; margin: .5rem 0 0; font-size: .9rem; display: none; }
.buzz2-fp-form .buzz2-fp-page-error.is-visible { display: block; }
.buzz2-fp-form .oneThird,
.buzz2-fp-form .gf_left_third,
.buzz2-fp-form .gf_middle_third,
.buzz2-fp-form .gf_right_third { float: left; width: 32%; margin-right: 2%; }
.buzz2-fp-form .oneThird:nth-of-type(3n),
.buzz2-fp-form .gf_right_third { margin-right: 0; }
.buzz2-fp-form .fieldWide,
.buzz2-fp-form .gf_full_width { clear: both; width: 100%; }
.buzz2-fp-form .gform_fields::after { content: ""; display: table; clear: both; }

/* GFMC columns fallback */
.buzz2-fp-form .gfmc-column { display: inline-block; vertical-align: top; box-sizing: border-box; }
.buzz2-fp-form .gfmc-column50 { width: 50%; }
.buzz2-fp-form .gfmc-column .flex-wrapper { list-style: none; margin: 0; padding: 0; width: 100%; }

@media (max-width: 720px) {
  .buzz2-fp-form .oneThird,
  .buzz2-fp-form .gf_left_third,
  .buzz2-fp-form .gf_middle_third,
  .buzz2-fp-form .gf_right_third { float: none; width: 100%; margin: 0; }
  .buzz2-fp-form .gfmc-column50 { width: 100%; }
}
