.prm-form,
.prm-notice {
	box-sizing: border-box;
	max-width: 860px;
	margin-right: auto;
	margin-left: auto;
}

.prm-form *,
.prm-form *::before,
.prm-form *::after {
	box-sizing: border-box;
}

.prm-form {
	--prm-accent: #d71920;
	--prm-accent-hover: #0b0b0d;
	--prm-border: #d8dee4;
	--prm-muted: #5e6872;
	--prm-surface: #f7f8f9;
	padding: clamp(1.25rem, 3vw, 2.5rem);
	border: 1px solid var(--prm-border);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(20, 35, 28, 0.07);
}

.prm-form__intro {
	margin-bottom: 2rem;
}

.prm-form__intro h2 {
	margin-top: 0;
	margin-bottom: 0.5rem;
}

.prm-form__intro p,
.prm-form__privacy,
.prm-field__help {
	color: var(--prm-muted);
}

.prm-form__section {
	min-width: 0;
	margin: 0 0 1.75rem;
	padding: 0;
	border: 0;
}

.prm-form__section legend {
	width: 100%;
	margin-bottom: 1rem;
	padding-bottom: 0.45rem;
	border-bottom: 1px solid var(--prm-border);
	font-size: 1.08rem;
	font-weight: 700;
}

.prm-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.prm-form__grid--vehicle {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: 1rem;
}

.prm-field {
	margin-bottom: 1.15rem;
}

.prm-field--part-number {
	margin-bottom: 1.5rem;
}

.prm-field label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 650;
}

.prm-field input,
.prm-field textarea {
	display: block;
	width: 100%;
	min-height: 46px;
	padding: 0.7rem 0.8rem;
	border: 1px solid var(--prm-border);
	border-radius: 6px;
	background: #fff;
	color: inherit;
	font: inherit;
}

.prm-field textarea {
	min-height: 90px;
	resize: vertical;
}

.prm-field input:focus,
.prm-field textarea:focus {
	border-color: var(--prm-accent);
	outline: 3px solid rgba(215, 25, 32, 0.18);
	outline-offset: 1px;
}

.prm-field__help {
	margin: 0.3rem 0 0;
	font-size: 0.875rem;
}

.prm-form__privacy {
	margin: 0 0 1rem;
	font-size: 0.9rem;
}

.prm-optional-disclosure {
	margin: 0 0 1.75rem;
	padding: 1rem;
	border: 1px solid var(--prm-border);
	border-radius: 8px;
	background: var(--prm-surface);
}

.prm-optional-disclosure__toggle {
	width: 18px;
	height: 18px;
	margin: 0 0.45rem 0 0;
	vertical-align: -3px;
	accent-color: var(--prm-accent);
}

.prm-optional-disclosure > label {
	cursor: pointer;
	font-weight: 650;
}

.prm-optional-fields {
	display: none;
	margin-top: 1rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--prm-border);
}

.prm-optional-disclosure__toggle:checked ~ .prm-optional-fields {
	display: block;
}

.prm-optional-fields .prm-form__section:last-child {
	margin-bottom: 0;
}

.prm-form__submit {
	min-height: 48px;
	padding: 0.75rem 1.35rem;
	border: 0;
	border-radius: 6px;
	background: var(--prm-accent);
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
}

.prm-form__submit:hover,
.prm-form__submit:focus {
	background: var(--prm-accent-hover);
}

.prm-form__submit:focus-visible {
	outline: 3px solid rgba(215, 25, 32, 0.28);
	outline-offset: 3px;
}

.prm-notice {
	margin-bottom: 1.25rem;
	padding: 1rem 1.15rem;
	border: 1px solid;
	border-radius: 6px;
}

.prm-notice--success {
	border-color: #86b99c;
	background: #edf8f1;
	color: #17482e;
}

.prm-notice--error {
	border-color: #dba4a4;
	background: #fff2f2;
	color: #7a1f1f;
}

.prm-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.prm-search-cta {
	position: fixed;
	z-index: 2147483000;
	bottom: 24px;
	left: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: min(420px, calc(100vw - 48px));
	min-height: 46px;
	padding: 0.7rem 1.1rem;
	border: 2px solid #fff;
	border-radius: 999px;
	background: #d71920;
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.24);
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-decoration: none !important;
}

.prm-search-cta:hover,
.prm-search-cta:focus {
	background: #0b0b0d;
	color: #fff !important;
}

.prm-search-cta:focus-visible {
	outline: 3px solid rgba(215, 25, 32, 0.35);
	outline-offset: 3px;
}

.prm-search-cta[hidden] {
	display: none !important;
}

@media (max-width: 760px) {
	.prm-form__grid,
	.prm-form__grid--vehicle {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.prm-search-cta {
		right: 16px;
		bottom: 16px;
		left: 16px;
		max-width: none;
	}
}
