/**
 * Towpart quote form inside RecoveryQuote hero — mobile-safe layout.
 */

.recoveryquote-hero-form-slot {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.recoveryquote-brand .hero.recoveryquote-premium-hero .hero__grid {
	width: 100%;
	min-width: 0;
}

.recoveryquote-brand .hero.recoveryquote-premium-hero .hero__content,
.recoveryquote-brand .hero.recoveryquote-premium-hero .hero__visual {
	min-width: 0;
}

.recoveryquote-brand .hero.recoveryquote-premium-hero .hero__visual.recoveryquote-hero-visual--towpart {
	max-width: min(100%, 34rem);
}

/* Cancel Towpart full-viewport breakout — hero container already spans the content width */
.recoveryquote-brand .recoveryquote-hero-form-slot .towpart-intake-root,
.recoveryquote-brand .recoveryquote-page-hero__form-wrap .towpart-intake-root,
.recoveryquote-brand .hero.recoveryquote-premium-hero .hero__visual .towpart-intake-root {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	box-sizing: border-box !important;
}

.recoveryquote-brand .recoveryquote-hero-form-slot .towpart-intake,
.recoveryquote-brand .recoveryquote-page-hero__form-wrap .towpart-intake,
.recoveryquote-brand .hero.recoveryquote-premium-hero .hero__visual .towpart-intake {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

@media (max-width: 899px) {
	.recoveryquote-brand .hero.recoveryquote-premium-hero {
		overflow-x: clip;
		overflow-y: visible;
	}

	.recoveryquote-brand .hero.recoveryquote-premium-hero .container {
		width: 100%;
		max-width: 1120px;
		padding-inline: max(1.25rem, env(safe-area-inset-left, 0px)) max(1.25rem, env(safe-area-inset-right, 0px));
		box-sizing: border-box;
	}

	.recoveryquote-brand .hero.recoveryquote-premium-hero .hero__grid {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: clamp(1rem, 4vw, 1.5rem);
	}

	.recoveryquote-brand .hero.recoveryquote-premium-hero .hero__content,
	.recoveryquote-brand .hero.recoveryquote-premium-hero .hero__visual {
		width: 100%;
		max-width: 100%;
	}

	.recoveryquote-brand .hero.recoveryquote-premium-hero .hero__visual.recoveryquote-hero-visual--towpart {
		max-width: 100%;
		justify-self: stretch;
	}

	.recoveryquote-page-hero--with-form .recoveryquote-page-hero__form-wrap {
		max-width: 100%;
		width: 100%;
		min-width: 0;
	}
}
