/*
 * SFS MF Calculator. Uses only the existing SFS design tokens defined
 * sitewide in includes/footer.php (--sfs-teal, --sfs-teal-bright, --sfs-text,
 * --sfs-light, --sfs-border) plus the fonts already used across the new site
 * (--font-primary / --font-mono, same as the Stockists page). No new colours
 * or fonts — the rebrand assets are still pending. Loads on this page only.
 *
 * Hello Elementor styles bare inputs, buttons and tables (pink accent,
 * zebra rows); every rule that must beat it is scoped `.sfs-mfc .sfs-mfc__x`.
 */

#content.site-main { max-width: none; }

.sfs-mfc-hero,
.sfs-mfc { font-family: var(--font-primary); color: var(--sfs-text); }
.sfs-mfc [hidden] { display: none !important; }
.sfs-sr-only {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Hero ---------- */
.sfs-mfc-hero {
	background: var(--sfs-light);
	padding: 152px 32px 40px;
	text-align: center;
}
.sfs-mfc-hero__eyebrow {
	display: block;
	font-family: var(--font-mono);
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sfs-teal);
	margin: 0 0 16px;
}
.sfs-mfc-hero__title {
	margin: 0 0 20px;
	font-weight: 800;
	letter-spacing: -0.01em;
	font-size: clamp(2.25rem, 4vw, 3.4rem);
	line-height: 1.1;
	color: var(--sfs-text);
}
.sfs-mfc-hero__title em { font-style: normal; color: var(--sfs-teal); }
.sfs-mfc-hero__lede {
	max-width: 700px;
	margin: 0 auto;
	font-size: clamp(1.05rem, 1.3vw, 1.2rem);
	line-height: 1.6;
	opacity: 0.78;
}

/* ---------- Layout ---------- */
.sfs-mfc { background: var(--sfs-light); padding: 16px 32px 96px; }
.sfs-mfc__inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.sfs-mfc__intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }

.sfs-mfc__card,
.sfs-mfc__calc {
	background: #fff;
	border: 1px solid var(--sfs-border);
	border-radius: 12px;
	box-shadow: 0 20px 44px rgba(15, 23, 32, 0.08);
	padding: 28px;
	box-sizing: border-box;
}
.sfs-mfc__h2 {
	margin: 0 0 14px;
	font-weight: 700;
	font-size: 1.4rem;
	line-height: 1.2;
	color: var(--sfs-text);
}
.sfs-mfc__h3 {
	margin: 0 0 16px;
	font-weight: 700;
	font-size: 1.15rem;
	line-height: 1.25;
	color: var(--sfs-text);
	scroll-margin-top: 100px;
}
.sfs-mfc__h3:focus { outline: none; }
.sfs-mfc__card p { margin: 0 0 12px; line-height: 1.6; }
.sfs-mfc__card p:last-child { margin-bottom: 0; }
.sfs-mfc__steps { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; line-height: 1.55; }
.sfs-mfc__steps li::marker { color: var(--sfs-teal); font-weight: 700; }

