/* SLL Future Readiness Assessment - frontend styles
   Palette: Dark Green #0B302E, Light Green #22C55E, Gold #F4B400, White #FFFFFF, Grey #64748B */

.sllfra {
	--sll-dark: #0B302E;
	--sll-dark-2: #0A3B2E;
	--sll-green: #22C55E;
	--sll-gold: #F4B400;
	--sll-grey: #64748B;
	--sll-grey-light: #E5E9EC;
	--sll-bg: #F7F8F7;
	--sll-red: #E24B4A;
	--sll-blue: #3B82F6;
	--sll-radius: 14px;
	font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: #17241F;
	box-sizing: border-box;
}
.sllfra *, .sllfra *::before, .sllfra *::after { box-sizing: inherit; }

.sllfra-shell {
	max-width: 980px;
	margin: 0 auto;
	position: relative;
}

/* Progress bar */
.sllfra-progress { margin-bottom: 20px; }
.sllfra-progress-bar {
	height: 8px;
	background: var(--sll-grey-light);
	border-radius: 999px;
	overflow: hidden;
}
.sllfra-progress-fill {
	height: 100%;
	width: 8%;
	background: linear-gradient(90deg, var(--sll-green), var(--sll-dark));
	border-radius: 999px;
	transition: width .4s ease;
}

/* Step visibility */
.sllfra-step { display: none; }
.sllfra-step-active { display: block; animation: sllfraFade .35s ease; }
@keyframes sllfraFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Contact step layout */
.sllfra-step[data-step="contact"].sllfra-step-active {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 28px;
	align-items: stretch;
}
@media (max-width: 760px) {
	.sllfra-step[data-step="contact"].sllfra-step-active { grid-template-columns: 1fr; }
}

.sllfra-intro {
	background: var(--sll-dark);
	color: #fff;
	border-radius: var(--sll-radius);
	padding: 36px 30px;
}
.sllfra-eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--sll-gold);
	margin-bottom: 14px;
}
.sllfra-intro h2 {
	font-size: 26px;
	line-height: 1.25;
	margin: 0 0 12px;
	font-weight: 600;
}
.sllfra-lead {
	color: #C9D6D0;
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 24px;
}
.sllfra-value-list { list-style: none; margin: 0; padding: 0; }
.sllfra-value-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: #E7EEEA;
	padding: 10px 0;
	border-top: 1px solid rgba(255,255,255,.08);
}
.sllfra-value-list li:first-child { border-top: none; }
.sllfra-ico {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--sll-green);
	margin-top: 2px;
	position: relative;
}
.sllfra-ico::after {
	content: "";
	position: absolute;
	left: 5px; top: 3px;
	width: 5px; height: 9px;
	border-right: 2px solid #0B302E;
	border-bottom: 2px solid #0B302E;
	transform: rotate(45deg);
}

/* Cards */
.sllfra-card {
	background: #fff;
	border: 1px solid var(--sll-grey-light);
	border-radius: var(--sll-radius);
	padding: 30px;
}

/* Form */
.sllfra-form h3 { margin: 0 0 4px; font-size: 19px; font-weight: 600; color: var(--sll-dark); }
.sllfra-muted { color: var(--sll-grey); font-size: 13px; margin: 0 0 18px; }
.sllfra-center { text-align: center; margin-top: 10px; }
.sllfra-field { margin-bottom: 16px; }
.sllfra-field label { display: block; font-size: 13px; font-weight: 600; color: #23342E; margin-bottom: 6px; }
.sllfra-optional { font-weight: 400; color: var(--sll-grey); }
.sllfra-field input {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--sll-grey-light);
	border-radius: 9px;
	font-size: 14px;
	font-family: inherit;
	background: #FBFCFB;
	transition: border-color .15s, box-shadow .15s;
}
.sllfra-field input:focus {
	outline: none;
	border-color: var(--sll-green);
	box-shadow: 0 0 0 3px rgba(34,197,94,.15);
	background: #fff;
}
.sllfra-error { color: var(--sll-red); font-size: 13px; margin: 0 0 12px; min-height: 0; }
.sllfra-error:empty { display: none; }

