/* LIFEfolio Founding Advocates — matches Flutter onboarding design system */

@font-face {
	font-family: 'OpenSans';
	src: url('https://lifefolio.co.za/assets/assets/fonts/OpenSans.ttf') format('truetype');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--lf-life-green: #10B981;
	--lf-folio-blue: #3B82F6;
	--lf-teal: #00796B;
	--lf-teal-hover: #00695C;
	--lf-teal-border: #80CBC4;
	--lf-teal-tint: #F1F8F7;
	--lf-text-body: #616161;
	--lf-text-muted: #757575;
	--lf-text-heading: #212121;
	--lf-text-subtitle: #5F6B7A;
	--lf-card-border: #E2E8F0;
	--lf-radius: 12px;
	--lf-max: 560px;
}

/* ---- Strip WordPress theme chrome on this page ---- */
body.page-id-759 {
	font-family: 'OpenSans', 'Segoe UI', sans-serif !important;
	background: #ffffff !important;
	color: var(--lf-text-body);
	overflow-x: hidden;
	max-width: 100%;
}

html {
	overflow-x: hidden;
}

body.page-id-759 .wp-site-blocks,
body.page-id-759 main {
	overflow-x: hidden;
	max-width: 100%;
}

body.page-id-759 .wp-site-blocks,
body.page-id-759 .entry-content,
body.page-id-759 .wp-block-post-content,
body.page-id-759 main {
	background: #ffffff !important;
}

body.page-id-759 .wp-site-blocks > header.wp-block-template-part,
body.page-id-759 .wp-site-blocks > footer.wp-block-template-part,
body.page-id-759 .wp-block-post-title,
body.page-id-759 h1.wp-block-post-title,
body.page-id-759 #wp-skip-link {
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}

body.page-id-759 .wp-site-blocks,
body.page-id-759 .entry-content {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin: 0 !important;
}

/* Twenty Twenty-Five alignfull uses negative margins — clips content on mobile */
body.page-id-759 .entry-content.alignfull,
body.page-id-759 .wp-block-post-content.alignfull,
body.page-id-759 .alignfull {
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
	box-sizing: border-box;
}

body.page-id-759 .has-global-padding {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.page-id-759 .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: min(100%, var(--lf-max)) !important;
}

/* ---- Page shell ---- */
.lfa-wrap {
	width: 100%;
	max-width: var(--lf-max) !important;
	margin: 0 auto;
	padding: 24px 24px 48px;
	box-sizing: border-box;
	font-family: 'OpenSans', 'Segoe UI', sans-serif;
	color: var(--lf-text-body);
	font-size: 15px;
	line-height: 1.5;
}

.lfa-form,
.lfa-section,
.lfa-field,
.lfa-field input,
.lfa-field textarea {
	max-width: 100%;
	box-sizing: border-box;
}

/* ---- Brand header (matches Flutter onboarding top) ---- */
.lfa-brand-header {
	text-align: center;
	padding-top: 8px;
	margin-bottom: 20px;
	background: #ffffff;
}

.lfa-brand {
	text-align: center;
	margin-bottom: 10px;
}

.lfa-brand-wordmark {
	font-size: 42px;
	font-weight: 800;
	letter-spacing: 2px;
	line-height: 1.1;
	margin: 0;
	padding: 0 6px;
}

.lfa-brand-life {
	font-family: Georgia, 'Times New Roman', serif;
	font-weight: 800;
	color: var(--lf-life-green);
	animation: lfa-glow-green 3s ease-in-out infinite;
}

.lfa-brand-folio {
	font-family: 'OpenSans', 'Segoe UI', sans-serif;
	font-weight: 800;
	color: var(--lf-folio-blue);
	animation: lfa-glow-blue 3s ease-in-out infinite;
	animation-delay: 0.5s;
}

@keyframes lfa-glow-green {
	0%, 100% {
		text-shadow:
			0 0 10px rgba(16, 185, 129, 0.3),
			0 0 20px rgba(16, 185, 129, 0.18);
	}
	50% {
		text-shadow:
			0 0 22px rgba(16, 185, 129, 0.6),
			0 0 34px rgba(16, 185, 129, 0.36);
	}
}

