/* ============================================
   Inquiry Form Button + Modal
   ============================================ */

/* 按钮容器 */
.ifw-trigger-wrap {
	display: flex;
}

/* 触发按钮 */
.ifw-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background-color: #2b4182;
	color: #ffffff;
	border: none;
	padding: 14px 40px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.5px;
	cursor: pointer;
	border-radius: 4px;
	transition: background-color .25s ease, color .25s ease, transform .15s ease, box-shadow .25s ease;
	min-width: 220px;
	text-decoration: none;
	line-height: 1.4;
}

.ifw-trigger:hover {
	background-color: #1e3068;
	color: #ffffff;
}

.ifw-trigger:active {
	transform: scale(0.97);
}

.ifw-trigger .ifw-trigger-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.ifw-trigger .ifw-trigger-icon svg,
.ifw-trigger .ifw-trigger-icon i {
	width: 16px;
	height: 16px;
	font-size: 16px;
	fill: currentColor;
}

.ifw-trigger.ifw-icon-right {
	flex-direction: row;
}

/* 弹窗：默认隐藏 */
.ifw-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.ifw-modal.is-open {
	display: flex;
}

.ifw-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	transition: opacity .3s ease;
}

.ifw-modal.is-open .ifw-modal-overlay {
	opacity: 1;
}

.ifw-modal-dialog {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
	transform: translateY(20px) scale(0.96);
	opacity: 0;
	transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1), opacity .25s ease;
}

.ifw-modal.is-open .ifw-modal-dialog {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.ifw-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	cursor: pointer;
	color: #6b7280;
	border-radius: 50%;
	transition: background-color .2s ease, color .2s ease;
	z-index: 2;
}

.ifw-modal-close:hover {
	background: rgba(0, 0, 0, 0.06);
	color: #1f2937;
}

.ifw-modal-close svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* 弹窗内表单：去掉外层卡片阴影/边框，由弹窗本身承载 */
.ifw-modal .form-card {
	box-shadow: none !important;
	border-radius: 0 !important;
	background: transparent !important;
}

/* 锁定 body 滚动 */
body.ifw-modal-open {
	overflow: hidden;
}

/* 手机适配 */
@media (max-width: 640px) {
	.ifw-trigger {
		width: 100%;
		min-width: 0;
	}
	.ifw-modal-dialog {
		max-width: 100%;
	}
}
