/* =========================================================================
   Central Huron Forms — front-end page shell (layout "2b")
   Renders the hero / breadcrumb / form panel / footer around the form.
   ========================================================================= */

/* ---------- design tokens (scoped) ---------- */
.chf2b {
	--ch-ink:        #171717;
	--ch-ink-raised: #242424;
	--ch-green:      #27A55A;
	--ch-green-hi:   #3FBF74;
	--ch-green-dk:   #1E8547;
	--ch-paper:      #F7F6F3;
	--ch-white:      #FFFFFF;
	--ch-display: 'Poppins', system-ui, -apple-system, Segoe UI, sans-serif;
	--ch-body:    'Barlow', system-ui, -apple-system, Segoe UI, sans-serif;
	--ch-max:       1160px;
	--ch-gutter:    40px;
	--ch-form-max:  820px;
	--ch-form-slot: 708px;

	font-family: var(--ch-body);
	color: var(--ch-ink);
	line-height: 1.6;
}
.chf2b *, .chf2b *::before, .chf2b *::after { box-sizing: border-box; }

/* -------------------------------------------------------------------------
   Suppress the theme chrome on form pages so our shell stands alone.
   (Astra header/footer/breadcrumb + Elementor theme-builder header/footer/
   page-title hero.) Scoped to the body class added on form pages only.
   ------------------------------------------------------------------------- */
body.chf-page #masthead,
body.chf-page .site-header,
body.chf-page header.site-header,
body.chf-page .ast-hfb-header,
body.chf-page .site-footer,
body.chf-page #colophon,
body.chf-page footer.site-footer,
body.chf-page .ast-breadcrumbs,
body.chf-page .elementor-location-header,
body.chf-page .elementor-location-footer,
body.chf-page .elementor-widget-theme-post-title,
body.chf-page .elementor-widget-post-navigation,
body.chf-page .e-con.e-parent:has(.elementor-widget-theme-post-title) { display: none !important; }

/* Let the shell run full-bleed: drop the theme's content padding / max-width. */
body.chf-page #page,
body.chf-page #content,
body.chf-page #primary,
body.chf-page .site-content,
body.chf-page .ast-container,
body.chf-page .entry-content,
body.chf-page .ast-article-single,
body.chf-page article.page,
body.chf-page .elementor,
body.chf-page .elementor-section-wrap { margin: 0 !important; padding: 0 !important; max-width: none !important; }
body.chf-page { overflow-x: hidden; }

/* Each band spans the full width of whatever container it lands in. */
.chf2b .ch-hero,
.chf2b .ch-breadcrumb,
.chf2b .ch-form-area,
.chf2b .ch-footer { width: 100%; }

/* ---------- hero ---------- */
.chf2b .ch-hero { position: relative; background: var(--ch-ink); overflow: hidden; }
.chf2b .ch-hero__media,
.chf2b .ch-hero__scrim { position: absolute; inset: 0; }
.chf2b .ch-hero__media {
	background-image: var(--hero-img);
	background-size: cover; background-position: center;
}
.chf2b .ch-hero__scrim {
	background: linear-gradient(180deg, rgba(23,23,23,.5), rgba(23,23,23,.25) 45%, rgba(23,23,23,.78));
}
.chf2b .ch-hero__bar { position: relative; padding-inline: var(--ch-gutter); }

