/* ==================================================================
   Niagara Transit: Forminator contrast repairs  v1.1.3
   Audit of all form pages 2026-12-03 (WCAG 1.4.3, text 4.5:1). Light
   mode only: dark mode has its own colours in dark-mode.css. The form
   panels are #F0F0EE or white; every colour here clears 4.5:1 on both.
   Markup repairs: js/forminator-a11y.js.
   ================================================================== */

/* Step names above a multi-step form: #097BAA (4.2:1) and #777771 (3.9:1). */
html:not([data-nt-theme="dark"]) :is(.forminator-ui, #nt-fa-id-weight) .forminator-pagination-steps .forminator-step-label {
	color: #4A4A4A !important;
}
html:not([data-nt-theme="dark"]) :is(.forminator-ui, #nt-fa-id-weight) .forminator-pagination-steps .forminator-step.forminator-current .forminator-step-label {
	color: #07495F !important;
	font-weight: 600;
}

/* Required star: #E51919 is 4.1:1 on the grey panel. */
html:not([data-nt-theme="dark"]) :is(.forminator-ui, #nt-fa-id-weight) .forminator-required {
	color: #B42318 !important;
}

/* Placeholder text: #757575 on #F5F5F5 is 4.2:1. */
html:not([data-nt-theme="dark"]) :is(.forminator-ui, #nt-fa-id-weight) :is(.forminator-input, .forminator-textarea)::placeholder {
	color: #595959 !important;
	opacity: 1;
}

/* "Page 1 of 8" on polls and quizzes: #888 is 3.3:1. */
html:not([data-nt-theme="dark"]) :is(.forminator-ui, #nt-fa-id-weight) .forminator-page-indicator,
html:not([data-nt-theme="dark"]) :is(.forminator-ui, #nt-fa-id-weight) .forminator-page-indicator span {
	color: #4A4A4A !important;
}

/* Buttons left on Forminator's default blue (#17A8E3, white text 2.7:1):
   the site's button colour instead. Forms with their own button colours
   are already dark enough and match this. */
html:not([data-nt-theme="dark"]) :is(.forminator-ui, #nt-fa-id-weight) :is(.forminator-button-next, .forminator-button-submit, .forminator-quiz-start, .forminator-save-draft-link) {
	background-color: #07495F !important;
	color: #FFFFFF !important;
}
html:not([data-nt-theme="dark"]) :is(.forminator-ui, #nt-fa-id-weight) :is(.forminator-button-next, .forminator-button-submit, .forminator-quiz-start, .forminator-save-draft-link):is(:hover, :focus) {
	background-color: #053646 !important;
	color: #FFFFFF !important;
}

/* A visible focus ring on every form control and button (WCAG 2.4.7). */
.forminator-ui :is(.forminator-button, .forminator-save-draft-link, .forminator-input, .forminator-textarea, .select2-selection):focus-visible,
.forminator-ui :is(.forminator-radio, .forminator-checkbox) input:focus-visible + :is(.forminator-radio-bullet, .forminator-checkbox-box) {
	outline: 3px solid var(--ntc-focus, #07495F);
	outline-offset: 2px;
}

/* ---------- Dark mode (v1.0.1) ----------
   Some forms carry their own light panels, which dark mode's pale text
   then lands on (1.2:1). */

/* A form with its own white background (Bus Fare Order Form). */
html[data-nt-theme="dark"] form.forminator-ui,
html[data-nt-theme="dark"] :is(.forminator-ui, #nt-fa-id-weight) :is(.forminator-field-consent, .forminator-all-group-copies, .forminator-repeater-field) {
	background-color: transparent !important;
}

/* Notice boxes written into a form with a light inline background keep the
   background, so their text and links go dark again. */
html[data-nt-theme="dark"] .forminator-ui [style*="background"]:not(input):not(select):not(textarea):not(canvas),
html[data-nt-theme="dark"] .forminator-ui [style*="background"]:not(input):not(select):not(textarea):not(canvas) :is(p, li, span, strong, em, h2, h3, h4, div, label) {
	color: #000014 !important;
}
html[data-nt-theme="dark"] .forminator-ui [style*="background"]:not(input):not(select):not(textarea):not(canvas) a {
	color: #00556B !important;
	text-decoration: underline;
}

/* "Save as Draft" stays on Forminator's blue (white text 2.7:1): the dark
   theme's button colours instead. */
html[data-nt-theme="dark"] :is(.forminator-ui, #nt-fa-id-weight) .forminator-save-draft-link,
html[data-nt-theme="dark"] :is(.forminator-ui, #nt-fa-id-weight) .forminator-save-draft-link.disabled {
	background-color: #8FD0DE !important;
	color: #0F1518 !important;
}

/* Consent text typed with its own black colour, and the signature pad's
   light box (it stays light so the ink shows). */
html[data-nt-theme="dark"] :is(.forminator-ui, #nt-fa-id-weight) .forminator-consent__label,
html[data-nt-theme="dark"] :is(.forminator-ui, #nt-fa-id-weight) .forminator-consent__label :is(p, span, strong, em, li) {
	color: var(--ntc-text, #E6ECEE) !important;
}
html[data-nt-theme="dark"] :is(.forminator-ui, #nt-fa-id-weight) .forminator-signature :is(p, span) {
	color: #000014 !important;
}

/* ---------- Typed signature (v1.1.0) ----------
   The "type your full name to sign" box js/forminator-a11y.js adds under
   each signature pad. */
.forminator-ui .nt-fa-typed {
	margin-top: 14px;
}
.forminator-ui .nt-fa-typed .forminator-label {
	display: block;
}
.forminator-ui .nt-fa-typed .forminator-description {
	display: block;
	margin-top: 6px;
	font-size: 14px !important;
	line-height: 1.5 !important;
}
.forminator-ui .nt-fa-typed-status {
	display: block;
	margin-top: 6px;
	font-family: inherit !important;
	font-size: 14px;
	font-weight: 600;
	text-align: left !important;
}
.forminator-ui .nt-fa-typed-status:empty {
	display: none;
}

/* ---------- Customer service forms 13162 + 13163 (v1.1.2) ----------
   Layout repairs, not contrast: these two forms' own settings give the
   step heading the page's 45px, leave real <label>s lighter than the
   other field names, and show a hint for the three time boxes that the
   device time picker (js/forminator-datetime.js) replaces, which pushes
   Time below Date. */
:is(.forminator-custom-form-13162, .forminator-custom-form-13163) .forminator-title {
	font-size: 24px !important;
	line-height: 1.3 !important;
	font-weight: 600 !important;
}
:is(.forminator-custom-form-13162, .forminator-custom-form-13163) .forminator-subtitle {
	margin-top: 4px !important;
}
:is(.forminator-custom-form-13162, .forminator-custom-form-13163) label.forminator-label {
	font-weight: 700 !important;
}
:is(.forminator-custom-form-13162, .forminator-custom-form-13163) .forminator-field-time .forminator-description:has(+ .forminator-timepicker[data-nt-dt]) {
	display: none !important;
}

/* Text for screen readers and checkers only (v1.1.3): the consent box's label. */
.forminator-ui .nt-fa-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
