/* HSArticle Math CAPTCHA for Forms — frontend styles */

.hmcf-wrap {
	margin: 14px 0 18px;
	font-family: inherit;
	position: relative;
}

.hmcf-label {
	display: block;
	font-size: 0.875em;
	font-weight: 600;
	margin-bottom: 8px;
	color: inherit;
}

.hmcf-question-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.hmcf-canvas {
	display: block;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #f9fafb;
	max-width: 100%;
}

.hmcf-question-text {
	display: inline-block;
	font-size: 1.3em;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 8px 16px;
	background: #f9fafb;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	color: #111827;
	user-select: none;
}

.hmcf-refresh {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	cursor: pointer;
	font-size: 1.1em;
	width: 36px;
	height: 36px;
	color: #6b7280;
	transition: background 0.15s, border-color 0.15s;
	flex-shrink: 0;
}
.hmcf-refresh:hover {
	background: #f3f4f6;
	border-color: #9ca3af;
}
.hmcf-refresh:focus {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}
.hmcf-refresh:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.hmcf-input {
	display: block;
	width: 130px;
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 1em;
	font-family: inherit;
	color: inherit;
	background: #fff;
	-moz-appearance: textfield;
}
.hmcf-input::-webkit-outer-spin-button,
.hmcf-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.hmcf-input:focus {
	outline: 2px solid #2563eb;
	outline-offset: 1px;
	border-color: #2563eb;
}

.hmcf-error {
	display: block;
	margin-top: 7px;
	color: #dc2626;
	font-size: 0.85em;
	font-weight: 500;
}

.hmcf-blocked {
	padding: 10px 14px;
	background: #fef3c7;
	border: 1px solid #f59e0b;
	border-radius: 6px;
	color: #92400e;
	font-size: 0.9em;
	margin: 10px 0;
}

.hmcf-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 1px !important;
	width: 1px !important;
	overflow: hidden !important;
}
