#gf_progressbar_wrapper_1,
#gf_progressbar_wrapper_2 {
  display: none;
}

#gform_wrapper_1[aria-hidden="true"],
#gform_wrapper_1[hidden],
#gform_wrapper_2[aria-hidden="true"],
#gform_wrapper_2[hidden] {
  display: none !important;
}

.membership-program-tab,
#gform_wrapper_2,
#gform_wrapper_1 {
  max-width:720px;
  margin: 0 auto;
}

#gform_wrapper_1,
#gform_wrapper_2 {
  padding-bottom: 48px;
}

.gform_page_fields h2 {
  color: #0A324F;
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: 48px;
}

.gform_page_fields p {
  color: #6A7282;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

#gform_1 input,
#gform_1 select,
#gform_2 input,
#gform_2 select {
  border: 1px solid #e5e7eb;
  padding: 16px 16px;
  border-radius: 0;
  height: 48px !important;
  color: rgba(7, 4, 4, 0.5);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

#gform_1 textarea,
#gform_2 textarea {
  border: 1px solid #e5e7eb;
  padding: 16px;
  border-radius: 0;
  color: rgba(7, 4, 4, 0.5);
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  min-block-size: 144px;
}

#gform_1 input::placeholder,
#gform_1 textarea::placeholder,
#gform_2 input::placeholder,
#gform_2 textarea::placeholder {
  color: rgba(7, 4, 4, 0.5);
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

#gform_1 label,
#gform_1 legend,
#gform_2 label,
#gform_2 legend {
  color: #6a7282;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

#gform_1 .gfield_required.gfield_required_text,
#gform_2 .gfield_required.gfield_required_text {
  display: none;
}

#gform_fields_1,
#gform_fields_2 {
  gap: 32px;
}

#input_1_11,
#input_1_13_6_container,
#input_2_11,
#input_2_13_6_container {
  width: 100%;
}

.gform_next_button{
    background: #0A324F !important;
    color: #fff !important;
    min-width: 200px !important;
    background-image: url(/wp-content/themes/rhd-timber-tailwind/assets/icons/chev-right.svg) !important;
    background-repeat: no-repeat !important;
    background-position: right 55px center !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    padding-right: 40px !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    border-radius: 0 !important;
}

#gform_submit_button_1,
#gform_submit_button_2 {
    background: #0A324F !important;
    color: #fff !important;
    min-width: 250px !important;
    background-image: url(/wp-content/themes/rhd-timber-tailwind/assets/icons/lock.svg) !important;
    background-repeat: no-repeat !important;
    background-position: left 30px center !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    padding-right: 0 !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    border-radius: 0 !important;
}

.gform_previous_button {
    background: transparent !important;
    color: #6A7282 !important;
    min-width: 160px !important;
    background-image: url(/wp-content/themes/rhd-timber-tailwind/assets/icons/chev-left.svg) !important;
    background-repeat: no-repeat !important;
    background-position: left 0 center !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    padding-left: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

#gform_page_1_1 .gform-page-footer,
#gform_page_2_1 .gform-page-footer{
  justify-content: end !important;
}

.gform-page-footer {
  justify-content: space-between !important;
  margin-top: 50px !important;
  border-top: 1px solid #E5E7EB !important;
  padding-top: 20px !important;
}

/* Page 2 interest chips */
#gform_page_1_2 .gfield--type-checkbox .gfield_checkbox,
#gform_page_2_2 .gfield--type-checkbox .gfield_checkbox {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#gform_page_1_2 .gfield--type-checkbox .gchoice,
#gform_page_2_2 .gfield--type-checkbox .gchoice {
  position: relative;
  min-width: 0;
  width: 100%;
  display: flex;
}

#gform_page_1_2 .gfield--type-checkbox .gfield-choice-input[type="checkbox"],
#gform_page_2_2 .gfield--type-checkbox .gfield-choice-input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#gform_page_1_2 .gfield--type-checkbox .gfield-choice-input[type="checkbox"] + label,
#gform_page_2_2 .gfield--type-checkbox .gfield-choice-input[type="checkbox"] + label {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  background: #fff;
  color: #6a7282;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  border-radius:4px;
}

