/* M2 Heating Forms — brand colors: black #1a1a1a / red #c8202f */
.m2hf-form-wrap {
	--m2hf-black: #1a1a1a;
	--m2hf-red: #c8202f;
	--m2hf-red-dark: #a5121f;
	--m2hf-gray: #f4f4f4;
	--m2hf-border: #dcdcdc;

	position: relative;
	max-width: 720px;
	margin: 0 auto;
	background:
		radial-gradient(circle at 100% 0%, rgba(200,32,47,0.10) 0%, rgba(200,32,47,0) 45%),
		radial-gradient(circle at 0% 100%, rgba(26,26,26,0.06) 0%, rgba(26,26,26,0) 40%),
		linear-gradient(155deg, #ffffff 0%, #f7f8fa 55%, #f1f2f5 100%);
	border-radius: 14px;
	padding: 40px;
	box-shadow: 0 20px 45px rgba(20,20,20,0.12), 0 2px 8px rgba(20,20,20,0.06);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
	overflow: hidden;
}
.m2hf-form-wrap * { box-sizing: border-box; }

/* Top accent bar: black -> red, echoing the M2 logo */
.m2hf-form-wrap::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 7px;
	background: linear-gradient(90deg, var(--m2hf-black) 0%, var(--m2hf-black) 45%, var(--m2hf-red) 100%);
}

.m2hf-form-header {
	position: relative;
	z-index: 1;
}

.m2hf-form-header h3 {
	margin: 0 0 6px;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: 0.5px;
	color: var(--m2hf-black);
	text-transform: uppercase;
	border-bottom: 3px solid var(--m2hf-red);
	display: inline-block;
	padding-bottom: 8px;
}
.m2hf-form-header p {
	margin: 12px 0 26px;
	color: #555;
	font-size: 15px;
}

.m2hf-form {
	position: relative;
	z-index: 1;
}

.m2hf-row {
	display: flex;
	gap: 16px;
	margin-bottom: 4px;
}
.m2hf-row .m2hf-field { flex: 1 1 0; }

.m2hf-field { margin-bottom: 18px; }
.m2hf-field-full { width: 100%; }

.m2hf-field label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: var(--m2hf-black);
	margin-bottom: 6px;
}
.m2hf-field label .req { color: var(--m2hf-red); }

.m2hf-field input[type="text"],
.m2hf-field input[type="email"],
.m2hf-field input[type="tel"],
.m2hf-field input[type="date"],
.m2hf-field select,
.m2hf-field textarea {
	width: 100%;
	padding: 12px 14px;
	font-size: 15px;
	border: 2px solid #d5d7dc;
	border-radius: 8px;
	background: #ffffff;
	color: var(--m2hf-black);
	box-shadow: 0 1px 2px rgba(20,20,20,0.04);
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.m2hf-field textarea { resize: vertical; }

.m2hf-field input:hover,
.m2hf-field select:hover,
.m2hf-field textarea:hover {
	border-color: #b9bcc3;
}

.m2hf-field input:focus,
.m2hf-field select:focus,
.m2hf-field textarea:focus {
	outline: none;
	border-color: var(--m2hf-red);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(200,32,47,0.14);
}

.m2hf-field select {
	appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%23c8202f'><path d='M7 10l5 5 5-5z'/></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
}

.m2hf-honeypot { position: absolute; left: -9999px; top: -9999px; }

.m2hf-submit-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: linear-gradient(135deg, var(--m2hf-red) 0%, var(--m2hf-red-dark) 100%);
	color: #fff;
	border: none;
	padding: 15px 36px;
	font-size: 16px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	border-radius: 8px;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(200,32,47,0.28);
	transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.m2hf-submit-btn:hover { box-shadow: 0 10px 22px rgba(200,32,47,0.36); transform: translateY(-1px); }
.m2hf-submit-btn:active { transform: scale(0.98); }
.m2hf-submit-btn:disabled { opacity: 0.65; cursor: not-allowed; box-shadow: none; }

.m2hf-btn-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255,255,255,0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: m2hf-spin 0.7s linear infinite;
}
@keyframes m2hf-spin { to { transform: rotate(360deg); } }

.m2hf-alert {
	padding: 13px 16px;
	border-radius: 4px;
	margin-bottom: 18px;
	font-size: 14px;
	font-weight: 600;
}
.m2hf-alert-success { background: #e9f7ee; color: #1d6b34; border: 1px solid #b7e3c4; }
.m2hf-alert-error { background: #fceceb; color: var(--m2hf-red-dark); border: 1px solid #f3b9bb; }

.m2hf-business-info {
	position: relative;
	z-index: 1;
	margin-top: 30px;
	padding: 16px 20px;
	background: rgba(26,26,26,0.03);
	border: 1.5px solid rgba(26,26,26,0.08);
	border-left: 4px solid var(--m2hf-red);
	border-radius: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 18px 28px;
}
.m2hf-info-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--m2hf-black);
}
.m2hf-info-item a { color: var(--m2hf-red); text-decoration: none; }
.m2hf-info-item a:hover { text-decoration: underline; }
.m2hf-icon { width: 16px; height: 16px; fill: var(--m2hf-red); flex-shrink: 0; }

@media (max-width: 600px) {
	.m2hf-form-wrap { padding: 22px; }
	.m2hf-row { flex-direction: column; gap: 0; }
	.m2hf-form-header h3 { font-size: 21px; }
	.m2hf-business-info { flex-direction: column; gap: 10px; }
}
