/**
 * Qing 产品询盘表单小部件样式。
 *
 * 结构：form.qing-piq-form
 *   > .qing-piq-product（当前产品：前缀 + 名称，整行）
 *   > .qing-piq-row.qing-piq-two（Email + Phone 两列）
 *   > .qing-piq-row > textarea.qing-piq-textarea（留言）
 *   > .qing-piq-feedback（提交反馈）
 *   > .qing-piq-actions > button.qing-piq-submit（提交按钮）
 */

.qing-piq-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
	box-sizing: border-box;
}

.qing-piq-form * {
	box-sizing: border-box;
}

/* 当前产品行 */
.qing-piq-product {
	display: flex;
	align-items: baseline;
	gap: 8px;
	width: 100%;
	padding: 14px 18px;
	background-color: #ffffff;
	border: 1px solid #e3e6ea;
	border-radius: 4px;
	line-height: 1.5;
}

.qing-piq-product-label {
	flex: 0 0 auto;
	color: #1f2733;
	font-weight: 600;
}

.qing-piq-product-name {
	flex: 1 1 auto;
	min-width: 0;
	color: #1f2733;
	word-break: break-word;
}

/* 两列行（Email + Phone） */
.qing-piq-two {
	display: flex;
	gap: 14px;
}

.qing-piq-two .qing-piq-field {
	flex: 1 1 0;
	min-width: 0;
}

/* 通用字段 */
.qing-piq-field {
	display: block;
	width: 100%;
	padding: 14px 18px;
	color: #1f2733;
	background-color: #ffffff;
	border: 1px solid #e3e6ea;
	border-radius: 4px;
	font-size: 15px;
	line-height: 1.5;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qing-piq-field:focus {
	border-color: #1e50c8;
	box-shadow: 0 0 0 2px rgba(30, 80, 200, 0.12);
}

.qing-piq-field::placeholder {
	color: #9aa4b2;
}

.qing-piq-textarea {
	height: 90px;
	resize: vertical;
}

/* 提交反馈 */
.qing-piq-feedback {
	display: none;
	font-size: 14px;
	line-height: 1.5;
}

.qing-piq-feedback.is-visible {
	display: block;
}

.qing-piq-feedback.is-error {
	color: #d33;
}

.qing-piq-feedback.is-success {
	color: #1a7f37;
}

/* 提交按钮 */
.qing-piq-actions {
	display: flex;
	justify-content: center;
}

.qing-piq-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 44px;
	color: #ffffff;
	background-color: #f5820a;
	border: 0;
	border-radius: 24px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: background-color 0.25s ease, opacity 0.25s ease;
}

.qing-piq-submit:hover {
	background-color: #dd7003;
}

.qing-piq-submit[disabled] {
	opacity: 0.7;
	cursor: default;
}

/* 响应式：窄屏两列堆叠 */
@media (max-width: 575px) {
	.qing-piq-two {
		flex-direction: column;
	}
}
