/* Loaded after theme, directly: this file does not require the asset build. */

/* Keep the native fieldset name available to assistive technology. */
.gform_wrapper .captioned-compliance-marketing > .gfield_label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The three consecutive GF fields form one visual section. The -8px margins
   absorb the theme's .gform_fields row-gap without changing other fields. */
.gform_wrapper .gfield:is(.captioned-compliance-marketing, .captioned-compliance-identity-wrap, .captioned-compliance-howweuse) {
  box-sizing: border-box;
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
  justify-content: flex-start;
  margin: 0;
  padding: 0 24px;
  background: #f8f9fc;
  border: 1px solid #eaecee;
  border-top: 0;
  border-bottom: 0;
  border-radius: 0;
  color: #596977;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.gform_wrapper .gfield.captioned-compliance-marketing {
  margin-bottom: -8px;
  padding-top: 24px;
  padding-bottom: 16px;
  border-top: 1px solid #eaecee;
  border-radius: 6px 6px 0 0;
  color: #141d24;
}

.gform_wrapper .gfield.captioned-compliance-identity-wrap {
  margin-bottom: -8px;
  padding-bottom: 24px;
}

.gform_wrapper .gfield.captioned-compliance-howweuse {
  margin-bottom: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eaecee;
  border-radius: 0 0 6px 6px;
}

.gform_wrapper .captioned-compliance-marketing :is(.ginput_container, .gfield_checkbox, .gchoice) {
  margin: 0;
  padding: 0;
}

.gform_wrapper .captioned-compliance-marketing :is(.ginput_container_consent, .gchoice) {
  position: relative;
  align-items: flex-start;
}

.gform_wrapper .captioned-compliance-marketing :is(.ginput_container_consent, .gchoice) label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  max-width: none;
  margin: 0;
  color: #141d24;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}

.gform_wrapper .captioned-compliance-marketing :is(.ginput_container_consent, .gchoice) label::before {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  min-width: 22px;
  height: 22px;
  margin-top: 1px;
  padding: 0;
  border: 2px solid #596977;
  border-radius: 4px;
  background-color: #fff;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.gform_wrapper .captioned-compliance-marketing :is(.ginput_container_consent, .gchoice) label:hover::before {
  border-color: #2f4455;
}

.gform_wrapper .captioned-compliance-marketing :is(.ginput_container_consent, .gchoice) input:checked + label::before {
  content: "\2714";
  background-color: #0e7e7c;
  border-color: #0e7e7c;
}

.gform_wrapper .captioned-compliance-marketing :is(.ginput_container_consent, .gchoice) input:checked + label:hover::before {
  background-color: #0d615f;
  border-color: #0d615f;
}

/* Match the source theme's sr-only approach even when the compiled stylesheet
   still hides native inputs with display:none. Only restore this checkbox. */
.gform_wrapper .captioned-compliance-marketing :is(.ginput_container_consent, .gchoice) input[type="checkbox"] {
  display: block;
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The outline does not affect the checkbox's size or the consent copy layout. */
.gform_wrapper .captioned-compliance-marketing input:focus-visible + label::before {
  outline: 3px solid #595bff;
  outline-offset: 3px;
}

.gform_wrapper .captioned-compliance-howweuse .captioned-compliance-heading {
  margin: 0 0 8px;
  padding: 0;
  color: #141d24;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.gform_wrapper .captioned-compliance-howweuse p,
.gform_wrapper .captioned-compliance-identity {
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.gform_wrapper :is(.captioned-compliance-marketing, .captioned-compliance-identity-wrap, .captioned-compliance-howweuse) a {
  display: inline;
  width: auto;
  padding: 0;
  border: 0;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.gform_wrapper :is(.captioned-compliance-marketing, .captioned-compliance-identity-wrap, .captioned-compliance-howweuse) a:hover {
  color: #0d615f;
}

.gform_wrapper :is(.captioned-compliance-marketing, .captioned-compliance-identity-wrap, .captioned-compliance-howweuse) a:focus-visible {
  color: #595bff;
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Only the Message field immediately preceding injected compliance content. */
.gform_wrapper .gfield:has(+ .captioned-compliance-marketing) .gfield_description:not(.gfield_validation_message) {
  margin-top: 8px;
  padding-top: 0;
  color: #596977;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .gform_wrapper .gfield:is(.captioned-compliance-marketing, .captioned-compliance-identity-wrap, .captioned-compliance-howweuse) {
    padding-left: 16px;
    padding-right: 16px;
  }
}
