/* Only apply when visitor enables "Accessibility helpers". */
.klx-a11y-misc .wpforms-container .wpforms-field-label,
.klx-a11y-misc .wpforms-container .wpforms-field-label-inline,
.klx-a11y-misc .wpforms-container .wpforms-field-sublabel {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 12px !important;
}

/* WPForms common "hide label" patterns. */
.klx-a11y-misc .wpforms-container .wpforms-label-hide .wpforms-field-label,
.klx-a11y-misc .wpforms-container .wpforms-field-label-hidden,
.klx-a11y-misc .wpforms-container .wpforms-field-label-hidden .wpforms-field-label {
    display: block !important;
    font-size: 12px !important;
}

/* WPForms multi-step progress indicator:
 * In high-contrast mode, WPForms applies inline light-grey colors on
 * inactive steps (e.g. rgb(164,164,164) / rgb(244,244,244)) which can
 * result in very low contrast for the step headings.
 */
.klx-a11y-high-contrast .wpforms-page-indicator-page:not(.active)
    .wpforms-page-indicator-page-number,
.klx-a11y-high-contrast .wpforms-page-indicator-page:not(.active)
    .wpforms-page-indicator-page-title {
    /* Prefer WordPress theme.json "text" variable (falls back to a sane default). */
    color: var(--wp--preset--color--foreground, var(--wp--preset--color--text, #000000)) !important;
    background-color: transparent !important;
}

.klx-a11y-high-contrast footer .wpforms-page-indicator-page:not(.active)
    .wpforms-page-indicator-page-number,
.klx-a11y-high-contrast footer .wpforms-page-indicator-page:not(.active)
    .wpforms-page-indicator-page-title {
    /* Prefer WordPress theme.json "text" variable (falls back to a sane default). */
    color: var(--wp--preset--color--background, var(--wp--preset--color--white, #ffffff)) !important;
}