/* ── Contact Form Widget ──────────────────────────────────────── */

.hbc-cf-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 50px;
	padding: 40px 24px;
	box-sizing: border-box;
}

.hbc-cf-left,
.hbc-cf-right {
	flex: 1 1 calc(25% - 25px);
	min-width: 0;
}

/* ── Left ─────────────────────────────────────────────────── */

.hbc-cf-eyebrow {
	display: block;
	color: #e07a4d;
	font-size: 13px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	margin-bottom: 16px;
}

.hbc-cf-heading {
	color: #111;
	font-size: 38px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 20px;
}

.hbc-cf-desc {
	color: #666;
	font-size: 14px;
	line-height: 1.65;
	margin: 0 0 36px;
}

.hbc-cf-items {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.hbc-cf-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding-bottom: 24px;
	border-bottom: 1px solid #e5e5e5;
}

.hbc-cf-item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.hbc-cf-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #e07a4d;
	line-height: 1;
	margin-top: 2px;
}

.hbc-cf-icon i { font-size: 18px; }
.hbc-cf-icon svg { width: 18px; height: 18px; fill: currentColor; }

.hbc-cf-item-body {
	flex: 1;
	min-width: 0;
}

.hbc-cf-item-label {
	color: #111;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 8px;
}

.hbc-cf-item-content {
	color: #555;
	font-size: 13.5px;
	line-height: 1.65;
}

.hbc-cf-item-note {
	color: #888;
	font-size: 12.5px;
	line-height: 1.6;
	font-style: italic;
	margin-top: 12px;
}

/* ── Right ────────────────────────────────────────────────── */

.hbc-cf-form-heading {
	color: #111;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 8px;
}

.hbc-cf-form-sub {
	color: #666;
	font-size: 13px;
	line-height: 1.55;
	margin: 0 0 28px;
}

.hbc-cf-form {
	display: flex;
	flex-direction: column;
	row-gap: 14px;
}

.hbc-cf-row {
	display: flex;
	flex-wrap: wrap;
	column-gap: 14px;
	row-gap: 14px;
}

.hbc-cf-col {
	flex: 1 1 calc(50% - 7px);
	min-width: 140px;
}

/* Inputs */

.hbc-cf-input,
.hbc-cf-textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	background-color: #ffffff;
	color: #333333;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hbc-cf-input::placeholder,
.hbc-cf-textarea::placeholder {
	color: #999;
	opacity: 1;
}

.hbc-cf-input:focus,
.hbc-cf-textarea:focus {
	border-color: #b0b0b0;
}

.hbc-cf-textarea {
	resize: vertical;
	min-height: 110px;
	display: block;
}

/* Categories */

.hbc-cf-cats {
	padding: 14px 16px;
	background-color: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.hbc-cf-cats-label {
	display: block;
	color: #333;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	margin-bottom: 12px;
}

.hbc-cf-cats-label-asterisk {
	color: #e63946;
	margin-right: 2px;
}

.hbc-cf-cats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 24px;
	row-gap: 12px;
}

.hbc-cf-cat-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #333;
	font-size: 13px;
	line-height: 1.4;
	cursor: pointer;
	user-select: none;
	min-width: 0;
}

.hbc-cf-cat-item input[type="checkbox"] {
	width: 14px;
	height: 14px;
	margin: 0;
	accent-color: #e07a4d;
	cursor: pointer;
	flex-shrink: 0;
}

/* File upload */

.hbc-cf-file {
	margin-top: 4px;
}

.hbc-cf-file-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	margin: 0;
}

.hbc-cf-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.hbc-cf-file-btn {
	display: inline-block;
	background-color: #f1f1f1;
	color: #333;
	padding: 4px 12px;
	font-size: 13px;
	border: 1px solid #d0d0d0;
	border-radius: 2px;
	white-space: nowrap;
	transition: background 0.15s ease;
}

.hbc-cf-file-label:hover .hbc-cf-file-btn {
	background-color: #e8e8e8;
}

.hbc-cf-file-name {
	color: #666;
	font-size: 13px;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

/* Submit */

.hbc-cf-submit-wrap {
	margin-top: 6px;
}

.hbc-cf-submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: #111;
	color: #fff;
	padding: 14px 32px;
	border: none;
	border-radius: 50px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.05em;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.hbc-cf-submit:hover {
	background-color: #3688ED !important;
	transform: translateY(-1px);
}

.hbc-cf-submit-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.hbc-cf-submit-icon i { font-size: 14px; }
.hbc-cf-submit-icon svg { width: 14px; height: 14px; fill: currentColor; }

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 720px) {
	.hbc-cf-wrap {
		flex-direction: column;
		gap: 36px;
	}

	.hbc-cf-left,
	.hbc-cf-right {
		flex-basis: 100% !important;
	}

	/* !important 覆盖 cats_columns 桌面端列数 */
	.hbc-cf-cats-grid {
		grid-template-columns: repeat(2, 1fr) !important;
		column-gap: 12px !important;
	}
}

@media (max-width: 560px) {
	.hbc-cf-wrap {
		padding: 24px 16px;
	}

	.hbc-cf-heading {
		font-size: 28px;
	}

	.hbc-cf-col {
		flex: 1 1 100%;
	}
}

@media (max-width: 420px) {
	.hbc-cf-cats-grid {
		grid-template-columns: 1fr !important;
		row-gap: 10px !important;
	}
}

/* 复选框文字防止超长单词溢出 */
.hbc-cf-cat-item span {
	overflow-wrap: anywhere;
	word-break: break-word;
}
