/*
 * Quiz page styling (body.no-hero).
 *
 * Quiz pages have no hero section, so the theme's fixed transparent header
 * (header.site-header, position:fixed, z-index:999) floats over the content
 * with nothing behind it. These rules:
 *   1. Give the header a solid backdrop, mirroring the theme's own
 *      `.scrolled .site-header { background: rgba(0,0,0,0.85); }` rule.
 *   2. Push .site-inner down clear of the fixed header + top-bar.
 *   3. Un-do the edge-to-edge `.full-width-content .entry-content` layout so
 *      the quiz form and closed-message notice are centered with side
 *      breathing room instead of touching the browser edges.
 */

body.no-hero .site-header {
	background: rgba(0, 0, 0, 0.85);
}

/* Match the theme's `.scrolled div#top-bar` treatment (style.css:4242). */
body.no-hero div#top-bar {
	backdrop-filter: blur(34px) brightness(0.5);
	-webkit-backdrop-filter: blur(34px) brightness(0.5);
	background-color: rgba(0, 0, 0, 0.85);
}

/*
 * The theme decorates every content list item with a check icon
 * (`#genesis-content li` — style.css:270). Gravity Forms renders fields and
 * choices as <li>, so strip the icon, indent, and bullet inside the form.
 */
body.no-hero #genesis-content .gform_wrapper li {
	background: none;
	padding-left: 0;
	list-style-type: none;
}

/* GF legacy wrapper indents fields ~53px; zero it so fields align with the H1. */
body.no-hero #genesis-content .gform_wrapper,
body.no-hero .gform_wrapper.gform_legacy_markup_wrapper {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* "Retake the Quiz" / "See Next Webinar" buttons — match the form buttons. */
body.no-hero a.lqc-next-webinar,
body.no-hero a.lqc-retake-button {
	display: inline-block;
	margin-top: 1rem;
	padding: 15px 30px;
	background: rgb(0, 20, 137);
	color: #fff;
	border-radius: 5px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}

/* Bold text on all form buttons (Next / Previous / Submit). */
body.no-hero .gform_wrapper input.gform_button,
body.no-hero .gform_wrapper input.gform_next_button,
body.no-hero .gform_wrapper input.gform_previous_button,
body.no-hero .gform_wrapper input[type="submit"] {
	font-weight: 700;
}

body.no-hero a.lqc-next-webinar:hover,
body.no-hero a.lqc-retake-button:hover {
	background: rgb(0, 28, 52);
	color: #fff;
}

/* Hide the demo/CTA footer widget blocks on quiz pages. */
body.no-hero #block-14,
body.no-hero #block-15 {
	display: none;
}

/* Separator between questions: equal breathing room above and below the rule. */
body.no-hero #genesis-content .gform_wrapper ul.gform_fields > li.gfield {
	margin-bottom: 0;
	padding-bottom: 1.5rem;
}

body.no-hero #genesis-content .gform_wrapper ul.gform_fields > li.gfield + li.gfield {
	border-top: 1px solid #d9d9d9;
	padding-top: 1.5rem;
}

/* Quiz choices: vertically center the checkbox/radio against its label text. */
body.no-hero #genesis-content .gform_wrapper ul.gfield_checkbox li,
body.no-hero #genesis-content .gform_wrapper ul.gfield_radio li {
	display: flex;
	align-items: center;
	margin-bottom: 0.75rem;
}

body.no-hero #genesis-content .gform_wrapper ul.gfield_checkbox li input,
body.no-hero #genesis-content .gform_wrapper ul.gfield_radio li input {
	margin: 0;
	flex-shrink: 0;
}

body.no-hero #genesis-content .gform_wrapper ul.gfield_checkbox li label,
body.no-hero #genesis-content .gform_wrapper ul.gfield_radio li label {
	margin: 0 0 0 0.6rem;
	line-height: 1.4;
}

/* Field validation notice: text vertically centered with 1rem left padding. */
body.no-hero .gform_wrapper .gfield_validation_message,
body.no-hero .gform_wrapper .validation_message {
	display: flex;
	align-items: center;
	padding: 0.5rem 1rem;
}

/*
 * Top clearance lives on the page-title row, NOT .site-inner — the theme sets
 * `.site-inner { position: fixed; }` (style.css:765), so padding there shifts
 * the fixed box instead of pushing content below the header. The H1
 * (.row.page-title) normally overlays a hero; here it leads the page below
 * the fixed header, aligned with the form container.
 * Desktop: top-bar (~40px) + header (~144px) + breathing room.
 */
body.no-hero .row.page-title .row-inner {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-top: 260px;
	padding-left: 5vw;
	padding-right: 5vw;
}

body.no-hero .entry-content {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 5vw;
	padding-right: 5vw;
	padding-bottom: 4rem;
}

/* Header top-bar layout starts changing under 960px (site-header top offset shifts). */
@media only screen and (max-width: 960px) {
	body.no-hero .row.page-title .row-inner {
		padding-top: 190px;
	}
}

/* Mobile header collapses to a single compact row under 768px. */
@media only screen and (max-width: 768px) {
	body.no-hero .row.page-title .row-inner {
		padding-top: 150px;
	}
}

/* Red certificate-accuracy notes under the contact fields. */
body.no-hero .gform_wrapper .lqc-cert-note .gfield_description {
	color: rgb(224, 30, 30);
}

/* Bold text links in the pass/fail confirmation messages. */
body.no-hero .gform_confirmation_wrapper a {
	font-weight: 700;
}

/* Survey likert column headers: smaller, centered (both axes), tighter leading. */
body.no-hero .gform_wrapper th.gsurvey-likert-choice-label {
	font-size: 14px;
	text-align: center;
	vertical-align: middle;
	line-height: 1.5;
}

/* Likert radio cells: center the radios under their column headings. */
body.no-hero .gform_wrapper td.gsurvey-likert-choice {
	text-align: center;
	vertical-align: middle;
}

body.no-hero .gform_wrapper td.gsurvey-likert-choice input {
	margin: 0 auto;
}
