/* =========================================================
   WB Inquiry — 自建询盘表单
   配色对齐站点主色 #21458f / 表单头 #2a6bb0
   ========================================================= */

.wb-inq {
	position: relative;
	box-sizing: border-box;
	max-width: 1100px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #dfe6ef;
	box-shadow: 0 2px 12px rgba(33, 69, 143, .07);
	font-size: 14px;
	color: #333;
	text-align: left;
}

.wb-inq * {
	box-sizing: border-box;
}

.wb-inq__head {
	background: #2a6bb0;
	color: #fff;
	padding: 13px 22px;
	font-size: 17px;
	line-height: 1.3;
	font-weight: 600;
	letter-spacing: .2px;
}

.wb-inq__body {
	padding: 18px 22px 20px;
}

.wb-inq__field {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.wb-inq input[type="text"],
.wb-inq input[type="email"],
.wb-inq input[type="tel"],
.wb-inq textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0 14px;
	height: 44px;
	line-height: 42px;
	background: #fff;
	border: 1px solid #dfe6ef;
	border-left: 3px solid #21458f;
	border-radius: 0;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none;
	color: #333;
	font-family: inherit;
	font-size: 14px;
	outline: none;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.wb-inq textarea {
	height: 118px;
	line-height: 1.65;
	padding: 11px 14px;
	resize: vertical;
}

.wb-inq input:focus,
.wb-inq textarea:focus {
	border-color: #2a6bb0;
	border-left-color: #2a6bb0;
	box-shadow: 0 0 0 2px rgba(42, 107, 176, .10);
}

.wb-inq input::-webkit-input-placeholder,
.wb-inq textarea::-webkit-input-placeholder {
	color: #96a2b3;
}

.wb-inq input::-moz-placeholder,
.wb-inq textarea::-moz-placeholder {
	color: #96a2b3;
	opacity: 1;
}

.wb-inq input:-ms-input-placeholder,
.wb-inq textarea:-ms-input-placeholder {
	color: #96a2b3;
}

/* 蜜罐：对人不可见，对爬虫可见 */
.wb-inq__hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.wb-inq__submit {
	display: block;
	width: 100%;
	height: 46px;
	margin: 4px 0 0;
	padding: 0 20px;
	border: 0;
	border-radius: 0;
	background: #21458f;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .8px;
	text-transform: uppercase;
	cursor: pointer;
	-webkit-transition: background .18s ease;
	transition: background .18s ease;
}

.wb-inq__submit:hover {
	background: #1a376f;
}

.wb-inq__submit:disabled,
.wb-inq__submit[disabled] {
	background: #8fa6c9;
	cursor: default;
}

/* 提示条 */
.wb-inq__msg {
	display: none;
	margin: 0 0 14px;
	padding: 10px 14px;
	font-size: 14px;
	line-height: 1.55;
	border-left: 3px solid transparent;
}

.wb-inq__msg.is-ok {
	display: block;
	background: #edf7ee;
	border-left-color: #3a9d3a;
	color: #256b25;
}

.wb-inq__msg.is-err {
	display: block;
	background: #fdeeee;
	border-left-color: #c0392b;
	color: #a5281b;
}

/* ---------- 内嵌版 ---------- */
.inquiry-form-wrap {
	height: auto;
	width: 100%;
	padding: 10px 0 0;
}

.inquiry-form-wrap .wb-inq {
	max-width: 1080px;
}

/* ---------- 弹窗版（550×500 容器内要装得下） ---------- */
.wb-inq--pop {
	max-width: 100%;
	border: 0;
	box-shadow: none;
}

.wb-inq--pop .wb-inq__head {
	padding: 11px 16px;
	font-size: 15px;
}

.wb-inq--pop .wb-inq__body {
	padding: 12px 16px 14px;
}

.wb-inq--pop .wb-inq__field {
	margin-bottom: 8px;
}

.wb-inq--pop input[type="text"],
.wb-inq--pop input[type="email"],
.wb-inq--pop input[type="tel"] {
	height: 38px;
	line-height: 36px;
	font-size: 13px;
}

.wb-inq--pop textarea {
	height: 82px;
	font-size: 13px;
	padding: 8px 12px;
}

.wb-inq--pop .wb-inq__submit {
	height: 40px;
	font-size: 13px;
	letter-spacing: .4px;
}

.wb-inq--pop .wb-inq__msg {
	margin-bottom: 10px;
	padding: 8px 10px;
	font-size: 13px;
}

.inquiry-pop-bd .inquiry-pop {
	overflow-y: auto;
	overflow-x: hidden;
	padding: 18px;
}

/* ---------- RTL（阿拉伯语 / 希伯来语）----------
   选择器挂在 html[dir="rtl"] 上：表单本身没有 dir 属性，
   之前写成 .wb-inq[dir="rtl"] 永远不生效。 */
body.wb-rtl .wb-inq {
	text-align: right;
}

body.wb-rtl .wb-inq input[type="text"],
body.wb-rtl .wb-inq input[type="email"],
body.wb-rtl .wb-inq input[type="tel"],
body.wb-rtl .wb-inq textarea {
	border-left: 1px solid #dfe6ef;
	border-right: 3px solid #21458f;
}

body.wb-rtl .wb-inq input:focus,
body.wb-rtl .wb-inq textarea:focus {
	border-left-color: #dfe6ef;
	border-right-color: #2a6bb0;
}

body.wb-rtl .wb-inq__msg {
	border-left: 0;
	border-right: 3px solid transparent;
}

body.wb-rtl .wb-inq__msg.is-ok {
	border-right-color: #3a9d3a;
}

body.wb-rtl .wb-inq__msg.is-err {
	border-right-color: #c0392b;
}

/* 蜜罐在 rtl 下会把 left:-9999px 变成向右溢出，撑出 9800px 横向滚动条 */
body.wb-rtl .wb-inq__hp {
	left: auto !important;
	right: -9999px !important;
}

/* ---------- 小屏 ---------- */
@media screen and (max-width: 768px) {
	.wb-inq__head {
		padding: 11px 14px;
		font-size: 15px;
	}

	.wb-inq__body {
		padding: 14px 14px 16px;
	}

	.wb-inq input[type="text"],
	.wb-inq input[type="email"],
	.wb-inq input[type="tel"] {
		height: 42px;
		line-height: 40px;
	}

	.wb-inq textarea {
		height: 104px;
	}

	.inquiry-pop-bd .inquiry-pop {
		padding: 12px;
	}
}
