/* WPBiz 询价表单样式（配合主题 custom.css 中的 .wpb-form-* 规则） */

.wpb-form-wrap {
	max-width: 720px;
	margin: 0 auto;
}

.wpb-form-title {
	margin-top: 0;
	margin-bottom: 8px;
	font-size: 1.5rem;
}

.wpb-form-desc {
	color: #6B5D52;
	margin-top: 0;
	margin-bottom: 28px;
}

/* 电话旁提示：占 grid 右列，垂直居中 */
.wpb-form-note {
	display: flex;
	align-items: center;
	padding: 0 4px;
	font-size: 0.875rem;
	color: #6B5D52;
}

.wpb-inquiry-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 20px;
}

.wpb-inquiry-form .wpb-col-full {
	grid-column: 1 / -1;
}

.wpb-hp {
	position: absolute !important;
	left: -9999px !important;
	opacity: 0;
	height: 0;
	overflow: hidden;
}

.wpb-form-submit {
	/* 询盘提交是站点最高转化按钮：品牌主色实心 + 白字 + 微阴影，确保一眼能看见 */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 16px 28px;
	margin-top: 6px;
	font-family: inherit;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	color: #fff;
	background: linear-gradient(180deg, #F07A24 0%, #E8630A 55%, #C14B06 100%);
	border: 1px solid #B04404;
	border-radius: 12px;
	box-shadow: 0 6px 18px rgba(232, 99, 10, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.wpb-form-submit:hover,
.wpb-form-submit:focus-visible {
	color: #fff;
	background: linear-gradient(180deg, #F58A38 0%, #EC6A12 55%, #C8500A 100%);
	box-shadow: 0 10px 24px rgba(232, 99, 10, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.3);
	outline: none;
	transform: translateY(-1px);
}

.wpb-form-submit:active {
	transform: translateY(0);
	box-shadow: 0 4px 10px rgba(193, 75, 6, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
	filter: brightness(0.96);
}

.wpb-form-submit:disabled {
	background: #F0D6BF;
	border-color: #E5C4A6;
	color: #fff;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
	opacity: 0.85;
}

/* 可选附件上传（简单直观，不强制） */
.wpb-form-file {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.wpb-form-file input[type="file"] {
	max-width: 100%;
	padding: 8px;
	background: #fff;
	border: 1px dashed #C9B8A5;
	border-radius: 8px;
	font-size: 0.875rem;
	cursor: pointer;
}

.wpb-form-file-name {
	font-size: 0.875rem;
	color: #8A6F4D;
	word-break: break-all;
}

.wpb-form-file-hint {
	margin: 6px 0 0;
	font-size: 0.8125rem;
	color: #8A8A8A;
}

/* 表单底部安全收款背书（转化信任） */
.wpb-form-secure {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 auto;
	padding: 10px 14px;
	box-sizing: border-box;
	border: 1px dashed #D8C7B4;
	border-radius: 8px;
	background: #FFFDF9;
	color: #7A6A5E;
	font-size: 0.8125rem;
	line-height: 1.6;
}

.wpb-form-secure.wpb-col-full {
	grid-column: 1 / -1;
}

.wpb-form-secure svg {
	flex: 0 0 auto;
	color: #15803d;
}

@media (max-width: 640px) {
	.wpb-inquiry-form {
		grid-template-columns: 1fr;
	}
}

/* ---------- 迭代 3.2：可选标记 ---------- */

.wpb-opt {
	font-weight: 400;
	font-size: 0.8125rem;
	color: #8A8A8A;
}

/* ---------- 迭代 3.1：正文内嵌精简表单 ----------
 * 由 WPBiz_Inquiry_Inline_Form 注入到正文约 1/3 处。样式放插件里（不写主题 custom.css），
 * 这样主题样式包（m/n/q 共用一个 custom.css）的合并顺序不受影响。
 * 所有覆盖都用「两个类 + 元素」的高特异性，确保不依赖 CSS 加载顺序。
 */

.wpb-inline-cta {
	margin: 34px 0;
	padding: 24px 24px 20px;
	box-sizing: border-box;
	background: linear-gradient(180deg, #FFF9F4 0%, #FFFDFB 100%);
	border: 1px solid #F0D6BF;
	border-left: 4px solid var(--wpb-primary, #E8630A);
	border-radius: 12px;
}

.wpb-inline-cta-head {
	margin-bottom: 16px;
}

.wpb-inline-cta .wpb-inline-cta-title {
	margin: 0 0 6px;
	font-size: 1.25rem;
	line-height: 1.3;
}

.wpb-inline-cta .wpb-inline-cta-desc {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: #6B5D52;
}

.wpb-inquiry-form--inline .wpb-form-field {
	margin-bottom: 12px;
}

.wpb-inquiry-form--inline .wpb-form-field label {
	font-size: 0.8125rem;
}

.wpb-inquiry-form--inline .wpb-form-field textarea {
	min-height: 76px;
	resize: vertical;
}

.wpb-inquiry-form--inline .wpb-form-submit {
	padding: 13px 22px;
	font-size: 1rem;
	margin-top: 4px;
}

@media (max-width: 640px) {
	.wpb-inline-cta {
		margin: 26px 0;
		padding: 18px 16px 16px;
	}
}
