/* ===== Section Layout ===== */
.two-column {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	max-height: 600px;
	background: #124463; /* teal background */
	color: #fff;
	overflow: hidden;
	margin-bottom: 40px;

}

/* Left side (slanted image) */
.two-column .image-side {
	flex: 1;
	position: relative;
	min-height: 600px;
}
.two-column .image-side img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Slant on the RIGHT edge */
	clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
}

/* Right side (hero content) */
.two-column .content {
	flex: 1;
	padding: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Wrapper to position text over PNG */
.hero-right-inner {
	position: relative;
	width: 100%;
	max-width: 800px;
}

/* PNG that looks like a background inside the column */
.hero-inner-bg {
	width: 100%;
	height: auto;
	display: block;
	user-select: none;
	pointer-events: none;
}

/* Text overlay */
.hero-right-text {
	position: absolute;
	inset: 0; /* top/right/bottom/left:0 */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0 20px;
	z-index: 2;
}

/* Headings & text */
.header-title {
	font-size: 42px;
	font-weight: 700;
	color: #005a9c;
	line-height: 1.15;
	margin: 0 0 10px;
}
.header-subtitle {
	font-size: 18px;
	margin: 0 0 8px;
	color: #000;
}
.rating-img {
	max-width: 310px;
	height: 102px;
	width: 100%;
	object-fit: contain;
}

/* Inputs / Dropdown / Button shared widths */
.hero-right-text .zip-input,
.hero-right-text .select-services,
.cta-btn-solid,
.hero-right .dropdown-menu {
	width: 100%;
	min-width: 300px;
	max-width: 300px;
	margin: 0 auto;
	box-sizing: border-box;
}

/* ZIP input */
.zip-input {
	padding: 10px 15px;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	color: #222;
}

/* Dropdown tweaks */
.hero-dropdown {
	margin-top: 20px;
}
.select-services {
	position: relative;
	text-align: left;
}

/* Make dropdown menu match control width */
.hero-right .dropdown-menu {
	min-width: unset;
	margin-top: 4px;
}

/* CTA button */
.cta-btn-solid {
	background-color: #005a9c;
	color: #fff;
	font-weight: 600;
	padding: 12px 16px;
	border-radius: 8px;
	border: 0;
}
.cta-btn-solid:hover {
	filter: brightness(0.95);
	background: white;
	border: 2px dotted #124463;
	color: #124463;
}

/* Tagline */
.tagline {
	font-weight: 600;
	color: #222;
}
.tagline .brand {
	color: #005a9c;
}

/* ===== Mobile overlay layout (ONLY mobile) ===== */
@media (max-width: 768px) {
	/* Make the whole section a stacked overlay stage */
	.two-column {
		position: relative;
		flex-direction: column; /* stack */
		max-height: none; /* let it grow */
		min-height: 520px; /* base height; adjust as needed */
	}

	/* Use the left image as full-section background */
	.two-column .image-side {
		position: absolute;
		inset: 0;
		min-height: 0;
		z-index: 0;
	}
	.two-column .image-side img {
		clip-path: none; /* remove slant on mobile */
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	/* Optional: add a soft dark overlay for readability */
	.two-column::before {
		content: "";
		position: absolute;
		inset: 0;
		background: rgba(0, 0, 0, 0.25); /* tweak 0.15–0.35 as you like */
		z-index: 1;
	}

	/* Bring the right-column content to the front and center it */
	.two-column .content.hero-right {
		position: relative;
		z-index: 2; /* above bg + overlay */
		width: 100%;
		min-height: 520px; /* same as section */
		padding: 24px;
		display: flex;
		align-items: center;
		justify-content: center;
		background: transparent; /* no white card on mobile */
		text-align: center;
	}

	/* Keep hero_inner.png visible on mobile (as foreground image) */
	.hero-inner-bg {
		display: block; /* override any previous display:none */
		width: 100%;
		/* height: auto; */
		height: 430px;
	}

	/* Put all text/controls centered over hero_inner.png */
	.hero-right-inner {
		position: relative;
		width: 100%;
		max-width: 520px; /* control content width */
		height: 430px;
	}
	.hero-right-text {
		position: absolute;
		inset: 0; /* fill the hero_inner.png area */
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center; /* perfect center */
		padding: 0 16px;
		text-align: center;
	}

	/* Mobile type & controls sizing */
	.header-title {
		font-size: 30px;
		line-height: 1.2;
		margin-bottom: 8px;
	}
	.header-subtitle {
		font-size: 16px;
		margin-bottom: 6px;
	}
	.rating-img {
		max-width: 150px;
		height: auto;
	}
	.tagline {
		font-size: 13px;
	}
	.hero-right-text .zip-input,
	.hero-right-text .select-services,
	.cta-btn-solid,
	.hero-right .dropdown-menu {
		min-width: 0px;
		max-width: 200px;
	}
}

.select-services.is-invalid {
	border-color: #dc3545 !important; /* red */
	box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.15);
}
.error-text {
	display: block;
	margin-top: 6px;
	color: #dc3545;
	font-size: 12px;
}

/* optional: shake effect */
@keyframes shakeX {
	10%,
	90% {
		transform: translateX(-1px);
	}
	20%,
	80% {
		transform: translateX(2px);
	}
	30%,
	50%,
	70% {
		transform: translateX(-4px);
	}
	40%,
	60% {
		transform: translateX(4px);
	}
}
.select-services.shake {
	animation: shakeX 0.35s;
}
