.bfsg-app {
	--bfsg-accent: #2563eb;
	--bfsg-border: #e5e7eb;
	--bfsg-muted: #6b7280;
	--bfsg-fg: #111827;
	--bfsg-bg-secondary: #f8fafc;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--bfsg-fg);
	max-width: 960px;
	margin: 0 auto;
}

.bfsg-app * {
	box-sizing: border-box;
}

.bfsg-card {
	border: 1px solid var(--bfsg-border);
	background: #fff;
	border-radius: 4px;
	padding: 24px;
	margin-bottom: 24px;
}

.bfsg-step-label {
	font-family: monospace;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--bfsg-accent);
	text-transform: uppercase;
}

.bfsg-card h2 {
	font-size: 18px;
	font-weight: 800;
	margin: 4px 0 4px;
}

.bfsg-card p.bfsg-desc {
	color: #374151;
	font-size: 14px;
	margin: 0 0 16px;
}

.bfsg-field {
	margin-bottom: 18px;
}

.bfsg-field label.bfsg-label {
	display: block;
	font-family: monospace;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--bfsg-muted);
	margin-bottom: 6px;
}

.bfsg-field .bfsg-required {
	color: var(--bfsg-accent);
}

.bfsg-input {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	padding: 12px 14px;
	font-size: 14px;
}

.bfsg-input:focus {
	outline: none;
	border-color: var(--bfsg-accent);
	box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

.bfsg-legend {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 10px;
	display: block;
}

.bfsg-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.bfsg-radio-btn {
	border: 1px solid #d1d5db;
	background: #fff;
	border-radius: 4px;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all .15s ease;
}

.bfsg-radio-btn:hover {
	border-color: var(--bfsg-fg);
}

.bfsg-radio-btn.is-active {
	border-color: var(--bfsg-accent);
	background: var(--bfsg-accent);
	color: #fff;
}

.bfsg-submit {
	width: 100%;
	background: var(--bfsg-accent);
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 16px 24px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: filter .15s ease;
}

.bfsg-submit:hover {
	filter: brightness(1.1);
}

.bfsg-submit:disabled {
	background: #9ca3af;
	cursor: not-allowed;
	filter: none;
}

.bfsg-hint {
	font-family: monospace;
	font-size: 10px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #4b5563;
	line-height: 1.6;
}

.bfsg-sidebar-list {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	font-size: 14px;
}

.bfsg-sidebar-list li {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin-bottom: 10px;
}

.bfsg-sidebar-list li::before {
	content: "✓";
	color: var(--bfsg-accent);
	font-weight: 700;
	flex-shrink: 0;
}

/* Scanning */
.bfsg-scanning {
	text-align: center;
	padding: 40px 24px;
}

.bfsg-progress-wrap {
	position: relative;
	width: 176px;
	height: 176px;
	margin: 0 auto 32px;
}

.bfsg-progress-wrap svg {
	transform: rotate(-90deg);
}

.bfsg-progress-track {
	stroke: var(--bfsg-bg-secondary);
}

.bfsg-progress-bar {
	stroke: var(--bfsg-accent);
	stroke-linecap: round;
	transition: stroke-dashoffset .15s linear;
}

.bfsg-progress-text {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.bfsg-progress-text .bfsg-pct {
	font-size: 28px;
	font-weight: 800;
}

.bfsg-progress-text .bfsg-eta {
	font-family: monospace;
	font-size: 10px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--bfsg-muted);
}

.bfsg-scan-steps {
	list-style: none;
	max-width: 420px;
	margin: 0 auto;
	padding: 0;
	text-align: left;
	font-size: 14px;
}

.bfsg-scan-steps li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.bfsg-scan-steps .bfsg-scan-dot {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	border-radius: 999px;
	background: var(--bfsg-bg-secondary);
	color: var(--bfsg-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: monospace;
	font-size: 10px;
	font-weight: 700;
}

.bfsg-scan-steps li.is-done .bfsg-scan-dot {
	background: var(--bfsg-accent);
	color: #fff;
}

.bfsg-scan-steps li.is-active .bfsg-scan-dot {
	background: rgba(37,99,235,.1);
	color: var(--bfsg-accent);
}

.bfsg-scan-steps li.is-active span.bfsg-scan-label {
	font-weight: 600;
}

/* BFSG relevance box */
.bfsg-legal-box {
	border-radius: 4px;
	border: 1px solid;
	padding: 24px;
	margin-bottom: 24px;
}

.bfsg-legal-box.likely { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.bfsg-legal-box.possibly { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.bfsg-legal-box.unlikely { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }

.bfsg-legal-box .bfsg-legal-label {
	font-family: monospace;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .8;
	margin-bottom: 6px;
}

.bfsg-legal-box .bfsg-legal-value {
	font-size: 24px;
	font-weight: 800;
	margin-bottom: 8px;
}

/* Lead capture / confirmation */
.bfsg-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(17,24,39,.4);
	backdrop-filter: blur(2px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 24px;
}

.bfsg-modal {
	background: #fff;
	border-radius: 6px;
	max-width: 640px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.bfsg-modal-header {
	border-bottom: 1px solid var(--bfsg-border);
	background: rgba(37,99,235,.05);
	padding: 20px 28px;
}

.bfsg-modal-header h3 {
	font-size: 24px;
	font-weight: 800;
	margin: 4px 0 8px;
}

.bfsg-modal-body {
	padding: 24px 28px;
}

.bfsg-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media (max-width: 560px) {
	.bfsg-grid-2 { grid-template-columns: 1fr; }
}

.bfsg-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	color: var(--bfsg-muted);
	margin: 16px 0;
}

.bfsg-consent input { margin-top: 3px; }

.bfsg-error-box {
	border: 1px solid #fecaca;
	background: #fef2f2;
	color: #991b1b;
	border-radius: 4px;
	padding: 10px 14px;
	font-size: 14px;
	margin-bottom: 14px;
}

.bfsg-success {
	text-align: center;
	padding: 48px 24px;
}

.bfsg-success .bfsg-success-icon {
	width: 64px;
	height: 64px;
	border-radius: 999px;
	background: #ecfdf5;
	color: #059669;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	font-size: 32px;
}

.bfsg-success h2 {
	font-size: 24px;
	font-weight: 800;
	margin-bottom: 10px;
}

.bfsg-success p {
	color: var(--bfsg-muted);
	max-width: 480px;
	margin: 0 auto 20px;
}

.bfsg-btn-secondary {
	display: inline-block;
	border: 1px solid var(--bfsg-fg);
	color: var(--bfsg-fg);
	background: #fff;
	border-radius: 4px;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.bfsg-btn-secondary:hover {
	background: var(--bfsg-fg);
	color: #fff;
}

.bfsg-hp-field {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
