/* =========================================================
   Contact Form Terms Checkbox - Single Focus Only
   Removes row/Terms shared ring and keeps focus on checkbox only
========================================================= */

/* Kill the previous focus-within row ring */
html body #gform_wrapper_3 #field_3_9 .gchoice_3_9_1:focus-within::after,
html body #gform_wrapper_3 #field_3_9 .gchoice_3_9_1::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
}

/* Checkbox only gets the red focus */
html body #gform_wrapper_3 #choice_3_9_1:focus,
html body #gform_wrapper_3 #choice_3_9_1:focus-visible,
html body.aa-site-using-keyboard #gform_wrapper_3 #choice_3_9_1:focus,
html body.dipi-using-keyboard #gform_wrapper_3 #choice_3_9_1:focus {
  border-color: #b13b31 !important;
  outline: 3px solid #b13b31 !important;
  outline-offset: 4px !important;
  box-shadow: none !important;
}

/* Terms link only gets red focus when the link itself is focused */
html body #gform_wrapper_3 #label_3_9_1 a:focus,
html body #gform_wrapper_3 #label_3_9_1 a:focus-visible,
html body.aa-site-using-keyboard #gform_wrapper_3 #label_3_9_1 a:focus,
html body.dipi-using-keyboard #gform_wrapper_3 #label_3_9_1 a:focus {
  outline: 3px solid #b13b31 !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}

/* Keep checkbox green only when it is not focused */
html body #gform_wrapper_3 #choice_3_9_1:not(:focus):not(:focus-visible) {
  border-color: #476318 !important;
  outline: none !important;
  box-shadow: none !important;
}