@keyframes lfa-glow-blue {
	0%, 100% {
		text-shadow:
			0 0 10px rgba(59, 130, 246, 0.3),
			0 0 20px rgba(59, 130, 246, 0.18);
	}
	50% {
		text-shadow:
			0 0 22px rgba(59, 130, 246, 0.6),
			0 0 34px rgba(59, 130, 246, 0.36);
	}
}

.lfa-brand-sub {
	font-family: 'OpenSans', 'Segoe UI', sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.2px;
	color: var(--lf-text-subtitle);
	margin-top: 4px;
	line-height: 1.2;
}

.lfa-energy-logo {
	display: block;
	width: 120px;
	height: 120px;
	margin: 0 auto 12px;
}

/* ---- Programme badge (matches Beta pill on onboarding) ---- */
.lfa-programme-badge {
	display: inline-block;
	background: #E0F2F1;
	color: #00695C;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
	padding: 8px 16px;
	border-radius: 20px;
	border: 1px solid #80CBC4;
	margin-bottom: 16px;
}

.lfa-tagline {
	font-family: 'OpenSans', 'Segoe UI', sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: var(--lf-teal);
	line-height: 1.3;
	margin: 0;
}

.lfa-campaign-intro {
	text-align: center;
	margin-bottom: 8px;
}

.lfa-offer-blurb {
	margin-top: 12px;
	padding: 12px 14px;
	background: var(--lf-teal-tint);
	border: 1px solid var(--lf-teal-border);
	border-radius: 8px;
	font-size: 14px;
	color: #2D4A4A;
	text-align: left;
}

.lfa-hero__title {
	font-size: clamp(20px, 4vw, 26px);
	font-weight: 700;
	color: var(--lf-text-heading);
	margin: 0 0 10px;
	line-height: 1.3;
}

.lfa-hero__sub {
	font-size: 15px;
	color: var(--lf-text-body);
	margin: 0 0 20px;
	line-height: 1.5;
}

/* ---- Black Life-Card flip hero (matches MedicalAlertCardFlipHero) ---- */
.lfa-card-hero {
	margin: 0 0 24px;
}

.lfa-card-hero__panel {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0 0 8px;
	text-align: center;
}

.lfa-card-hero__viewport {
	overflow: hidden;
	max-width: 280px;
	margin: 0 auto;
}

.lfa-card-hero__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	cursor: grab;
}

.lfa-card-hero__track::-webkit-scrollbar {
	display: none;
}

.lfa-card-hero__track:active {
	cursor: grabbing;
}

.lfa-card-hero__slide {
	flex: 0 0 100%;
	scroll-snap-align: center;
	display: flex;
	justify-content: center;
	padding: 4px 0;
}

.lfa-card-hero__img {
	display: block;
	width: 100%;
	max-width: 280px;
	height: auto;
	aspect-ratio: 1.586;
	object-fit: cover;
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.lfa-card-hero__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
}

.lfa-card-hero__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #bdbdbd;
	cursor: pointer;
	transition: width 0.2s, height 0.2s, background 0.2s;
}

.lfa-card-hero__dot.is-active {
	width: 10px;
	height: 10px;
	background: var(--lf-teal);
}

.lfa-card-hero__hint {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--lf-text-muted);
	line-height: 1.4;
}

/* ---- About teaser card (matches Flutter _AboutTeaser) ---- */
.lfa-about-teaser {
	text-align: left;
	background: #ffffff;
	border: 1px solid var(--lf-teal-border);
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	padding: 16px;
	margin: 0 0 24px;
}

.lfa-about-teaser__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.lfa-about-teaser__icon {
	flex-shrink: 0;
}

.lfa-about-teaser__title {
	font-size: 16px;
	font-weight: 700;
	color: var(--lf-text-heading);
}

.lfa-about-teaser__text {
	font-size: 14px;
	color: var(--lf-text-body);
	line-height: 1.4;
	margin: 0 0 16px;
}

.lfa-about-teaser__link {
	display: block;
	margin-left: auto;
	width: fit-content;
	background: none;
	border: none;
	padding: 0;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--lf-teal);
	cursor: pointer;
	transition: color 0.15s;
}

