.rjcf {
	--rjcf-error: #b91c1c;
	--rjcf-success: #15803d;
	color: inherit;
	font: inherit;
	max-width: 42rem;
}

.rjcf__form {
	display: grid;
	gap: 1.25rem;
}

.rjcf__field {
	display: grid;
	gap: 0.4rem;
}

.rjcf__label,
.rjcf__challenge-instruction {
	font: inherit;
	font-weight: inherit;
}

.rjcf input.rjcf__input,
.rjcf textarea.rjcf__textarea {
	background: transparent;
	border: 1px solid currentColor;
	border-color: color-mix(in srgb, currentColor 30%, transparent);
	border-radius: 0.375rem;
	box-sizing: border-box;
	color: inherit;
	font: inherit;
	padding: 0.75rem;
	width: 100%;
}

.rjcf input.rjcf__input:focus,
.rjcf textarea.rjcf__textarea:focus,
.rjcf .rjcf__challenge-dot:focus-visible,
.rjcf .rjcf__submit:focus-visible {
	outline: 3px solid currentColor;
	outline-color: color-mix(in srgb, currentColor 35%, transparent);
	outline-offset: 2px;
}

.rjcf__field--honeypot {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.rjcf__challenge {
	border: 1px solid currentColor;
	border-color: color-mix(in srgb, currentColor 30%, transparent);
	border-radius: 0.5rem;
	color: inherit;
	font: inherit;
	margin: 0;
	min-width: 0;
	padding: 1rem;
}

.rjcf__challenge-instruction {
	padding: 0 0.35rem;
}

.rjcf .rjcf__challenge-track {
	background: transparent;
	background: color-mix(in srgb, currentColor 6%, transparent);
	border-radius: 999px;
	box-sizing: border-box;
	height: 4rem;
	margin-top: 0.75rem;
	position: relative;
	touch-action: none;
	width: 100%;
}

.rjcf .rjcf__challenge-track::before {
	background: currentColor;
	content: "";
	height: 0.25rem;
	left: 1rem;
	position: absolute;
	right: 1rem;
	top: calc(50% - 0.125rem);
	opacity: 0.25;
}

.rjcf .rjcf__challenge-target {
	background: transparent;
	border: 3px solid currentColor;
	border-radius: 0.25rem;
	box-sizing: border-box;
	height: 2.75rem;
	left: 0;
	position: absolute;
	top: calc(50% - 1.375rem);
	width: 2.75rem;
}

.rjcf input.rjcf__challenge-dot {
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: inherit;
	cursor: grab;
	height: 100%;
	inset: 0;
	margin: 0;
	padding: 0;
	position: absolute;
	touch-action: none;
	width: 100%;
	z-index: 2;
}

.rjcf input.rjcf__challenge-dot:active {
	cursor: grabbing;
}

.rjcf input.rjcf__challenge-dot::-webkit-slider-runnable-track {
	background: transparent;
	height: 100%;
}

.rjcf input.rjcf__challenge-dot::-webkit-slider-thumb {
	-webkit-appearance: none;
	background: currentColor;
	border: 3px solid transparent;
	border-radius: 50%;
	box-shadow: 0 0 0 1px currentColor;
	height: 2.75rem;
	margin-top: 0.625rem;
	width: 2.75rem;
}

.rjcf input.rjcf__challenge-dot::-moz-range-track {
	background: transparent;
	height: 100%;
}

.rjcf input.rjcf__challenge-dot::-moz-range-thumb {
	background: currentColor;
	border: 3px solid transparent;
	border-radius: 50%;
	box-shadow: 0 0 0 1px currentColor;
	box-sizing: border-box;
	height: 2.75rem;
	width: 2.75rem;
}

.rjcf__challenge-status,
.rjcf__form-message {
	font: inherit;
	font-size: inherit;
	line-height: inherit;
	margin: 0.5rem 0 0;
}

.rjcf__challenge-status:empty,
.rjcf__form-message:empty {
	display: none;
}

.rjcf__form.is-complete .rjcf__challenge-target {
	background: var(--rjcf-success);
	border-color: var(--rjcf-success);
	color: var(--rjcf-success);
}

.rjcf__form.is-complete .rjcf__challenge-status {
	color: var(--rjcf-success);
}

.rjcf__form.has-error .rjcf__form-message {
	color: var(--rjcf-error);
}

.rjcf__submit {
	cursor: pointer;
	justify-self: start;
}

.rjcf__submit:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

@media (prefers-reduced-motion: no-preference) {
	.rjcf__challenge-dot,
	.rjcf__challenge-target {
		transition: background-color 160ms ease, border-color 160ms ease;
	}
}
