.hi5s-cf {
	--hi5s-cf-accent: var(--global-palette1, #1d4ed8);
	--hi5s-cf-accent-hover: var(--global-palette2, #173f83);
	--hi5s-cf-border: #aeb8c2;
	--hi5s-cf-muted: #57606a;
	--hi5s-cf-error: #b42318;
	--hi5s-cf-error-background: #fff1f0;
	--hi5s-cf-success: #24743a;
	--hi5s-cf-success-background: #f1faf3;
	width: 100%;
	max-width: 860px;
	container-type: inline-size;
	color: inherit;
	font: inherit;
	line-height: 1.5;
}

.hi5s-cf,
.hi5s-cf * {
	box-sizing: border-box;
}

.hi5s-cf__stage-title {
	margin-top: 0;
}

.hi5s-cf__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 18px;
}

.hi5s-cf__field {
	margin-bottom: 18px;
}

.hi5s-cf__field label,
.hi5s-cf__code legend {
	display: block;
	margin: 0 0 6px;
	font-weight: 700;
}

.hi5s-cf__field input,
.hi5s-cf__field select,
.hi5s-cf__field textarea {
	display: block;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--hi5s-cf-border);
	border-radius: 4px;
	background: #fff;
	color: #202830;
	font: inherit;
	line-height: 1.4;
}

.hi5s-cf__field textarea {
	min-height: 120px;
	resize: vertical;
}

.hi5s-cf__field input[readonly] {
	background: #f3f5f7;
	color: #3f4852;
	cursor: not-allowed;
}

.hi5s-cf__field input:focus-visible,
.hi5s-cf__field select:focus-visible,
.hi5s-cf__field textarea:focus-visible,
.hi5s-cf__code input:focus-visible,
.hi5s-cf__button:focus-visible,
.hi5s-cf__link-button:focus-visible {
	outline: 3px solid var(--hi5s-cf-accent);
	outline: 3px solid color-mix(in srgb, var(--hi5s-cf-accent) 45%, transparent);
	outline-offset: 2px;
}

.hi5s-cf__required {
	color: var(--hi5s-cf-error);
}

.hi5s-cf__optional {
	margin-left: 4px;
	color: var(--hi5s-cf-muted);
	font-size: 0.875em;
	font-weight: 400;
}

.hi5s-cf__button {
	display: inline-block;
	min-height: 44px;
	padding: 10px 18px;
	border: 0;
	border-radius: 4px;
	background: var(--hi5s-cf-accent);
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	line-height: 1.4;
}

.hi5s-cf__button:hover,
.hi5s-cf__button:focus {
	background: var(--hi5s-cf-accent-hover);
	color: #fff;
}

.hi5s-cf__code {
	margin: 0 0 18px;
	padding: 0;
	border: 0;
}

.hi5s-cf__code-fields {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
}

.hi5s-cf__code input {
	width: 48px;
	min-width: 0;
	height: 52px;
	padding: 8px 4px;
	border: 1px solid var(--hi5s-cf-border);
	border-radius: 4px;
	background: #fff;
	color: #202830;
	font: inherit;
	font-size: 24px;
	line-height: 1;
	text-align: center;
}

.hi5s-cf__secondary-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin-top: 20px;
}

.hi5s-cf__secondary-actions form,
.hi5s-cf__change-email {
	margin: 0;
}

.hi5s-cf__change-email {
	margin-top: 20px;
}

.hi5s-cf__field--choices {
	padding: 0;
	border: 0;
}

.hi5s-cf__field--choices legend {
	margin-bottom: 8px;
	font-weight: 700;
}

.hi5s-cf__field--choices label {
	display: inline-flex;
	align-items: center;
	margin: 0 22px 8px 0;
	font-weight: 400;
}

.hi5s-cf__field--choices input {
	width: auto;
	margin-right: 7px;
}

.hi5s-cf__link-button {
	min-height: 44px;
	padding: 8px 0;
	border: 0;
	background: transparent;
	color: var(--hi5s-cf-accent);
	cursor: pointer;
	font: inherit;
	text-decoration: underline;
}

.hi5s-cf__link-button:disabled {
	color: var(--hi5s-cf-muted);
	cursor: not-allowed;
}

.hi5s-cf__alert {
	margin: 0 0 20px;
	padding: 14px 18px;
	border-left: 5px solid var(--hi5s-cf-accent);
	background: #eef5ff;
}

.hi5s-cf__alert:focus {
	outline: 0;
}

.hi5s-cf__alert--error {
	border-left-color: var(--hi5s-cf-error);
	background: var(--hi5s-cf-error-background);
}

.hi5s-cf__alert ul {
	margin: 8px 0 0 20px;
}

.hi5s-cf__success {
	padding: 24px;
	border: 1px solid #b7d7bd;
	border-left: 5px solid var(--hi5s-cf-success);
	border-radius: 4px;
	background: var(--hi5s-cf-success-background);
}

.hi5s-cf__honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.hi5s-cf__screen-reader {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 640px) {
	.hi5s-cf__grid {
		grid-template-columns: 1fr;
	}

	.hi5s-cf__code-fields {
		gap: 5px;
	}

	.hi5s-cf__code input {
		width: calc((100% - 25px) / 6);
		max-width: 48px;
	}
}

@container (max-width: 640px) {
	.hi5s-cf__grid {
		grid-template-columns: 1fr;
	}

	.hi5s-cf__code-fields {
		gap: 5px;
	}

	.hi5s-cf__code input {
		width: calc((100% - 25px) / 6);
		max-width: 48px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hi5s-cf *,
	.hi5s-cf *::before,
	.hi5s-cf *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
