/* JL Therapeutics form legibility fix.
 *
 * Every page carries an inline rule `label.gfield_label.gform-field-label { color:#fff }`,
 * which was presumably meant for a form on a dark panel. It is not scoped, so it also
 * paints the careers form and the footer signup white on a near-white ground and the
 * labels disappear. This is inherited from the live WordPress site, not the static build.
 *
 * Fix: put the labels back on Gravity Forms' own colour token (#112337, the JLT navy),
 * at one step higher specificity so it wins wherever that inline rule applies. Anything
 * that genuinely sits on a dark panel can opt back in with .jlt-form-on-dark.
 */
.gform_wrapper label.gfield_label.gform-field-label,
.gform_wrapper legend.gfield_label.gform-field-label {
  color: var(--gf-ctrl-label-color-primary, #112337);
}

/* the marker is nested: span.gfield_required > span.gfield_required.gfield_required_text,
   and it is the inner one that actually holds the text, so a child selector misses it */
.gform_wrapper .gform-field-label .gfield_required,
.gform_wrapper .gfield_label .gfield_required,
.gform_wrapper .gfield_required_text {
  color: #9c2c2c;
  font-weight: 500;
}

.gform_wrapper .gform_fileupload_rules,
.gform_wrapper .gfield_description {
  color: #6b6f68;
}

/* opt-in for a form that really does sit on a dark background */
.jlt-form-on-dark .gform_wrapper label.gfield_label.gform-field-label,
.jlt-form-on-dark .gform_wrapper legend.gfield_label.gform-field-label {
  color: #fff;
}

/* the native file input the shim swaps in for Gravity Forms' JS uploader:
   the browser's own "Choose File" button needs room or it clips */
.gform_wrapper .ginput_container_fileupload input[type="file"] {
  display: block;
  width: 100%;
  padding: 8px 10px;
  line-height: 1.9;
  height: auto;
  border: 1px solid #ddd8c2;
  background: #fff;
  color: #1d2530;
  font: inherit;
  box-sizing: border-box;
}
.gform_wrapper .ginput_container_fileupload input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 5px 14px;
  line-height: 1.5;
  border: 0;
  background: #112337;
  color: #fff;
  font: inherit;
  font-size: .9em;
  cursor: pointer;
}
.gform_wrapper .ginput_container_fileupload input[type="file"]::file-selector-button:hover {
  background: #1d3550;
}
.gform_wrapper .ginput_container_fileupload input[type="file"]:focus-visible {
  outline: 2px solid #5f8f2f;
  outline-offset: 2px;
}
