/**
 * 产品询盘弹窗样式（对齐设计稿）。
 *
 * 结构：遮罩层 .qing-inq-overlay > 弹窗 .qing-inq-modal >
 *      关闭按钮 / 标题 + 下划线 / 说明 / 表单（两列输入 + 整宽留言 + 提交）。
 * 颜色与排版提供合理默认，可由「询盘表单」小部件的样式控件覆盖。
 */

.qing-inq-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(15, 23, 42, 0.55);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	box-sizing: border-box;
}

.qing-inq-overlay[hidden] {
	display: flex; /* 覆盖 hidden 默认 display:none，改由 class 控制显隐动画 */
}

.qing-inq-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.qing-inq-modal {
	position: relative;
	width: 100%;
	max-width: 920px;
	max-height: 90vh;
	overflow-y: auto;
	background: #ffffff;
	border-radius: 4px;
	padding: 48px 56px 56px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
	transform: translateY(16px);
	transition: transform 0.25s ease;
	box-sizing: border-box;
}

.qing-inq-overlay.is-open .qing-inq-modal {
	transform: translateY(0);
}

.qing-inq-close {
	position: absolute;
	top: 16px;
	right: 20px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #1f2733;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s ease, transform 0.2s ease;
}

.qing-inq-close:hover {
	color: #2563eb;
	transform: rotate(90deg);
}

.qing-inq-title {
	margin: 0;
	text-align: center;
	color: #1a1a1a;
	font-size: 30px;
	font-weight: 800;
}

.qing-inq-title-line {
	display: block;
	width: 40px;
	height: 3px;
	margin: 12px auto 0;
	background: #1e3a8a;
	border-radius: 2px;
}

.qing-inq-desc {
	max-width: 760px;
	margin: 20px auto 32px;
	text-align: center;
	color: #b45309;
	font-size: 15px;
	line-height: 1.7;
}

.qing-inq-form {
	max-width: 740px;
	margin: 0 auto;
}

.qing-inq-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 20px;
}

.qing-inq-row--full {
	grid-template-columns: 1fr;
}

.qing-inq-input {
	width: 100%;
	padding: 14px 16px;
	color: #1f2733;
	font-size: 15px;
	background: #ffffff;
	border: 1px solid #d8dde5;
	border-radius: 4px;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qing-inq-input::placeholder {
	color: #9aa3b0;
}

.qing-inq-input:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.qing-inq-textarea {
	resize: vertical;
	min-height: 120px;
}

.qing-inq-feedback {
	margin-bottom: 16px;
	min-height: 20px;
	text-align: center;
	font-size: 14px;
}

.qing-inq-feedback.is-error {
	color: #dc2626;
}

.qing-inq-feedback.is-success {
	color: #16a34a;
}

.qing-inq-actions {
	text-align: center;
}

.qing-inq-submit {
	min-width: 220px;
	padding: 15px 40px;
	color: #ffffff;
	font-size: 17px;
	font-weight: 700;
	background: #1e4fb0;
	border: 0;
	border-radius: 30px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.qing-inq-submit:hover {
	background: #1a4497;
}

.qing-inq-submit:active {
	transform: translateY(1px);
}

.qing-inq-submit[disabled] {
	opacity: 0.7;
	cursor: not-allowed;
}

/* 打开弹窗时禁止 body 滚动。 */
body.qing-inq-lock {
	overflow: hidden;
}

/* 询盘表单小部件的触发按钮基础外观（配色由控件覆盖）。 */
.qing-inqw-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	background: #f5820a;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.qing-inqw-trigger:hover {
	background: #dd7003;
}

.qing-inqw-trigger:active {
	transform: translateY(1px);
}

/* 触发按钮图标：大小/颜色/间距由控件下发，此处仅做基础排布。 */
.qing-inqw__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	font-size: 16px;
}

.qing-inqw__icon svg {
	width: 1em;
	height: 1em;
	display: block;
	fill: currentColor;
}

/* -------- 移动端适配 -------- */
@media (max-width: 767px) {
	.qing-inq-modal {
		padding: 40px 22px 32px;
	}

	.qing-inq-row {
		grid-template-columns: 1fr;
		gap: 14px;
		margin-bottom: 14px;
	}

	.qing-inq-title {
		font-size: 24px;
	}

	.qing-inq-submit {
		width: 100%;
	}
}
