.hkbcf-wrap,
.hkbcf-wrap * {
	box-sizing: border-box;
}

.hkbcf-wrap {
	--hkbcf-red: #ed1c24;
	--hkbcf-red-soft: #fff7f7;
	--hkbcf-row: #fbfcfe;
	--hkbcf-row-hover: #ffffff;
	--hkbcf-ink: #172033;
	--hkbcf-text: #344054;
	--hkbcf-muted: #667085;
	--hkbcf-border: #dfe5ee;
	--hkbcf-border-soft: #edf1f5;
	width: min(calc(100% - 32px), 1120px);
	margin: 26px auto 42px;
	color: var(--hkbcf-text);
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.hkbcf-header {
	max-width: 780px;
	margin: 0 auto 26px;
	text-align: center;
}

.hkbcf-header h2,
.hkbcf-message h2 {
	margin: 0 0 8px;
	color: var(--hkbcf-ink);
	font-family: inherit;
	font-size: 1.65em;
	font-weight: 700;
	line-height: 1.55;
}

.hkbcf-header p,
.hkbcf-message p {
	max-width: 760px;
	margin: 0 auto;
	color: var(--hkbcf-muted);
	font-size: 1em;
	font-weight: inherit;
	line-height: inherit;
	text-align: center !important;
}

.hkbcf-alert {
	margin: 0 0 18px;
	padding: 12px 16px;
	border: 1px solid #f1b7bb;
	border-radius: 12px;
	background: var(--hkbcf-red-soft);
	color: #991018;
	font-weight: 600;
	text-align: right;
}

.hkbcf-form {
	position: relative;
	overflow: hidden;
	display: grid;
	gap: 18px;
	padding: 30px 28px 24px;
	border: 1px solid var(--hkbcf-border);
	border-radius: 22px;
	background:
		linear-gradient(180deg, rgba(237, 28, 36, 0.04), rgba(255, 255, 255, 0) 150px),
		#fff;
	box-shadow: 0 18px 45px rgba(16, 24, 40, 0.075);
}

.hkbcf-form::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 5px;
	background: linear-gradient(90deg, rgba(237, 28, 36, 0), rgba(237, 28, 36, 0.75), rgba(237, 28, 36, 0));
	content: "";
}

.hkbcf-question {
	min-width: 0;
	margin: 0;
	padding: 24px 26px 26px;
	border: 1px solid #ccd6e4;
	border-radius: 18px;
	background:
		linear-gradient(180deg, var(--hkbcf-row-hover), var(--hkbcf-row));
	box-shadow: 0 10px 24px rgba(16, 24, 40, 0.055);
	text-align: right;
}

.hkbcf-question:last-of-type {
	border-bottom: 1px solid #ccd6e4;
}

.hkbcf-conditional[hidden] {
	display: none !important;
}

.hkbcf-question-title,
.hkbcf-comment > label {
	float: none;
	display: flex;
	width: 100%;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 12px;
	margin: 0 0 22px;
	padding: 0;
	color: var(--hkbcf-ink);
	font: inherit;
	font-size: 1.04em;
	font-weight: 700;
	line-height: 1.85;
	text-align: right;
}

.hkbcf-question-title > span,
.hkbcf-comment > label > span {
	display: inline-flex;
	flex: 0 0 30px;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin-top: 1px;
	border: 1px solid rgba(237, 28, 36, 0.24);
	border-radius: 50%;
	background: var(--hkbcf-red-soft);
	color: var(--hkbcf-red);
	font-size: 0.82em;
	font-weight: 700;
	line-height: 1;
}

.hkbcf-comment > label small {
	margin-inline-start: 5px;
	color: var(--hkbcf-muted);
	font-size: 0.9em;
	font-weight: 400;
}

.hkbcf-options {
	clear: both;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: 12px;
	width: 100%;
}

