/**
 * TAXSCO Product Inquiry — 前端样式
 * ------------------------------------------------------------
 * 全部数值 1:1 提取自设计源 ProductDetail.tsx（Product Inquiry 区块）
 * 设计 token：主红 #D12920 / hover #B82218 / 藏青 #142B3D / 灰 #777777
 *            边框 #E8E9EA / 区块底 #F4F5F6 / 输入底 #FAFAF8
 * 字体：Manrope 800（标题）+ Inter（正文与表单）
 * 所有类名统一 dx- 前缀，避免与主题冲突
 * ------------------------------------------------------------ */

/* ---------- 表单外框（原设计区块 #F4F5F6，上下 96px） ---------- */
.dx-iq-wrap {
	background: #F4F5F6;
	padding: 96px 24px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	box-sizing: border-box;
}

.dx-iq-wrap *,
.dx-iq-wrap *::before,
.dx-iq-wrap *::after {
	box-sizing: border-box;
}

/* ---------- 标题区 ---------- */
.dx-iq-head {
	max-width: 852px;
	margin: 0 auto 48px;
	text-align: center;
}

.dx-iq-eyebrow {
	font-size: 11px;
	font-weight: 700;
	color: #D12920;
	text-transform: uppercase;
	letter-spacing: 0.35em;
	line-height: 1.4;
	margin: 0 0 16px;
}

.dx-iq-title {
	font-family: 'Manrope', 'Inter', sans-serif;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.2;
	color: #142B3D;
	margin: 0 0 12px;
	letter-spacing: 0;
	text-transform: none;
}

.dx-iq-intro {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: #777777;
	max-width: 576px;
	margin: 0 auto;
}

/* ---------- 提示条 ---------- */
.dx-iq-alert {
	display: none;
	max-width: 852px;
	margin: 0 auto 20px;
	padding: 12px 16px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
}

.dx-iq-alert.is-visible {
	display: block;
}

.dx-iq-success {
	border-left: 4px solid #1E7E34;
	background: #EAF6EC;
	color: #1E7E34;
}

.dx-iq-error {
	border-left: 4px solid #D12920;
	background: #FDEEEE;
	color: #B82218;
}

/* ---------- 白色表单卡片 ---------- */
.dx-iq-card {
	max-width: 852px;
	margin: 0 auto;
	background: #FFFFFF;
	padding: 48px;
}

/* ---------- 产品名条 ---------- */
.dx-pn {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #FAFAF8;
	border-left: 4px solid #D12920;
	padding: 14px 20px;
	margin: 0 0 32px;
}

.dx-pn-label {
	font-size: 10px;
	font-weight: 700;
	color: #777777;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	line-height: 1.4;
	flex-shrink: 0;
}

.dx-pn-name {
	font-size: 14px;
	font-weight: 700;
	color: #142B3D;
	line-height: 1.4;
}

/* ---------- 字段栅格 ---------- */
.dx-iq-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 20px;
}

.dx-iq-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.dx-iq-field > label {
	display: block;
	font-size: 10px;
	font-weight: 700;
	color: #142B3D;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	line-height: 1.4;
	margin-bottom: 8px;
}

/* ---------- 输入控件 ---------- */
.dx-iq-field input[type="text"],
.dx-iq-field input[type="email"],
.dx-iq-field input[type="tel"],
.dx-iq-field textarea {
	width: 100%;
	border: 1px solid #E8E9EA;
	background: #FAFAF8;
	padding: 10px 16px;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	color: #142B3D;
	border-radius: 0;
	outline: none;
	box-shadow: none;
	transition: border-color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.dx-iq-field input::placeholder,
.dx-iq-field textarea::placeholder {
	color: #AAAAAA;
	opacity: 1;
}

.dx-iq-field input:focus,
.dx-iq-field textarea:focus {
	border-color: #D12920;
	box-shadow: none;
	outline: none;
}

/* 文件上传：只定外框样式，不接管内部按钮 —— 保留浏览器原生外观（与设计稿一致） */
.dx-iq-field input[type="file"] {
	width: 100%;
	border: 1px solid #E8E9EA;
	background: #FAFAF8;
	padding: 10px 16px;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	color: #777777;
	border-radius: 0;
	box-shadow: none;
	transition: border-color 0.2s ease;
}

.dx-iq-field textarea {
	resize: none;
}

.dx-iq-ta {
	margin-bottom: 24px;
}

/* ---------- 提交按钮 ---------- */
.dx-iq-btn {
	display: block;
	width: 100%;
	padding: 16px 24px;
	background: #D12920;
	color: #FFFFFF;
	border: none;
	border-radius: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: background-color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.dx-iq-btn:hover,
.dx-iq-btn:focus,
.dx-iq-btn:active,
.dx-iq-btn:focus-visible {
	background: #B82218;
	color: #FFFFFF;
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
}

/* ---------- 蜜罐字段（视觉隐藏但不由 display:none 隐藏） ---------- */
.dx-iq-hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* ---------- 平板（≤1024px） ---------- */
@media (max-width: 1024px) {
	.dx-iq-wrap {
		padding: 72px 24px;
	}

	.dx-iq-card {
		padding: 32px;
	}

	.dx-iq-head {
		margin-bottom: 40px;
	}
}

/* ---------- 手机（≤767px） ---------- */
@media (max-width: 767px) {
	.dx-iq-wrap {
		padding: 48px 16px;
	}

	.dx-iq-card {
		padding: 24px;
	}

	.dx-iq-head {
		margin-bottom: 32px;
	}

	.dx-iq-eyebrow {
		font-size: 10px;
		letter-spacing: 0.3em;
		margin-bottom: 12px;
	}

	.dx-iq-title {
		font-size: 24px;
		line-height: 1.25;
		margin-bottom: 10px;
	}

	.dx-iq-intro {
		font-size: 13px;
	}

	/* 字段单列堆叠 */
	.dx-iq-grid {
		grid-template-columns: 1fr;
		gap: 16px;
		margin-bottom: 16px;
	}

	.dx-pn {
		flex-wrap: wrap;
		gap: 6px 8px;
		padding: 12px 16px;
		margin-bottom: 24px;
	}

	.dx-pn-name {
		font-size: 13px;
	}

	.dx-iq-btn {
		padding: 15px 20px;
		font-size: 13px;
		letter-spacing: 0.08em;
	}
}
