/* MTI Baths Warranty Claim Form — all rules scoped to #mti-wc so the theme can't override them. */

#mti-wc {
	max-width: 780px !important;
	margin: 0 auto 60px !important;
	padding: 0 4px;
	color: #222;
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}
#mti-wc *, #mti-wc *::before, #mti-wc *::after { box-sizing: border-box; }

/* Intro */
#mti-wc .mti-wc-intro { margin: 0 0 28px; color: #444; font-size: 16px; }

/* Sections */
#mti-wc form { margin: 0; padding: 0; }
#mti-wc fieldset {
	display: block !important;
	border: 0 !important;
	border-top: 1px solid #d9d9d9 !important;
	margin: 0 0 12px !important;
	padding: 28px 0 8px !important;
	min-width: 0;
	background: none !important;
}
#mti-wc legend {
	float: left;
	width: 100%;
	margin: 0 0 20px !important;
	padding: 0 !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #111 !important;
	border: 0 !important;
	line-height: 1.3;
}
#mti-wc legend + * { clear: both; }

/* Labels & inputs: always stacked, full width */
#mti-wc label {
	display: block !important;
	float: none !important;
	width: auto !important;
	margin: 0 0 18px !important;
	padding: 0 !important;
	font-weight: 600 !important;
	font-size: 15px !important;
	color: #222 !important;
	line-height: 1.4;
}
#mti-wc input[type=text],
#mti-wc input[type=email],
#mti-wc input[type=tel],
#mti-wc input[type=date],
#mti-wc input[type=url],
#mti-wc textarea {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	min-height: 46px;
	margin: 6px 0 0 !important;
	padding: 11px 12px !important;
	border: 1px solid #c4c4c4 !important;
	border-radius: 4px !important;
	background: #fff !important;
	color: #222 !important;
	font: inherit !important;
	font-weight: 400 !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
	box-shadow: none !important;
}
#mti-wc textarea { min-height: 140px; resize: vertical; }
#mti-wc input:focus, #mti-wc textarea:focus {
	outline: 2px solid #111 !important;
	outline-offset: 1px;
	border-color: #111 !important;
}
#mti-wc ::placeholder { color: #999; }

/* Grids */
#mti-wc .mti-wc-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 24px; }
#mti-wc .mti-wc-grid-3 { grid-template-columns: 2fr 1fr 1fr; }
#mti-wc .mti-wc-short { max-width: 360px; }

/* Radio & checkbox groups */
#mti-wc .mti-wc-field { margin: 0 0 22px; }
#mti-wc .mti-wc-label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 10px; }
#mti-wc .mti-wc-label small { display: inline !important; margin-left: 6px; }
#mti-wc .mti-wc-choices {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px 20px;
}
#mti-wc .mti-wc-choices label,
#mti-wc .mti-wc-check {
	display: flex !important;
	align-items: flex-start;
	gap: 10px;
	margin: 0 !important;
	font-weight: 400 !important;
	font-size: 15px !important;
	cursor: pointer;
}
#mti-wc .mti-wc-check { margin: 0 0 20px !important; }
#mti-wc input[type=radio],
#mti-wc input[type=checkbox] {
	width: 18px !important;
	height: 18px !important;
	min-width: 18px;
	margin: 2px 0 0 !important;
	accent-color: #111;
	flex-shrink: 0;
	position: static !important;
	opacity: 1 !important;
	appearance: auto !important;
	-webkit-appearance: auto !important;
}

/* "Other" text boxes appear only when Other is ticked */
#mti-wc input[type=text].mti-wc-other { display: none !important; max-width: 440px !important; margin-top: 12px !important; }
#mti-wc input[type=text].mti-wc-other.show { display: block !important; }

/* File uploads as tidy cards */
#mti-wc .mti-wc-file {
	border: 1px dashed #c4c4c4;
	border-radius: 6px;
	padding: 14px 16px !important;
	margin: 0 0 12px !important;
	background: #fafafa;
}
#mti-wc .mti-wc-file input[type=file] {
	display: block !important;
	width: 100% !important;
	margin: 8px 0 0 !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	color: #444;
	background: none !important;
	border: 0 !important;
	padding: 0 !important;
}
#mti-wc .mti-wc-file input[type=file]::file-selector-button {
	margin-right: 12px;
	padding: 8px 16px;
	border: 1px solid #111;
	border-radius: 4px;
	background: #fff;
	color: #111;
	font-weight: 600;
	cursor: pointer;
}
#mti-wc .mti-wc-file input[type=file]::file-selector-button:hover { background: #111; color: #fff; }

/* Help text */
#mti-wc small,
#mti-wc .mti-wc-help {
	display: block;
	margin: 6px 0 0;
	font-weight: 400 !important;
	font-size: 13px !important;
	color: #6b6b6b !important;
	line-height: 1.4;
}
#mti-wc .mti-wc-help { margin: 0 0 16px; }
#mti-wc .req { color: #b00020; font-weight: 700; margin-left: 2px; }

/* Conditional fields */
#mti-wc .mti-wc-cond { display: none; }
#mti-wc .mti-wc-cond.show { display: inline; }
#mti-wc .mti-wc-dealer,
#mti-wc .mti-wc-file-freight_docs { display: none !important; }
#mti-wc .mti-wc-dealer.show,
#mti-wc .mti-wc-file-freight_docs.show { display: block !important; }

/* Spam trap */
#mti-wc .mti-wc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Errors */
#mti-wc .mti-wc-errors {
	border: 1px solid #b00020;
	border-left-width: 4px;
	background: #fff5f6;
	padding: 16px 20px;
	border-radius: 4px;
	margin: 0 0 28px;
	color: #222;
}
#mti-wc .mti-wc-errors ul { margin: 8px 0 0 20px; padding: 0; }
#mti-wc .mti-wc-errors li { margin: 2px 0; }

#mti-wc .mti-wc-size { font-size: 13px; color: #6b6b6b; margin: 0 0 8px; }
#mti-wc .mti-wc-size.over { color: #b00020; font-weight: 600; }

/* Submit */
#mti-wc .mti-wc-submit {
	display: inline-block !important;
	width: auto !important;
	margin: 16px 0 0 !important;
	padding: 15px 36px !important;
	border: 0 !important;
	border-radius: 4px !important;
	background: #111 !important;
	color: #fff !important;
	font: inherit !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	letter-spacing: .05em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: none !important;
}
#mti-wc .mti-wc-submit:hover { background: #333 !important; }
#mti-wc .mti-wc-submit[disabled] { opacity: .6; cursor: wait; }

/* Thank-you */
#mti-wc.mti-wc-done { text-align: center; padding: 48px 0; }
#mti-wc .mti-wc-ref { font-size: 18px; }

/* Phones */
@media (max-width: 640px) {
	#mti-wc .mti-wc-grid,
	#mti-wc .mti-wc-grid-3 { grid-template-columns: 1fr; }
	#mti-wc .mti-wc-choices { grid-template-columns: 1fr 1fr; }
	#mti-wc .mti-wc-submit { width: 100% !important; }
}
