/* ==========================================================================
   WOW! Kids' Film Festival
   /kids-film-festival/ and its child pages (body.wow-filmfest-page).
   Loaded by inc/wow-filmfest.php. Section background colours are set in
   Divi; everything inside the Text modules is styled here.
   ========================================================================== */

.wow-filmfest-page {
	--wff-purple: #3B1F59;
	--wff-purple-deep: #2A1541;
	--wff-red: #FF0158;
	--wff-yellow: #EE9B00;
	--wff-marquee: #FFC94A;
	--wff-green: #16793A;
	--wff-ink: #2E2438;
	--wff-faint: #6E6479;
	--wff-line: #E6E1EE;
	--wff-wash: #F6F3FA;
	--wff-radius: 16px;
	--wff-font: 'Nunito', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	--wff-font-body: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ---- hide the site-wide page header ---- */
/* The Theme Builder header has a second row with a Fullwidth Header that shows
   the page title over the featured image. These pages carry their own hero, so
   drop that row here only. The template itself is untouched. */

.wow-filmfest-page .et-l--header .et_pb_row:has(.et_pb_fullwidth_header) {
	display: none !important;
}

/* ---- hero (dark section) ---- */

.wff-hero,
.wff-hero p,
.wff-hero h1,
.wff-hero li {
	color: #fff;
}

.wff-hero {
	max-width: 760px;
}

.wff-eyebrow {
	font-family: var(--wff-font);
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wff-marquee) !important;
	margin: 0 0 10px;
	padding: 0;
}

.wff-title {
	font-family: var(--wff-font);
	font-weight: 900;
	font-size: clamp(36px, 6vw, 60px);
	line-height: 1.05;
	margin: 0 0 18px;
	padding: 0;
}

.wff-lede {
	font-size: 18px;
	line-height: 1.6;
	margin: 0 0 26px;
	padding: 0;
}

.wff-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	margin: 0;
	padding: 0;
}

.wff-btn,
.wff-btn:visited {
	display: inline-block;
	background: var(--wff-red);
	color: #fff !important;
	font-family: var(--wff-font);
	font-weight: 800;
	font-size: 18px;
	line-height: 1;
	padding: 16px 28px;
	border-radius: 999px;
	text-decoration: none;
	transition: transform 0.15s ease, background-color 0.15s ease;
}

.wff-btn:hover,
.wff-btn:focus-visible {
	background: #E0004D;
	transform: translateY(-2px);
}

.wff-btn:focus-visible {
	outline: 3px solid var(--wff-marquee);
	outline-offset: 3px;
}

.wff-free {
	font-weight: 600;
	color: var(--wff-marquee) !important;
}

/* ---- key facts (dark section, second row) ---- */

.wff-facts,
.wff-facts li,
.wff-steps,
.wff-steps li {
	list-style: none !important; /* Divi's text module forces bullets and numbers back on */
}

.wff-facts li::marker,
.wff-steps li::marker {
	content: "";
}

.wff-facts {
	margin: 0;
	padding: 0 !important;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.wff-facts li {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--wff-radius);
	padding: 18px 20px;
	color: #fff;
	line-height: 1.5;
}

.wff-facts__label {
	display: block;
	font-family: var(--wff-font);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wff-marquee);
	margin-bottom: 6px;
}

/* ---- how to enter + tips ---- */

.wow-filmfest-page .wff-h2 {
	font-family: var(--wff-font);
	font-weight: 900;
	font-size: 30px;
	line-height: 1.2;
	color: var(--wff-purple);
	margin: 0 0 18px;
	padding: 0;
}

.wff-steps {
	list-style: none;
	counter-reset: wff-step;
	margin: 0;
	padding: 0 !important;
}

.wff-steps li {
	counter-increment: wff-step;
	position: relative;
	padding: 0 0 18px 54px;
	line-height: 1.6;
	color: var(--wff-ink);
}

.wff-steps li::before {
	content: counter(wff-step);
	position: absolute;
	left: 0;
	top: -2px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--wff-red);
	color: #fff;
	font-family: var(--wff-font);
	font-weight: 900;
	font-size: 18px;
	line-height: 38px;
	text-align: center;
}

.wff-steps strong {
	color: var(--wff-purple);
}

.wff-tips {
	background: var(--wff-wash);
	border-radius: var(--wff-radius);
	padding: 24px 26px;
}

.wff-tips ul {
	margin: 0;
	padding: 0 0 0 20px !important;
}

.wff-tips li {
	padding: 0 0 8px;
	line-height: 1.55;
	color: var(--wff-ink);
}

.wff-tips li::marker {
	color: var(--wff-yellow);
}

/* ---- FAQ ---- */

.wff-faq {
	max-width: 860px;
}

.wff-faq details {
	background: #fff;
	border: 1px solid var(--wff-line);
	border-radius: 12px;
	margin: 0 0 10px;
}

