/* Fizzics — /sponsor-stem/ (Corporate STEM Sponsorship) forms and tiers,
 * and the "Partner with us" prompt on the AVISTA and ExoLab project posts.
 *
 * Ben Newsome, Cliq #Fizzics-Support, 24 Oct 2026 (msg 1792831982937).
 * Builds on content-pages.css (.fzp components); everything here is scoped
 * under .fzl- classes. Loaded by inc/sponsor-leads.php only where used.
 */

/* --- Hero ---------------------------------------------------------------- */
.fzl-hero {
	padding: var(--s-7, 3rem) var(--s-5, 1.5rem);
	border-radius: var(--fzp-radius, 14px);
	background: var(--wp--preset--color--navy);
	color: #fff;
	text-align: center;
}

.fzp .fzl-hero h2 {
	color: #fff;
	font-size: var(--wp--preset--font-size--xx-large, 2.25rem);
}

.fzl-hero .fzp-lede {
	max-width: 46rem;
	margin-right: auto;
	margin-left: auto;
	color: #fff;
}

.fzl-hero .fzp-actions {
	justify-content: center;
}

.fzl-hero .fzp-btn--ghost {
	border-color: #fff;
	color: #fff;
}

.fzl-hero .fzp-btn--ghost:hover,
.fzl-hero .fzp-btn--ghost:focus-visible {
	background: #fff;
	color: var(--wp--preset--color--navy);
}

/* --- Tiers and deliverables ---------------------------------------------- */
.fzl-tiers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--s-4, 1rem);
	margin: var(--s-5, 1.5rem) 0;
	padding: 0;
	list-style: none;
}

.fzl-tier {
	padding: var(--s-5, 1.5rem);
	border: 1px solid var(--wp--preset--color--line);
	border-top: 6px solid var(--wp--preset--color--orange);
	border-radius: var(--fzp-radius, 14px);
	background: var(--wp--preset--color--paper, #fff);
	box-shadow: var(--fzp-shadow);
}

.fzl-deliverables {
	padding: var(--s-5, 1.5rem);
	border-radius: var(--fzp-radius, 14px);
	background: var(--wp--preset--color--surface);
}

.fzl-deliverables ul {
	margin: 0;
	padding-left: 1.25rem;
}

/* Deliverables list beside a photo (Ben, 25 Oct): list left, image right
   (about 40%), top-aligned; the photo stacks under the list on phones. */
.fzl-receives {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: var(--s-5, 1.5rem);
	align-items: start;
}

.fzl-receives-media {
	margin: 0;
}

.fzl-receives-media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--fzp-radius, 14px);
}

@media (max-width: 719px) {
	.fzl-receives {
		grid-template-columns: 1fr;
	}
}

.fzl-section {
	scroll-margin-top: 6rem;
}

/* --- Forms --------------------------------------------------------------- */
.fzl-form {
	margin-top: var(--s-5, 1.5rem);
	padding: var(--s-5, 1.5rem);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--fzp-radius, 14px);
	background: var(--wp--preset--color--paper, #fff);
}

.fzl-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--s-4, 1rem) var(--s-5, 1.5rem);
}

.fzl-field {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.fzl-field--wide {
	grid-column: 1 / -1;
}

.fzl-field label {
	font-weight: 700;
	color: var(--wp--preset--color--navy);
}

.fzl-req {
	color: #b42318; /* 6.2:1 on white */
}

.fzl-hint {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink-soft);
}

.fzl-field input,
.fzl-field select,
.fzl-field textarea {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.5rem 0.75rem;
	border: 2px solid #6b7280; /* 4.8:1 against white: a visible boundary (WCAG 1.4.11) */
	border-radius: 8px;
	background: #fff;
	color: var(--wp--preset--color--ink);
	font: inherit;
}

.fzl-field input:focus-visible,
.fzl-field select:focus-visible,
.fzl-field textarea:focus-visible {
	outline: 3px solid var(--wp--preset--color--orange);
	outline-offset: 2px;
}

.fzl-field textarea {
	min-height: 6rem;
	resize: vertical;
}

.fzl-field [aria-invalid="true"] {
	border-color: #b42318;
}

.fzl-error {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	color: #b42318;
}