/* ---------- Form ---------- */
.sfs-mfc__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sfs-mfc__field { display: grid; gap: 6px; align-content: start; }
.sfs-mfc__field label {
	font-family: var(--font-mono);
	font-weight: 600;
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sfs-teal);
}
.sfs-mfc .sfs-mfc__input {
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	font-family: var(--font-primary);
	font-size: 1.05rem;
	color: var(--sfs-text);
	background: #fff;
	border: 1px solid var(--sfs-border);
	border-radius: 8px;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sfs-mfc .sfs-mfc__input:hover { border-color: var(--sfs-teal); }
.sfs-mfc .sfs-mfc__input:focus-visible { outline: 2px solid var(--sfs-teal); outline-offset: 2px; }
.sfs-mfc .sfs-mfc__input.is-invalid { border-color: #b3261e; }
.sfs-mfc__hint { font-size: 0.82rem; opacity: 0.7; }
.sfs-mfc__error { font-size: 0.88rem; font-weight: 600; line-height: 1.4; color: #b3261e; }
.sfs-mfc__formerror { margin: 16px 0 0; font-weight: 600; color: #b3261e; }

.sfs-mfc__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.sfs-mfc .sfs-mfc__btn {
	min-height: 48px;
	padding: 0 26px;
	font-family: var(--font-primary);
	font-weight: 700;
	font-size: 1rem;
	color: #fff;
	background: var(--sfs-teal);
	border: 1.5px solid var(--sfs-teal);
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}
.sfs-mfc .sfs-mfc__btn:hover { background: var(--sfs-text); border-color: var(--sfs-text); color: #fff; }
.sfs-mfc .sfs-mfc__btn:focus-visible { outline: 2px solid var(--sfs-teal); outline-offset: 2px; }
.sfs-mfc .sfs-mfc__btn--ghost { background: transparent; color: var(--sfs-teal); }
.sfs-mfc .sfs-mfc__btn--ghost:hover { background: var(--sfs-teal); border-color: var(--sfs-teal); color: #fff; }

/* "Enquire About These Materials" link-button (SFS Forms hand-off) */
.sfs-mfc__next { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0 0; }
.sfs-mfc__enquire,
.sfs-mfc__stockist { margin: 0; }
.sfs-mfc__next-note { flex: 1 0 100%; margin: 0; font-size: 0.95rem; color: var(--sfs-text); opacity: 0.8; }
.sfs-mfc a.sfs-mfc__btn--link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	color: #fff;
}
.sfs-mfc a.sfs-mfc__btn--link:hover,
.sfs-mfc a.sfs-mfc__btn--link:focus-visible { color: #fff; }
.sfs-mfc a.sfs-mfc__btn--ghost.sfs-mfc__btn--link { color: var(--sfs-teal); }
.sfs-mfc a.sfs-mfc__btn--ghost.sfs-mfc__btn--link:hover,
.sfs-mfc a.sfs-mfc__btn--ghost.sfs-mfc__btn--link:focus-visible { color: #fff; }
@media (max-width: 767px) {
	.sfs-mfc__enquire,
	.sfs-mfc__stockist { flex: 1 0 100%; }
	.sfs-mfc a.sfs-mfc__btn--link { display: flex; width: 100%; padding: 10px 10px; font-size: 0.95rem; }
}

/* ---------- Results ---------- */
.sfs-mfc__results { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--sfs-border); }
.sfs-mfc__summary { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 22px; }
.sfs-mfc__stat {
	flex: 1 1 140px;
	padding: 14px 18px;
	background: var(--sfs-light);
	border: 1px solid var(--sfs-border);
	border-radius: 10px;
}
.sfs-mfc__stat dt {
	font-family: var(--font-mono);
	font-weight: 600;
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sfs-teal);
}
.sfs-mfc__stat dd { margin: 4px 0 0; font-weight: 700; font-size: 1.15rem; }
.sfs-mfc__stat--area { flex: 2 1 200px; background: var(--sfs-teal); border-color: var(--sfs-teal); }
.sfs-mfc__stat--area dt { color: rgba(255, 255, 255, 0.85); }
.sfs-mfc__stat--area dd { font-size: 1.9rem; line-height: 1.15; color: #fff; }

.sfs-mfc .sfs-mfc__table { width: 100%; border-collapse: collapse; table-layout: auto; margin: 0; font-size: 0.98rem; }
.sfs-mfc .sfs-mfc__table th,
.sfs-mfc .sfs-mfc__table td {
	padding: 12px 14px;
	line-height: 1.45;
	text-align: left;
	vertical-align: middle;
	color: var(--sfs-text);
	background: #fff;
	border: 0;
	border-bottom: 1px solid var(--sfs-border);
}
.sfs-mfc .sfs-mfc__table thead th {
	font-family: var(--font-mono);
	font-weight: 600;
	font-size: 0.74rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sfs-teal);
	background: var(--sfs-light);
	border-bottom: 2px solid var(--sfs-teal);
}
.sfs-mfc .sfs-mfc__table tbody tr:nth-child(odd) > td,
.sfs-mfc .sfs-mfc__table tbody tr:nth-child(odd) > th,
.sfs-mfc .sfs-mfc__table tbody tr:hover > td,
.sfs-mfc .sfs-mfc__table tbody tr:hover > th { background: #fff; }
.sfs-mfc .sfs-mfc__table .sfs-mfc__code { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
.sfs-mfc .sfs-mfc__table .sfs-mfc__qty { text-align: right; white-space: nowrap; }
.sfs-mfc .sfs-mfc__table td.sfs-mfc__qty strong { font-size: 1.15rem; }

.sfs-mfc__disclaimer {
	margin: 22px 0 0;
	padding: 14px 18px;
	line-height: 1.5;
	border-left: 4px solid var(--sfs-teal);
	background: var(--sfs-light);
	border-radius: 0 8px 8px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
	.sfs-mfc-hero { padding: 132px 28px 32px; }
	.sfs-mfc { padding: 12px 24px 72px; }
}
@media (max-width: 767px) {
	.sfs-mfc-hero { padding: 112px 20px 28px; }
	.sfs-mfc { padding: 8px 16px 56px; }
	.sfs-mfc__intro { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.sfs-mfc__inner { gap: 20px; }
	.sfs-mfc__card,
	.sfs-mfc__calc { padding: 20px 18px; }
	.sfs-mfc__fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.sfs-mfc .sfs-mfc__btn { flex: 1 1 140px; }
	.sfs-mfc .sfs-mfc__table th,
	.sfs-mfc .sfs-mfc__table td { padding: 10px 8px; font-size: 0.92rem; }
	.sfs-mfc .sfs-mfc__table .sfs-mfc__code { font-size: 0.82rem; }
	.sfs-mfc__stat { flex-basis: 110px; padding: 12px 14px; }
	.sfs-mfc__stat--area { flex-basis: 100%; }
	.sfs-mfc__stat--area dd { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
	.sfs-mfc .sfs-mfc__input, .sfs-mfc .sfs-mfc__btn { transition: none; }
}