.lfa-about-teaser__link:hover {
	color: var(--lf-teal-hover);
	text-decoration: underline;
}

/* ---- About modal ---- */
.lfa-about-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(15, 23, 42, 0.45);
	padding: 20px;
}

.lfa-about-modal.is-open {
	display: flex;
}

.lfa-about-modal__card {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: min(85vh, 640px);
	overflow-y: auto;
	background: #fff;
	border-radius: var(--lf-radius);
	border: 1px solid var(--lf-teal-border);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
	padding: 24px 22px 22px;
	color: var(--lf-text-body);
}

.lfa-about-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	border: 1px solid var(--lf-card-border);
	background: #fff;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	color: var(--lf-text-heading);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.lfa-about-close:hover {
	background: var(--lf-teal-tint);
	border-color: var(--lf-teal-border);
}

.lfa-about-modal__card h2 {
	margin: 0 48px 14px 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--lf-text-heading);
}

.lfa-about-modal__lead {
	font-size: 15px;
	color: var(--lf-text-body);
	margin: 0 0 16px;
	line-height: 1.5;
}

.lfa-about-list {
	margin: 0 0 16px;
	padding: 0 0 0 18px;
}

.lfa-about-list li {
	margin-bottom: 8px;
	line-height: 1.45;
}

.lfa-about-modal__note {
	margin: 16px 0 0;
	padding: 12px 14px;
	background: var(--lf-teal-tint);
	border: 1px solid var(--lf-teal-border);
	border-radius: 8px;
	font-size: 13px;
	color: #2D4A4A;
	line-height: 1.45;
}

/* ---- Notice banners ---- */
.lfa-notice {
	border-radius: var(--lf-radius);
	padding: 28px 24px;
	margin: 32px 0;
	text-align: center;
	border: 1px solid var(--lf-teal-border);
}

.lfa-notice h2 {
	margin: 0 0 10px;
	font-size: 22px;
	color: var(--lf-text-heading);
}

.lfa-notice p {
	margin: 0;
	font-size: 15px;
}

.lfa-notice--success {
	background: var(--lf-teal-tint);
	color: var(--lf-teal);
}

.lfa-notice--error {
	background: #FFEBEE;
	border-color: #EF9A9A;
	color: #B71C1C;
}

.lfa-notice--warning {
	background: #FFF3E0;
	border-color: #FFCC80;
	color: #E65100;
}

.lfa-notice--info {
	background: #F8FAFC;
	border-color: var(--lf-card-border);
	color: var(--lf-text-body);
}

/* ---- Form sections ---- */
.lfa-section {
	background: #fff;
	border: 1px solid var(--lf-teal-border);
	border-radius: var(--lf-radius);
	padding: 20px 18px;
	margin-bottom: 14px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lfa-section__title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--lf-teal);
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--lf-teal-tint);
}

/* ---- Fields ---- */
.lfa-field {
	margin-bottom: 16px;
}

.lfa-field:last-child {
	margin-bottom: 0;
}

.lfa-field label,
.lfa-field > label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--lf-text-heading);
	line-height: 1.4;
}

.lfa-field input[type="text"],
.lfa-field input[type="tel"],
.lfa-field input[type="email"],
.lfa-field textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1.5px solid var(--lf-card-border);
	border-radius: var(--lf-radius);
	padding: 12px 14px;
	font-size: 15px;
	font-family: inherit;
	color: var(--lf-text-heading);
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
	-webkit-appearance: none;
}

.lfa-field input:focus,
.lfa-field textarea:focus {
	outline: none;
	border-color: var(--lf-teal);
	box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.12);
}

.lfa-field textarea {
	resize: vertical;
	min-height: 72px;
}

.lfa-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

@media (max-width: 520px) {
	.lfa-wrap {
		padding: 20px max(20px, env(safe-area-inset-right)) 40px max(20px, env(safe-area-inset-left));
	}

	.lfa-brand-wordmark {
		font-size: 34px;
		letter-spacing: 1.5px;
	}

	.lfa-energy-logo {
		width: 100px;
		height: 100px;
	}

	.lfa-field-row {
		grid-template-columns: 1fr;
	}

	.lfa-options--inline {
		flex-direction: column;
	}

	.lfa-options--inline .lfa-option {
		min-width: 0;
		width: 100%;
		flex: 1 1 auto;
	}

	.lfa-hero__title {
		font-size: 22px;
		padding: 0 2px;
	}

	.lfa-section {
		padding: 18px 16px;
	}
}