.wff-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 18px 52px 18px 20px;
	position: relative;
	font-family: var(--wff-font);
	font-weight: 800;
	font-size: 17px;
	color: var(--wff-purple);
}

.wff-faq summary::-webkit-details-marker {
	display: none;
}

.wff-faq summary::after {
	content: "+";
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 24px;
	font-weight: 700;
	color: var(--wff-red);
}

.wff-faq details[open] summary::after {
	content: "\2212";
}

.wff-faq summary:focus-visible {
	outline: 3px solid var(--wff-yellow);
	outline-offset: 2px;
	border-radius: 12px;
}

.wff-faq details p {
	margin: 0;
	padding: 0 20px 18px;
	line-height: 1.6;
	color: var(--wff-ink);
}

/* ---- the form section ---- */

.wff-enter {
	max-width: 860px;
	scroll-margin-top: 140px; /* clear the fixed header when jumped to from #enter */
}

.wff-enter .wff-note {
	display: inline-block;
	background: #FFF4DD;
	border-left: 4px solid var(--wff-yellow);
	border-radius: 6px;
	padding: 10px 14px;
	font-weight: 600;
	color: var(--wff-ink);
	margin: 0 0 14px;
}

.wff-admin-note {
	background: #FFF4DD;
	border: 2px dashed var(--wff-yellow);
	padding: 14px 16px;
	border-radius: 8px;
}

/* Gravity Forms: the form wrapper gets "wow-filmfest_wrapper" from the CSS class. */

.wow-filmfest_wrapper {
	max-width: 860px;
}

.wow-filmfest_wrapper .gsection {
	border-bottom: 2px solid var(--wff-line) !important;
	margin-top: 26px !important;
	padding-bottom: 8px !important;
}

.wow-filmfest_wrapper .gsection_title {
	font-family: var(--wff-font) !important;
	font-weight: 900 !important;
	font-size: 22px !important;
	color: var(--wff-purple) !important;
}

.wow-filmfest_wrapper .gfield_label {
	font-weight: 700 !important;
	color: var(--wff-ink);
}

.wow-filmfest_wrapper .gfield_description {
	color: var(--wff-faint);
}

.wow-filmfest_wrapper .gform_drop_area {
	border: 2px dashed var(--wff-line);
	border-radius: var(--wff-radius);
	background: var(--wff-wash);
}

.wow-filmfest_wrapper .gfield--type-consent {
	background: var(--wff-wash);
	border-radius: 10px;
	padding: 12px 14px !important;
}

.wow-filmfest_wrapper .gfield--type-consent + .gfield--type-consent {
	margin-top: 8px !important;
}

/* Keep the email-list checkbox from sliding under the Submit button. */
.wow-filmfest_wrapper .gfield--type-checkbox .gchoice {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.wow-filmfest_wrapper .gfield--type-checkbox .gchoice label {
	position: static !important;
	margin: 0 !important;
}

.wow-filmfest_wrapper .gform_footer {
	clear: both;
	position: relative;
	margin-top: 28px !important;
	padding-top: 0 !important;
}

.wow-filmfest_wrapper .gform_button,
.wow-filmfest_wrapper input[type="submit"] {
	background: var(--wff-red) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 999px !important;
	font-family: var(--wff-font) !important;
	font-weight: 800 !important;
	font-size: 18px !important;
	padding: 16px 32px !important;
	cursor: pointer;
}

.wow-filmfest_wrapper .gform_button:hover,
.wow-filmfest_wrapper input[type="submit"]:hover {
	background: #E0004D !important;
}

/* ---- rules page ---- */

.wff-rules {
	max-width: 820px;
	color: var(--wff-ink);
}

.wff-rules h2 {
	font-family: var(--wff-font);
	font-weight: 900;
	font-size: 22px;
	color: var(--wff-purple);
	margin: 34px 0 10px;
	padding: 0;
}

.wff-rules p,
.wff-rules li {
	line-height: 1.65;
}

.wff-rules ul {
	padding-left: 22px !important;
	margin: 0 0 16px;
}

.wff-rules .wff-version {
	color: var(--wff-faint);
	font-style: italic;
}

.wff-back,
.wff-back:visited {
	color: var(--wff-marquee) !important;
	font-weight: 700;
	text-decoration: none;
}

.wff-back:hover {
	text-decoration: underline;
}

/* ---- phones and small tablets ---- */

@media (max-width: 980px) {
	.wff-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.wff-facts {
		grid-template-columns: 1fr;
	}
	.wff-lede {
		font-size: 16px;
	}
	.wff-steps li {
		padding-left: 48px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wff-btn {
		transition: none;
	}
	.wff-btn:hover,
	.wff-btn:focus-visible {
		transform: none;
	}
}
