/* Static page header with form (CBC-249, item 3) – replaces single-slide Revolution Slider headers. */

.cbc-hero {
	position: relative;
	background: #1c1c1c;
	color: #fff;
	/* Full-bleed: break out of the WPBakery column, like the old fullwidth slider. */
	width: 100vw;
	max-width: 100vw;
	left: 50%;
	margin-left: -50vw;
}

/* 100vw includes the scrollbar width on Windows – clip the few extra pixels. */
body {
	overflow-x: clip;
}

/* The column that holds the hero must not add space around it. */
.free-zone-form:has(> .vc_column-inner .cbc-hero) > .vc_column-inner {
	padding-top: 0 !important;
}
.free-zone-form .wpb_wrapper > .cbc-hero:first-child {
	margin-top: 0;
}

.cbc-hero img.cbc-hero__bg {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0;
	object-fit: cover;
	object-position: center;
	z-index: 0;
}

/* Darken the photo so white text stays readable. */
.cbc-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .25) 60%, rgba(0, 0, 0, .1) 100%);
	z-index: 1;
}

.cbc-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	max-width: 1240px;
	min-height: 0;
	margin: 0 auto;
	padding: 40px 20px;
	box-sizing: border-box;
}

.cbc-hero__text {
	flex: 1 1 55%;
	max-width: 560px;
}

.cbc-hero .cbc-hero__title {
	margin: 0 0 18px;
	color: #f3d58e;
	font-family: avenirlight, sans-serif;
	font-size: 42px;
	line-height: 1.15;
	font-weight: 400;
	letter-spacing: .5px;
	text-transform: uppercase;
}

.cbc-hero .cbc-hero__subtitle {
	margin: 0 0 26px;
	color: #fff;
	font-family: avenirlight, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	text-transform: uppercase;
}

.cbc-hero .cbc-hero__btn {
	display: inline-block;
	padding: 14px 34px;
	background: #029c7e;
	color: #fff;
	font-family: avenirheavy, sans-serif;
	font-size: 14px;
	letter-spacing: 1px;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color .2s ease;
}

.cbc-hero .cbc-hero__btn:hover,
.cbc-hero .cbc-hero__btn:focus {
	background: #027a63;
	color: #fff;
}

.cbc-hero .cbc-hero__price {
	margin: 18px 0 0;
	color: #fff;
	font-family: avenirlight, sans-serif;
	font-size: 16px;
}

.cbc-hero__form {
	flex: 0 0 440px;
	max-width: 440px;
	background: #fff;
	color: #000;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
	scroll-margin-top: 100px;
}

/* The CF7 card already has its own padding and white background (.free-zone-form .wpcf7). */
.cbc-hero__form .wpcf7 {
	margin: 0;
}

/* Zoho forms have no card padding of their own. */
.cbc-hero__form > .zoho-form-wrapper,
.cbc-hero__form > form,
.cbc-hero__form > div:not(.wpcf7) {
	padding: 30px;
}

/* Zoho form: same look as the Contact Form 7 card on the other free zone pages
   (.free-zone-form .wpcf7 rules in style.css). */
.cbc-hero__form #zohoForm h2.zf-frmTitle {
	margin: 0 0 20px;
	color: #000 !important;
	font-size: 24px !important;
	line-height: 1.3;
	letter-spacing: 0;
}

.cbc-hero__form #zohoForm .zf-frmDesc:empty {
	display: none;
}

.cbc-hero__form #zohoForm input[type="text"],
.cbc-hero__form #zohoForm input[type="email"],
.cbc-hero__form #zohoForm input[type="tel"],
.cbc-hero__form #zohoForm input[type="number"],
.cbc-hero__form #zohoForm select,
.cbc-hero__form #zohoForm textarea {
	color: #0f0d12 !important;
	background-color: #f1f2f4 !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 10px 12px !important;
	font-size: 13px !important;
}

.cbc-hero__form #zohoForm input::placeholder,
.cbc-hero__form #zohoForm textarea::placeholder {
	color: #444 !important;
}

.cbc-hero__form #zohoForm .zf-labelName {
	color: #000;
	font-size: 13px;
}

.cbc-hero__form #zohoForm .zf-submitColor,
.cbc-hero__form #zohoForm button[type="submit"] {
	width: 100%;
	margin: 0;
	padding: 12px 20px;
	border: none;
	border-radius: 0;
	background: #029c7e !important;
	color: #fff !important;
	font-size: 14px;
	text-transform: uppercase;
	cursor: pointer;
}

.cbc-hero__form #zohoForm .zf-fmFooter {
	width: 100%;
	padding: 0;
}

/* Desktop: same geometry as the old slider. The site header overlays the top 75 px of the
   section, so the section is 800 px (725 px visible below the header, as on the live site),
   and the form card starts right under the header and may run over the next section. */
@media (min-width: 1101px) {
	.cbc-hero__inner {
		height: 800px;
		padding: 75px 20px 0;
	}

	.cbc-hero__form {
		align-self: flex-start;
		position: relative;
		z-index: 3;
	}
}

@media (max-width: 1100px) {
	.cbc-hero__inner {
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
		padding-top: 50px;
	}

	.cbc-hero__text {
		max-width: none;
	}

	.cbc-hero__form {
		flex-basis: auto;
		width: 100%;
		max-width: 600px;
		margin: 0 auto;
	}
}

@media (max-width: 767px) {
	.cbc-hero__inner {
		padding: 40px 16px 32px;
		gap: 28px;
	}

	.cbc-hero .cbc-hero__title {
		font-size: 30px;
	}

	.cbc-hero .cbc-hero__subtitle {
		font-size: 14px;
	}

	.cbc-hero__form > .zoho-form-wrapper,
	.cbc-hero__form > form,
	.cbc-hero__form > div:not(.wpcf7) {
		padding: 20px;
	}
}