/* Buttons */
.sllfra-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 22px;
	border-radius: 9px;
	font-size: 14px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: background .15s, opacity .15s, transform .1s;
	font-family: inherit;
}
.sllfra-btn:active { transform: scale(.98); }
.sllfra-btn-block { width: 100%; }
.sllfra-btn-primary { background: var(--sll-dark); color: #fff; }
.sllfra-btn-primary:hover { background: var(--sll-dark-2); }
.sllfra-btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.sllfra-btn-ghost { background: #fff; color: var(--sll-dark); border: 1px solid var(--sll-grey-light); }
.sllfra-btn-ghost:hover { background: var(--sll-bg); }
.sllfra-arrow { display: inline-block; }

/* Question step */
.sllfra-question-card { max-width: 700px; margin: 0 auto; }
.sllfra-domain-tag {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--sll-dark);
	background: #EAF3EE;
	border-radius: 999px;
	padding: 6px 14px;
	margin-bottom: 18px;
}
.sllfra-qmeta { font-size: 13px; color: var(--sll-grey); margin-bottom: 8px; }
.sllfra-question-text { font-size: 20px; font-weight: 600; line-height: 1.4; color: #17241F; margin: 0 0 26px; }

.sllfra-scale { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.sllfra-scale-opt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	text-align: left;
	padding: 15px 18px;
	border: 1.5px solid var(--sll-grey-light);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	font-family: inherit;
	transition: border-color .15s, background .15s;
}
.sllfra-scale-opt:hover { border-color: var(--sll-green); background: #F5FBF7; }
.sllfra-scale-opt:focus-visible { outline: 2px solid var(--sll-green); outline-offset: 2px; }
.sllfra-scale-opt.is-selected { border-color: var(--sll-green); background: #EAFBF0; }
.sllfra-scale-label { font-size: 14.5px; color: #23342E; font-weight: 500; }
.sllfra-scale-opt.is-selected .sllfra-scale-label { color: var(--sll-dark); font-weight: 600; }

.sllfra-scoring-note {
	display: none;
	background: #F0F6F2;
	border: 1px solid #D5E6DA;
	border-left: 4px solid var(--sll-green);
	border-radius: 10px;
	padding: 14px 18px;
	font-size: 13.5px;
	line-height: 1.55;
	color: #23342E;
	margin: -10px 0 20px;
}
.sllfra-scoring-note.is-visible { display: block; }
.sllfra-scoring-note strong { color: var(--sll-dark); }

.sllfra-scale-info-wrap { position: relative; flex: 0 0 auto; display: flex; align-items: center; }
.sllfra-scale-info {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	border-radius: 50%;
	border: 1.5px solid var(--sll-grey-light);
	background: #fff;
	color: var(--sll-grey);
	font-size: 12px;
	font-family: Georgia, 'Times New Roman', serif;
	font-style: italic;
	font-weight: 700;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}
.sllfra-scale-info:hover,
.sllfra-scale-info:focus-visible { border-color: var(--sll-green); color: var(--sll-dark); }
.sllfra-tooltip {
	display: none;
	position: absolute;
	bottom: calc(100% + 10px);
	right: 0;
	width: 240px;
	max-width: 60vw;
	background: var(--sll-dark);
	color: #fff;
	font-size: 12.5px;
	line-height: 1.5;
	font-weight: 400;
	text-align: left;
	padding: 12px 14px;
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba(0,0,0,.18);
	z-index: 20;
}
.sllfra-tooltip::after {
	content: "";
	position: absolute;
	top: 100%;
	right: 8px;
	border: 6px solid transparent;
	border-top-color: var(--sll-dark);
}
.sllfra-scale-info-wrap.is-open .sllfra-tooltip { display: block; }
@media (max-width: 480px) {
	.sllfra-tooltip { right: -10px; width: 220px; max-width: 70vw; }
}

.sllfra-nav { display: flex; justify-content: space-between; gap: 12px; }

/* Results */
.sllfra-results-header {
	background: var(--sll-dark);
	color: #fff;
	border-radius: var(--sll-radius);
	padding: 30px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}
.sllfra-results-header h2 { margin: 0 0 6px; font-size: 22px; font-weight: 600; }
.sllfra-results-header p { margin: 0; color: #C9D6D0; font-size: 14px; max-width: 420px; }
.sllfra-badge {
	display: inline-block;
	background: var(--sll-gold);
	color: #2B2000;
	font-weight: 700;
	font-size: 13px;
	border-radius: 999px;
	padding: 6px 16px;
	margin-top: 10px;
}
.sllfra-btn-download {
	background: #fff;
	color: var(--sll-dark);
	border: 1.5px solid rgba(255,255,255,.5);
	flex: 0 0 auto;
	white-space: nowrap;
}
.sllfra-btn-download:hover { background: #EAF3EE; }
.sllfra-btn-download:disabled { opacity: .6; cursor: wait; }

.sllfra-kpis {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	margin-bottom: 22px;
}
.sllfra-kpi {
	background: #fff;
	border: 1px solid var(--sll-grey-light);
	border-radius: var(--sll-radius);
	padding: 18px 20px;
}
.sllfra-kpi .sllfra-kpi-val { font-size: 26px; font-weight: 700; color: var(--sll-dark); }
.sllfra-kpi .sllfra-kpi-label { font-size: 12px; color: var(--sll-grey); margin-top: 2px; }

.sllfra-charts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 22px;
}
@media (max-width: 760px) { .sllfra-charts { grid-template-columns: 1fr; } }
.sllfra-chart-card { position: relative; }
.sllfra-chart-card h4 { margin: 0 0 14px; font-size: 14px; color: var(--sll-grey); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.sllfra-chart-wrap { position: relative; height: 240px; }
.sllfra-donut-center {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
	text-align: center;
}
.sllfra-donut-center .val { font-size: 30px; font-weight: 700; color: var(--sll-dark); }
.sllfra-donut-center .lvl { font-size: 12px; color: var(--sll-grey); margin-top: 2px; }

.sllfra-note-card {
	background: #F0F6F2;
	border: 1px solid #D5E6DA;
	border-left: 4px solid var(--sll-green);
	border-radius: var(--sll-radius);
	padding: 18px 22px;
	margin-bottom: 22px;
}
.sllfra-note-card p { margin: 0; font-size: 14px; line-height: 1.6; color: #23342E; }

.sllfra-domain-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.sllfra-domain-card {
	background: #fff;
	border: 1px solid var(--sll-grey-light);
	border-left: 5px solid var(--dcolor, var(--sll-green));
	border-radius: var(--sll-radius);
	padding: 20px 22px;
}
.sllfra-domain-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
.sllfra-domain-card-top h4 { margin: 0; font-size: 16px; font-weight: 600; color: var(--sll-dark); }
.sllfra-domain-score { font-size: 20px; font-weight: 700; color: var(--dcolor, var(--sll-green)); }
.sllfra-domain-bar { height: 8px; background: var(--sll-grey-light); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.sllfra-domain-bar-fill { height: 100%; background: var(--dcolor, var(--sll-green)); border-radius: 999px; }
.sllfra-domain-block { margin-bottom: 10px; }
.sllfra-domain-block:last-child { margin-bottom: 0; }
.sllfra-domain-block-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--sll-grey); margin-bottom: 4px; }
.sllfra-domain-block p { margin: 0; font-size: 14px; line-height: 1.55; color: #23342E; }

.sllfra-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 22px;
}
@media (max-width: 760px) { .sllfra-two-col { grid-template-columns: 1fr; } }
.sllfra-list-card h4 { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--sll-dark); }
.sllfra-list-card ul { list-style: none; margin: 0; padding: 0; }
.sllfra-list-card li { font-size: 14px; padding: 8px 0; border-top: 1px solid var(--sll-grey-light); color: #23342E; display: flex; gap: 10px; align-items: flex-start; }
.sllfra-list-card li:first-child { border-top: none; }
.sllfra-list-card.holding li::before { content: "!"; flex: 0 0 18px; height: 18px; border-radius: 50%; background: #FCE9E9; color: var(--sll-red); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sllfra-list-card.leading li::before { content: "\2713"; flex: 0 0 18px; height: 18px; border-radius: 50%; background: #E6F7EC; color: var(--sll-green); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.sllfra-cta {
	background: linear-gradient(135deg, var(--sll-dark), var(--sll-dark-2));
	color: #fff;
	border-radius: var(--sll-radius);
	padding: 34px 30px;
	text-align: center;
}
.sllfra-cta h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; }
.sllfra-cta p { margin: 0 0 20px; color: #C9D6D0; font-size: 14px; }
.sllfra-cta-intro { margin: 0 0 10px !important; font-weight: 600; color: #fff !important; }
.sllfra-cta-list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
}
.sllfra-cta-list li {
	position: relative;
	padding: 6px 0 6px 24px;
	font-size: 14px;
	color: #E7EEEA;
	line-height: 1.5;
}
.sllfra-cta-list li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 6px;
	color: var(--sll-gold);
	font-weight: 700;
}
.sllfra-cta .sllfra-btn-primary {
	background: var(--sll-gold);
	color: #2B2000;
	white-space: normal;
	max-width: 420px;
	text-align: center;
}
.sllfra-cta .sllfra-btn-primary:hover { background: #E0A700; }

.sllfra-loading { text-align: center; padding: 40px 0; color: var(--sll-grey); font-size: 14px; }

@media (max-width: 480px) {
	.sllfra-intro, .sllfra-card { padding: 22px; }
	.sllfra-question-text { font-size: 17px; }
}

@media print {
	body {
		padding-left: 32px !important;
		padding-right: 32px !important;
	}
	.sllfra-progress,
	#sllfra-download-btn,
	#sllfra-book-review,
	.sllfra-step:not(.sllfra-step-active) {
		display: none !important;
	}
	.sllfra-card,
	.sllfra-results-header,
	.sllfra-domain-card {
		break-inside: avoid;
		page-break-inside: avoid;
	}
	.sllfra-shell {
		max-width: 100% !important;
	}
}

/* Applied by JS immediately before the html2canvas capture used for the
   "Download my report" PDF button - keeps the exported PDF clean and adds
   left/right breathing room around the whole page. */
body.sllfra-capturing {
	padding-left: 32px !important;
	padding-right: 32px !important;
}
body.sllfra-capturing #sllfra-download-btn,
body.sllfra-capturing #sllfra-book-review,
body.sllfra-capturing .sllfra-progress,
body.sllfra-capturing .sllfra-step:not(.sllfra-step-active) {
	display: none !important;
}
body.sllfra-capturing .sllfra-shell {
	max-width: 100% !important;
}
