#qmModal{
	position:fixed; inset:0; z-index:99999;
	display:none; align-items:center; justify-content:center;
	background:rgba(0,0,0,.75); padding:24px; overflow:auto;
}
#qmModal.is-open{ display:flex; }
body.qm-lock{ overflow:hidden; }

#qmModal .qm-card{
	position:relative; box-sizing:border-box;
	width:min(780px,100%); max-height:96vh; overflow-y:auto;
	background:#fff; padding:36px 48px 26px;
	box-shadow:0 24px 70px rgba(0,0,0,.4);
	animation:qmIn .2s ease-out;
}
@keyframes qmIn{ from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }

#qmModal h2{
	margin:0 0 10px; text-align:center;
	font-size:32px; line-height:1.15; font-weight:800;
	letter-spacing:.5px; text-transform:uppercase;
}
#qmModal .qm-sub{
	margin:0 0 16px; text-align:center;
	font-size:14px; line-height:1.5; color:#4a4a4a;
}
#qmModal .qm-x{
	position:absolute; top:6px; right:10px;
	width:42px; height:42px; border:0; background:none;
	font-size:30px; line-height:1; cursor:pointer; color:#222; opacity:.8;
}
#qmModal .qm-x:hover{ opacity:1; }

/* 蜜罐字段不参与布局，避免自动填充命中被判垃圾 */
#qmModal .hp-field{ display:none !important; }

/* 主题的 "WhatsApp instead" 会在按钮下方换行，留下一条 74px 空白 */
#qmModal .form-actions .btn--ghost{ display:none !important; }

/* 下拉框补箭头 */
#qmModal .field select{
	background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='1.8'/%3E%3C/svg%3E");
	background-repeat:no-repeat;
	background-position:right 14px center;
	background-size:12px;
	padding-right:38px;
}

/* 收紧纵向留白，保证 1440x900 下 0 溢出 */
#qmModal .form-grid{ gap:11px 16px !important; }
#qmModal .field{ margin:0 !important; }

/* 提交按钮占满整行 */
#qmModal .form-actions{ margin-top:6px !important; justify-content:center !important; }
#qmModal .form-actions > .btn,
#qmModal .form-actions > button,
#qmModal .form-actions > input[type=submit]{
	width:100% !important; justify-content:center !important; text-align:center !important;
}

/* 底部"2 小时内回复"与副标题重复，只留隐私说明 */
#qmModal .form-promise{ display:none !important; }
#qmModal .form-consent{ margin-top:10px !important; font-size:12px !important; line-height:1.45 !important; }

/* 移动端整屏滚动；不用 sticky —— 表单 1200px 以上会把 QUANTITY 输入框压住 */
@media (max-width:640px){
	#qmModal{ padding:0; align-items:stretch; }
	#qmModal .qm-card{
		width:100%; height:100vh; height:100dvh;
		max-height:none; padding:52px 20px 34px;
		box-shadow:none;
	}
	#qmModal h2{ font-size:25px; }
	#qmModal .qm-sub{ font-size:13.5px; margin-bottom:16px; }
	#qmModal .form-grid{ gap:12px !important; }
	#qmModal .form-actions{
		position:static !important;
		margin:6px 0 0 !important;
		padding:10px 0 0 !important;
		box-shadow:none !important;
	}
}