.chf2b .ch-nav {
	max-width: var(--ch-max); margin-inline: auto; min-height: 82px;
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.chf2b .ch-nav__menu {
	justify-self: start; display: inline-flex; align-items: center; gap: 8px;
	background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none;
	font: 600 15px var(--ch-display); color: #fff;
}
.chf2b .ch-nav__menu:hover { color: var(--ch-green-hi); }
.chf2b .ch-nav__logo { justify-self: center; }
.chf2b .ch-nav__logo img { height: 38px; width: auto; display: block; }

.chf2b .ch-btn {
	justify-self: end; display: inline-block; padding: 12px 22px; border-radius: 2px;
	font: italic 600 13.5px var(--ch-display); text-decoration: none; white-space: nowrap;
	transition: background-color .18s ease, color .18s ease;
}
.chf2b .ch-btn--green { background: var(--ch-green); color: #fff; }
.chf2b .ch-btn--green:hover,
.chf2b .ch-btn--green:focus-visible { background: var(--ch-green-hi); color: #fff; }

.chf2b .ch-nav-rules {
	max-width: var(--ch-max); margin-inline: auto;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: center;
}
.chf2b .ch-nav-rules span { display: block; width: 100%; height: 2px; background: #fff; }
.chf2b .ch-nav-rules span:nth-child(2) { background: var(--ch-green); }

/* Centre the copy on the same 1160 column as the nav, then LEFT-align its
   children (their own margin shorthands cancel margin-inline:auto, so we align
   the container instead). This keeps the eyebrow/title/standfirst flush with
   the nav and breadcrumb at every viewport width. */
.chf2b .ch-hero__copy {
	position: relative;
	max-width: calc(var(--ch-max) + var(--ch-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--ch-gutter);
	padding-block: 76px 64px;
}
.chf2b .ch-hero__copy > * { max-width: var(--ch-max); margin-inline: 0; }
/* Defensive: no theme border can bleed a vertical rule into the hero copy. */
.chf2b .ch-hero :is(h1, h2, p, a, span, nav, div):not(.ch-btn) { border: 0; }

.chf2b .ch-eyebrow {
	margin: 0 0 20px; display: flex; align-items: center; gap: 12px;
	font: 600 11px var(--ch-display); letter-spacing: .24em; text-transform: uppercase;
	color: var(--ch-green-hi);
}
.chf2b .ch-eyebrow__rule { width: 34px; height: 2px; background: var(--ch-green); flex: none; }

.chf2b .ch-hero__title {
	margin: 0; max-width: 900px;
	font-family: var(--ch-display); font-weight: 700;
	font-size: var(--hero-size, 74px);
	line-height: .98; letter-spacing: -.02em; text-transform: uppercase; color: #fff;
	text-wrap: balance;
}
.chf2b .ch-hero__standfirst {
	margin: 24px 0 0; max-width: 620px;
	font: 400 17.5px/1.65 var(--ch-body); color: rgba(255,255,255,.8);
	text-wrap: pretty;
}

/* ---------- breadcrumb ---------- */
.chf2b .ch-breadcrumb { background: #fff; border-bottom: 1px solid rgba(23,23,23,.1); }
.chf2b .ch-breadcrumb ol {
	max-width: var(--ch-max); margin-inline: auto; padding: 15px var(--ch-gutter);
	list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
	font: 400 13px var(--ch-body); color: rgba(23,23,23,.5);
}
.chf2b .ch-breadcrumb li { display: flex; align-items: center; gap: 9px; }
.chf2b .ch-breadcrumb li + li::before { content: '/'; opacity: .4; }
.chf2b .ch-breadcrumb a { color: var(--ch-green-dk); text-decoration: none; }
.chf2b .ch-breadcrumb a:hover { text-decoration: underline; }
.chf2b .ch-breadcrumb [aria-current='page'] { color: var(--ch-ink); }

/* ---------- form area ---------- */
.chf2b .ch-form-area { background: var(--ch-paper); padding: 64px var(--ch-gutter) 72px; }
.chf2b .ch-form-panel {
	max-width: var(--ch-form-max); margin-inline: auto;
	background: var(--ch-white);
	border: 1px solid rgba(23,23,23,.1);
	border-top: 3px solid var(--ch-green);
	box-shadow: 0 10px 34px rgba(23,23,23,.07);
	padding: 52px 56px 56px;
}
.chf2b .ch-form-panel__title {
	margin: 0; font: 700 30px/1.14 var(--ch-display);
	letter-spacing: -.01em; text-transform: uppercase; color: var(--ch-ink);
	text-wrap: balance;
}
.chf2b .ch-form-panel__intro {
	margin: 14px 0 30px; font: 400 16px/1.65 var(--ch-body); color: rgba(23,23,23,.62);
}
.chf2b .ch-form-slot { max-width: var(--ch-form-slot); }

/* ---------- footer ---------- */
.chf2b .ch-footer { background: var(--ch-ink); padding: 44px var(--ch-gutter); }
.chf2b .ch-footer__inner {
	max-width: var(--ch-max); margin-inline: auto;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.chf2b .ch-footer__logo { height: 40px; width: auto; display: block; }
.chf2b .ch-footer__nav { display: flex; flex-wrap: wrap; gap: 26px; font: 400 14.5px var(--ch-body); }
.chf2b .ch-footer__nav a { color: rgba(255,255,255,.7); text-decoration: none; }
.chf2b .ch-footer__nav a:hover { color: var(--ch-green-hi); }
.chf2b .ch-footer__copy { margin: 0; font: 400 13px var(--ch-body); color: rgba(255,255,255,.42); }

/* =========================================================================
   Skin the injected builder form to the shell's brand (scoped to .ch-form-slot)
   ========================================================================= */
.chf2b .ch-form-slot .chf-form-wrap { max-width: none; margin: 0; padding: 0; color: var(--ch-ink); }
.chf2b .ch-form-slot .chf-form { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; }

.chf2b .ch-form-slot .chf-fields { gap: 24px; }
.chf2b .ch-form-slot .chf-field.chf-w-half { flex-basis: calc(50% - 12px); }
.chf2b .ch-form-slot .chf-field.chf-w-third { flex-basis: calc(33.333% - 16px); }

.chf2b .ch-form-slot .chf-label {
	display: block; margin-bottom: 8px; text-transform: none;
	font: 600 14px var(--ch-display); color: var(--ch-ink);
}
.chf2b .ch-form-slot .chf-req { color: var(--ch-green-dk); }
.chf2b .ch-form-slot .chf-help { font: 400 13px var(--ch-body); color: rgba(23,23,23,.55); margin-top: 6px; }

.chf2b .ch-form-slot .chf-input {
	width: 100%; box-sizing: border-box; padding: 14px 16px; min-height: 52px;
	background: var(--ch-paper);
	border: 1px solid rgba(23,23,23,.2); border-radius: 0;
	font: 400 16px/1.4 var(--ch-body); color: var(--ch-ink);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.chf2b .ch-form-slot textarea.chf-input { min-height: 150px; resize: vertical; }
.chf2b .ch-form-slot .chf-input:focus {
	outline: none; border-color: var(--ch-green); box-shadow: 0 0 0 3px rgba(39,165,90,.22);
}
.chf2b .ch-form-slot select.chf-input {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23171717' d='M6 8 0 2l1.4-1.4L6 5.2 10.6.6 12 2z'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px;
}
.chf2b .ch-form-slot .chf-field.has-error .chf-input,
.chf2b .ch-form-slot .chf-field.has-error .chf-choices { border-color: #C0392B; box-shadow: 0 0 0 3px rgba(192,57,43,.15); }
.chf2b .ch-form-slot .chf-field-error { color: #C0392B; font: 600 12.5px var(--ch-body); }

/* choices */
.chf2b .ch-form-slot .chf-choices { gap: 11px; }
.chf2b .ch-form-slot .chf-choice { font: 400 15.5px var(--ch-body); color: var(--ch-ink); }
.chf2b .ch-form-slot .chf-choice input { accent-color: var(--ch-green); }
.chf2b .ch-form-slot .chf-consent { background: var(--ch-paper); border: 1px solid rgba(23,23,23,.15); border-radius: 0; }

/* number / calculation / file */
.chf2b .ch-form-slot .chf-affix { background: #efeee9; border: 1px solid rgba(23,23,23,.2); color: var(--ch-ink); border-radius: 0; }
.chf2b .ch-form-slot .chf-calc { background: #f0efea; font-weight: 700; color: var(--ch-green-dk); }
.chf2b .ch-form-slot .chf-file { background: var(--ch-paper); }
.chf2b .ch-form-slot .chf-file::file-selector-button { background: var(--ch-green); border-radius: 2px; color: #fff; }

/* layout blocks */
.chf2b .ch-form-slot .chf-heading { font-family: var(--ch-display); text-transform: uppercase; letter-spacing: -.01em; color: var(--ch-ink); }
.chf2b .ch-form-slot .chf-paragraph { font: 400 16px/1.65 var(--ch-body); color: rgba(23,23,23,.62); }
.chf2b .ch-form-slot .chf-divider { border-color: rgba(23,23,23,.12); }

/* alerts + submit + success */
.chf2b .ch-form-slot .chf-alert-error { border-radius: 0; }
.chf2b .ch-form-slot .chf-actions { margin-top: 10px; }
.chf2b .ch-form-slot .chf-submit {
	align-self: flex-start; min-height: 50px; padding: 14px 28px;
	background: var(--ch-green); color: #fff; border: 0; border-radius: 2px;
	font: italic 600 14px var(--ch-display); cursor: pointer; letter-spacing: 0;
}
.chf2b .ch-form-slot .chf-submit:hover { background: var(--ch-green-hi); filter: none; }
.chf2b .ch-form-slot .chf-success {
	background: #fff; border: 1px solid rgba(23,23,23,.1); border-radius: 0;
	box-shadow: inset 0 3px 0 var(--ch-green);
}
.chf2b .ch-form-slot .chf-success-icon { background: var(--ch-green); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
	.chf2b { --ch-gutter: 24px; }
	.chf2b .ch-nav { grid-template-columns: auto 1fr; min-height: 72px; }
	.chf2b .ch-nav__logo { grid-column: 1; justify-self: start; }
	.chf2b .ch-nav__menu { grid-column: 2; justify-self: end; }
	.chf2b .ch-btn { display: none; }
	.chf2b .ch-hero__copy { padding-block: 48px 44px; }
	.chf2b .ch-hero__title { font-size: clamp(32px, 8.5vw, 44px); }
	.chf2b .ch-hero__standfirst { font-size: 16.5px; }
	.chf2b .ch-form-area { padding-block: 40px 48px; }
	.chf2b .ch-form-panel { padding: 32px 24px 36px; }
	.chf2b .ch-form-panel__title { font-size: 24px; }
	.chf2b .ch-form-slot .chf-field.chf-w-half,
	.chf2b .ch-form-slot .chf-field.chf-w-third { flex-basis: 100%; }
	.chf2b .ch-footer__inner { flex-direction: column; align-items: flex-start; gap: 22px; }
}