.hkbcf-options-four {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hkbcf-options-five {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hkbcf-options-two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hkbcf-option {
	position: relative;
	display: block;
	min-width: 0;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

.hkbcf-option input {
	position: absolute;
	inset: 50% auto auto 50%;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.hkbcf-option span {
	display: flex;
	height: 100%;
	min-height: 50px;
	align-items: center;
	justify-content: flex-start;
	gap: 9px;
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #d8e0eb;
	border-radius: 12px;
	background: linear-gradient(180deg, #fff, #fbfcfe);
	color: var(--hkbcf-text);
	font: inherit;
	font-size: 0.94em;
	font-weight: 500;
	line-height: 1.75;
	text-align: right;
	transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.hkbcf-option span::before {
	display: inline-flex;
	flex: 0 0 17px;
	width: 17px;
	height: 17px;
	border: 1.5px solid #a9b3c2;
	border-radius: 50%;
	background: #fff;
	content: "";
	transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.hkbcf-option:hover span {
	border-color: #b8c4d4;
	background: #fbfcfe;
	color: var(--hkbcf-ink);
	box-shadow: 0 7px 16px rgba(16, 24, 40, 0.04);
}

.hkbcf-option input:focus-visible + span {
	outline: 3px solid rgba(237, 28, 36, 0.14);
	outline-offset: 2px;
}

.hkbcf-option input:checked + span {
	border-color: rgba(237, 28, 36, 0.72);
	background: var(--hkbcf-red-soft);
	color: #9f1117;
	font-weight: 700;
	box-shadow: 0 8px 18px rgba(237, 28, 36, 0.08);
}

.hkbcf-option input:checked + span::before {
	border-color: var(--hkbcf-red);
	background: var(--hkbcf-red);
	box-shadow: inset 0 0 0 4px #fff;
}

.hkbcf-comment textarea {
	clear: both;
	display: block;
	width: 100%;
	min-height: 120px;
	margin: 0;
	padding: 13px 15px;
	resize: vertical;
	border: 1px solid #d8e0eb;
	border-radius: 12px;
	background: #fff;
	color: var(--hkbcf-text);
	font: inherit;
	font-size: 0.98em;
	line-height: inherit;
	text-align: right;
}

.hkbcf-comment textarea:focus {
	border-color: var(--hkbcf-red);
	outline: 3px solid rgba(237, 28, 36, 0.11);
}

.hkbcf-comment textarea::placeholder {
	color: #98a2b3;
}

.hkbcf-submit-row {
	display: grid;
	justify-items: center;
	gap: 10px;
	padding: 22px 0 0;
	text-align: center;
}

.hkbcf-submit-row button {
	min-width: 190px;
	min-height: 48px;
	padding: 10px 28px;
	border: 1px solid var(--hkbcf-red);
	border-radius: 999px;
	background: var(--hkbcf-red);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 12px 24px rgba(237, 28, 36, 0.18);
	transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.hkbcf-submit-row button:hover,
.hkbcf-submit-row button:focus-visible {
	border-color: #c81017;
	background: #c81017;
	box-shadow: 0 14px 28px rgba(237, 28, 36, 0.24);
	transform: translateY(-1px);
}

.hkbcf-submit-row button:disabled {
	border-color: #d0d5dd;
	background: #d0d5dd;
	color: #667085;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.hkbcf-submit-row p {
	max-width: 640px;
	margin: 0;
	color: var(--hkbcf-muted);
	font-size: 0.9em;
	line-height: inherit;
}

.hkbcf-message {
	width: min(calc(100% - 32px), 900px);
	margin: 34px auto;
	padding: 38px 28px;
	border: 1px solid var(--hkbcf-border);
	border-radius: 20px;
	background: #fff;
	text-align: center;
	box-shadow: 0 14px 38px rgba(16, 24, 40, 0.06);
}

.hkbcf-message-icon {
	display: inline-block;
	width: 52px;
	height: 52px;
	margin-bottom: 16px;
	border: 2px solid #d0d5dd;
	border-radius: 50%;
	background: #f9fafb;
}

.hkbcf-message-success .hkbcf-message-icon {
	position: relative;
	border-color: #6fcf97;
	background: #ecfdf3;
}

.hkbcf-message-success .hkbcf-message-icon::after {
	position: absolute;
	top: 13px;
	left: 17px;
	width: 13px;
	height: 22px;
	border-right: 3px solid #138a4b;
	border-bottom: 3px solid #138a4b;
	content: "";
	transform: rotate(45deg);
}

.hkbcf-message-error .hkbcf-message-icon {
	border-color: #f0aeb1;
	background: var(--hkbcf-red-soft);
}

@media (max-width: 980px) {
	.hkbcf-options,
	.hkbcf-options-four,
	.hkbcf-options-five,
	.hkbcf-options-three,
	.hkbcf-options-two {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.hkbcf-wrap {
		width: min(calc(100% - 8px), 700px);
		margin: 18px auto 30px;
		font-size: inherit;
		line-height: inherit;
	}

	.hkbcf-header {
		margin-bottom: 18px;
	}

	.hkbcf-header h2 {
		font-size: 1.45em;
	}

	.hkbcf-header p {
		font-size: 0.98em;
	}

	.hkbcf-form {
		gap: 12px;
		padding: 16px 10px 14px;
		border-radius: 18px;
	}

	.hkbcf-question {
		padding: 18px 14px 20px;
		border-radius: 14px;
	}

	.hkbcf-question-title,
	.hkbcf-comment > label {
		gap: 9px;
		margin-bottom: 16px;
		font-size: 1em;
	}

	.hkbcf-question-title > span,
	.hkbcf-comment > label > span {
		flex-basis: 28px;
		width: 28px;
		height: 28px;
		font-size: 0.8em;
	}

	.hkbcf-options,
	.hkbcf-options-four,
	.hkbcf-options-five,
	.hkbcf-options-three,
	.hkbcf-options-two {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.hkbcf-option span {
		min-height: 48px;
		padding: 10px 12px;
	}

	.hkbcf-submit-row button {
		width: 100%;
		min-width: 0;
	}
}

@media (max-width: 420px) {
	.hkbcf-wrap {
		width: min(calc(100% - 6px), 420px);
	}

	.hkbcf-form {
		padding-inline: 8px;
	}

	.hkbcf-question {
		padding-inline: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hkbcf-wrap * {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
