/* FHV aXcelerate form contrast fix v1.0.
   Scope is opt-in: JS marks ONLY recognised aXcelerate enrolment sections.
   The site header, nav, search fields, other forms, and all payment controls stay unchanged. */

[data-fhv-ax-contrast="1"] :is(
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  input[type="password"],
  input[type="date"],
  input[type="datetime-local"],
  input[type="url"],
  input:not([type]),
  textarea,
  select,
  .select2-search__field
) {
  background-color: #ffffff !important;
  color: #17313d !important;
  -webkit-text-fill-color: #17313d !important;
  caret-color: #17313d !important;
  opacity: 1 !important;
  border: 1px solid #aebfc6 !important;
  border-radius: 5px;
}

[data-fhv-ax-contrast="1"] :is(
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  input[type="password"],
  input[type="date"],
  input[type="datetime-local"],
  input[type="url"],
  input:not([type]),
  textarea
)::placeholder {
  color: #647781 !important;
  -webkit-text-fill-color: #647781 !important;
  opacity: 1 !important;
}

[data-fhv-ax-contrast="1"] :is(
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="number"], input[type="search"], input[type="password"],
  input[type="date"], input[type="datetime-local"], input[type="url"],
  input:not([type]), textarea, select
):focus {
  outline: 2px solid #ec7139 !important;
  outline-offset: 1px;
  border-color: #ec7139 !important;
}

[data-fhv-ax-contrast="1"] :is(input, textarea)::selection {
  color: #ffffff !important;
  background: #245e92 !important;
}

[data-fhv-ax-contrast="1"] input:-webkit-autofill,
[data-fhv-ax-contrast="1"] input:-webkit-autofill:hover,
[data-fhv-ax-contrast="1"] input:-webkit-autofill:focus {
  -webkit-text-fill-color: #17313d !important;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  caret-color: #17313d !important;
}