/* ---- Radio options ---- */
.lfa-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.lfa-options--inline {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px;
}

.lfa-option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	padding: 12px 14px;
	border: 1.5px solid var(--lf-card-border);
	border-radius: var(--lf-radius);
	font-size: 14px;
	font-weight: 500;
	color: var(--lf-text-body);
	transition: border-color 0.15s, background 0.15s;
	background: #fff;
}

.lfa-option:hover {
	border-color: var(--lf-teal-border);
	background: var(--lf-teal-tint);
}

.lfa-option:has(input:checked) {
	border-color: var(--lf-teal);
	background: var(--lf-teal-tint);
}

.lfa-option input[type="radio"] {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: var(--lf-teal);
	flex-shrink: 0;
}

.lfa-options--inline .lfa-option {
	flex: 1 1 auto;
	min-width: 120px;
}

/* ---- Conditional field ---- */
.lfa-field--conditional {
	display: none;
	padding: 14px;
	background: var(--lf-teal-tint);
	border: 1px dashed var(--lf-teal-border);
	border-radius: 8px;
	margin-top: 6px;
}

.lfa-req {
	color: #E53935;
	margin-left: 2px;
}

.lfa-optional {
	font-weight: 400;
	color: var(--lf-text-muted);
	font-size: 12px;
}

/* ---- Submit ---- */
.lfa-submit-wrap {
	text-align: center;
	padding-top: 10px;
}

.lfa-btn {
	display: inline-block;
	background: var(--lf-teal);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	padding: 16px 32px;
	border-radius: var(--lf-radius);
	border: none;
	cursor: pointer;
	letter-spacing: 0.02em;
	transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
	width: 100%;
	max-width: 320px;
	box-shadow: 0 4px 12px rgba(0, 121, 107, 0.3);
	font-family: inherit;
}

.lfa-btn:hover {
	background: var(--lf-teal-hover);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(0, 121, 107, 0.35);
}

.lfa-btn:active {
	transform: translateY(0);
}

.lfa-btn:disabled {
	opacity: 0.85;
	cursor: wait;
	transform: none;
}

.lfa-privacy {
	margin-top: 14px;
	font-size: 12px;
	color: var(--lf-text-muted);
	line-height: 1.45;
}

/* ---- Minimal LIFEfolio footer ---- */
.lfa-footer {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--lf-card-border);
	text-align: center;
	font-size: 13px;
	color: var(--lf-text-muted);
}

.lfa-footer a {
	color: var(--lf-teal);
	text-decoration: none;
	font-weight: 600;
}

.lfa-footer a:hover {
	text-decoration: underline;
}

/* ---- Submitting overlay ---- */
body.lfa-is-submitting {
	overflow: hidden;
}

.lfa-submitting {
	position: fixed;
	inset: 0;
	z-index: 999998;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.88);
	padding: 24px;
}

.lfa-submitting[hidden] {
	display: none !important;
}

.lfa-submitting__panel {
	text-align: center;
	max-width: 320px;
	padding: 28px 24px;
	background: #fff;
	border: 1px solid var(--lf-teal-border);
	border-radius: var(--lf-radius);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.lfa-submitting__spinner {
	width: 44px;
	height: 44px;
	margin: 0 auto 16px;
	border: 4px solid var(--lf-teal-tint);
	border-top-color: var(--lf-teal);
	border-radius: 50%;
	animation: lfa-spin 0.9s linear infinite;
}

.lfa-submitting__title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 700;
	color: var(--lf-text-heading);
}

.lfa-submitting__sub {
	margin: 0;
	font-size: 14px;
	color: var(--lf-text-muted);
	line-height: 1.45;
}

@keyframes lfa-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.lfa-brand-life,
	.lfa-brand-folio {
		animation: none;
	}

	.lfa-submitting__spinner {
		animation: none;
		border-top-color: var(--lf-teal-border);
	}
}