#gform_page_1_2 .gfield--type-checkbox .gfield-choice-input[type="checkbox"]:checked + label,
#gform_page_2_2 .gfield--type-checkbox .gfield-choice-input[type="checkbox"]:checked + label {
  border-color: #0a324f;
  background: #0a324f;
  color: #fff;

}

#gform_page_1_2 .gfield--type-checkbox .gfield-choice-input[type="checkbox"]:checked + label::after,
#gform_page_2_2 .gfield--type-checkbox .gfield-choice-input[type="checkbox"]:checked + label::after {
  content: "";
  width: 11px;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='8' viewBox='0 0 11 8' fill='none'%3E%3Cpath d='M9.91665 0.583252L3.49998 6.99992L0.583313 4.08325' stroke='white' stroke-width='1.16667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 11px 8px;
}

#gform_fields_1_2 legend,
#gform_fields_2_2 legend {
    color: #0A324F;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: normal;
    text-transform: none;
    margin-bottom: 12px;
}

#gform_fields_1_2 .ginput_container_checkbox,
#gform_fields_2_2 .ginput_container_checkbox {
    border-top: 1px solid #F3F4F6;
    padding-top: 16px;
}

#gform_fields_1_2 #field_1_6,
#gform_fields_2_2 #field_2_6 {
  margin-top: -24px;

  input {
    border-radius: 4px;
  }
}

#gform_fields_1_3 legend,
#gform_fields_1_4 legend,
#gform_fields_2_3 legend,
#gform_fields_2_4 legend{
  color: #003057;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 27px;
  text-transform: initial !important;
}

#gform_fields_1_3 label,
#gform_fields_1_4 label,
#gform_fields_2_3 label,
#gform_fields_2_4 label {
  color: #003057;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 21px;
  text-transform: initial !important;
  margin-bottom:0;
  letter-spacing: normal;
  margin-left: 5px;
  cursor: pointer;
}

#gform_fields_1_3 input,
#gform_fields_1_4 input,
#gform_fields_2_3 input,
#gform_fields_2_4 input {
    border: 1px solid #012f59;
    padding: 0 !important;
    height: 16px !important;
    width: 16px !important;
}

#gform_fields_1_3 .gchoice,
#gform_fields_1_4 .gchoice,
#gform_fields_2_3 .gchoice,
#gform_fields_2_4 .gchoice {
  margin-bottom: 5px;
  align-items: center;
  border: 1px solid #E5E7EB;
  padding: 20px;
}

.ring-slate-200 {
  box-shadow: none !important;
}

#gform_1 #input_1_25,
#gform_1 #input_1_27,
#gform_1 #input_1_31,
#gform_1 #input_1_33,
#gform_2 #input_2_25,
#gform_2 #input_2_27,
#gform_2 #input_2_31,
#gform_2 #input_2_33 {
  width: 100% !important;
  height: 44px !important;
  border: 1px solid #E5E7EB;
  padding: 16px !important;
  max-width: 95%;
  margin: -110px auto 0;
}

#gform_1 #input_1_19 .gchoice.gchoice_1_19_7:has(.gfield-choice-input:checked),
#gform_1 #input_1_26 .gchoice.gchoice_1_26_7:has(.gfield-choice-input:checked),
#gform_1 #input_1_29 .gchoice.gchoice_1_29_7:has(.gfield-choice-input:checked),
#gform_1 #input_1_32 .gchoice.gchoice_1_32_7:has(.gfield-choice-input:checked),
#gform_2 #input_2_19 .gchoice.gchoice_2_19_7:has(.gfield-choice-input:checked),
#gform_2 #input_2_26 .gchoice.gchoice_2_26_7:has(.gfield-choice-input:checked),
#gform_2 #input_2_29 .gchoice.gchoice_2_29_7:has(.gfield-choice-input:checked),
#gform_2 #input_2_32 .gchoice.gchoice_2_32_7:has(.gfield-choice-input:checked){
  padding-bottom: 80px;
  background: #003057;

  label {
    color: #fff;
  }
}

@media (max-width: 767px) {
  #gform_page_1_2 .gfield--type-checkbox .gfield_checkbox,
  #gform_page_2_2 .gfield--type-checkbox .gfield_checkbox {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
