/* ==========================================================
   Inquiry Popup Widget
   ========================================================== */

/* 触发按钮 */
.ipw-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 2px solid #e67e22;
	color: #e67e22;
	background-color: transparent;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	text-decoration: none;
	padding: 13px 28px;
	border-radius: 4px;
	cursor: pointer;
	line-height: 1.4;
	transition: background-color 0.25s ease, color 0.25s ease,
	            border-color 0.25s ease, transform 0.2s ease;
}

.ipw-btn:hover {
	background-color: #e67e22;
	color: #ffffff;
	transform: translateY(-2px);
}

.ipw-btn .ipw-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: transform 0.2s ease;
}

.ipw-btn .ipw-btn-icon i,
.ipw-btn .ipw-btn-icon svg {
	font-size: 13px;
	width: 13px;
	height: 13px;
	display: block;
	flex-shrink: 0;
}

.ipw-btn:hover .ipw-btn-icon {
	transform: translateX(4px);
}

/* 遮罩层 */
.ipw-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99999;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px;
}

/* 弹窗主体 */
.ipw-box {
	background: #ffffff;
	border-radius: 10px;
	width: 100%;
	max-width: 520px;
	padding: 40px 36px 36px;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
	animation: ipwIn 0.25s ease;
	max-height: 90vh;
	overflow-y: auto;
}

@keyframes ipwIn {
	from { opacity: 0; transform: translateY(-20px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* 关闭按钮 */
.ipw-close {
	position: absolute;
	top: 14px;
	right: 18px;
	font-size: 24px;
	color: #999999;
	cursor: pointer;
	background: none;
	border: none;
	line-height: 1;
	padding: 4px 6px;
	transition: color 0.2s ease;
}

.ipw-close:hover {
	color: #333333;
	background: none;
}

/* 弹窗标题 */
.ipw-title {
	font-size: 24px;
	font-weight: 800;
	color: #1a2e5a;
	margin-bottom: 24px;
	text-align: center;
}

/* 表单字段 */
.ipw-field {
	margin-bottom: 14px;
}

.ipw-field input,
.ipw-field textarea {
	width: 100%;
	border: 1px solid #dde2ec;
	border-radius: 6px;
	padding: 14px 16px;
	font-size: 15px;
	color: #333333;
	background: #ffffff;
	outline: none;
	font-family: inherit;
	transition: border-color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.ipw-field input::placeholder,
.ipw-field textarea::placeholder {
	color: #aab0be;
}

.ipw-field input:focus,
.ipw-field textarea:focus {
	border-color: #1a2e5a;
}

.ipw-field textarea {
	resize: vertical;
	min-height: 120px;
}

/* 提交按钮 */
.ipw-submit {
	width: 100%;
	padding: 16px;
	background-color: #1a2e5a;
	color: #ffffff;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	margin-top: 6px;
	font-family: inherit;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ipw-submit:hover {
	background-color: #142248;
}

/* 成功提示 */
.ipw-success {
	text-align: center;
	padding: 24px 0 8px;
	color: #1a2e5a;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.6;
}

.ipw-success::before {
	content: '✓';
	display: block;
	font-size: 36px;
	color: #27ae60;
	margin-bottom: 12px;
}