.fzl-error:empty {
	display: none;
}

/* :has(> h3), not :not(:empty): the PHP template leaves whitespace inside the
   empty container, so :not(:empty) matched at rest and drew a blank red box. */
.fzl-errors:has(> h3) {
	margin-bottom: var(--s-4, 1rem);
	padding: var(--s-4, 1rem);
	border: 2px solid #b42318;
	border-radius: 8px;
	background: #fef3f2;
}

.fzp .fzl-errors h3 {
	color: #b42318;
	font-size: var(--wp--preset--font-size--medium);
}

.fzl-errors ul {
	margin: 0;
	padding-left: 1.25rem;
}

.fzl-errors:focus,
.fzl-success:focus {
	outline: 3px solid var(--wp--preset--color--orange);
	outline-offset: 2px;
}

.fzl-success {
	margin-top: var(--s-5, 1.5rem);
	padding: var(--s-5, 1.5rem);
	border-left: 6px solid #067647;
	border-radius: 8px;
	background: #ecfdf3;
	font-weight: 700;
}

/* Honeypot: off screen for people, still in the DOM for bots. */
.fzl-hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.fzl-form .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.fzl-privacy {
	margin-top: var(--s-4, 1rem);
	font-size: var(--wp--preset--font-size--small);
}

/* --- Prompt at the end of the AVISTA and ExoLab project posts ------------- */
.fzl-partner-prompt {
	margin-top: var(--s-6, 2rem);
	padding: var(--s-4, 1rem) var(--s-5, 1.5rem);
	border-left: 6px solid var(--wp--preset--color--orange);
	border-radius: 8px;
	background: var(--wp--preset--color--orange-050, #fff4ec);
	font-weight: 700;
}

.fzl-partner-prompt a {
	color: var(--wp--preset--color--trustbar-blue-deep, #0b4f8a);
	text-decoration: underline;
}

/* --- Lab coats page /lab-coats-for-science-parties/ (Ben, 25 Oct 2026) ---
 * The enquiry form reuses the .fzl form above; a tick box sits before its
 * label. Size table and the hire / purchase cards below. */
.fzl-field--check {
	flex-flow: row wrap;
	align-items: center;
	gap: 0.6rem;
}

.fzl-field--check input {
	width: 1.4rem;
	height: 1.4rem;
	min-height: 1.4rem;
	margin: 0;
	padding: 0;
	accent-color: var(--wp--preset--color--navy);
}

.fzl-field--check .fzl-error {
	flex-basis: 100%;
}

.fzlc-specs {
	width: 100%;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	border-collapse: collapse;
	border-radius: var(--fzp-radius, 14px);
	background: #fff;
}

.fzlc-specs th,
.fzlc-specs td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
	text-align: left;
	vertical-align: top;
}

.fzlc-specs thead th {
	background: var(--wp--preset--color--navy-050, #eef0fa);
	color: var(--wp--preset--color--navy);
}

.fzlc-specs tbody tr:last-child th,
.fzlc-specs tbody tr:last-child td {
	border-bottom: 0;
}

.fzlc-prices {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--s-5, 1.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fzlc-price {
	display: flex;
	flex-direction: column;
	padding: var(--s-5, 1.5rem);
	border: 2px solid var(--wp--preset--color--navy);
	border-radius: var(--fzp-radius, 14px);
	background: #fff;
	text-align: center;
}

.fzlc-price--buy {
	border-color: var(--wp--preset--color--orange);
}

.fzp .fzlc-price h3 {
	margin: 0 0 0.25rem;
}

.fzlc-price .fzlc-amount {
	margin: 0.5rem 0;
	color: var(--wp--preset--color--navy);
	font-size: 2rem;
	font-weight: 800;
}

.fzlc-price .fzp-actions {
	justify-content: center;
	margin-top: auto;
}

.fzlc-pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin: var(--s-5, 1.5rem) 0 0;
	padding: 0;
	list-style: none;
}

.fzlc-pills li {
	padding: 0.5rem 1rem;
	border: 2px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: #fff;
	font-weight: 700;
}

@media (max-width: 700px) {
	.fzl-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.fzlc-specs th,
	.fzlc-specs td {
		padding: 0.5rem;
		font-size: 0.95rem;
	}
}
