/* SBFC 정책자금 자가진단 — 프론트 스타일 (플러그인 스코프) */

.sbfc-fc {
	--sbfc-primary: #1A3A6B;
	--sbfc-accent: #E87722;
	--sbfc-secondary: #EAF0F8;
	--sbfc-text: #1f2937;
	--sbfc-muted: #6b7280;
	--sbfc-border: #d8e0ec;
	--sbfc-radius: 14px;

	font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--sbfc-text);
	max-width: 720px;
	margin: 0 auto;
	padding: 8px;
	box-sizing: border-box;
}

.sbfc-fc *,
.sbfc-fc *::before,
.sbfc-fc *::after {
	box-sizing: border-box;
}

/* ---------- 뱃지 ---------- */

.sbfc-fc__badge-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.sbfc-fc__badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.6;
}

.sbfc-fc__badge--private {
	background: var(--sbfc-primary);
	color: #fff;
}

.sbfc-fc__badge--warn {
	background: #fff4e8;
	color: #b45309;
	border: 1px solid #f5c893;
}

.sbfc-fc__badge-note {
	font-size: 12px;
	color: var(--sbfc-muted);
}

/* ---------- 인트로 ---------- */

.sbfc-fc__intro {
	background: var(--sbfc-secondary);
	border-radius: var(--sbfc-radius);
	padding: 40px 24px;
	text-align: center;
}

.sbfc-fc__title {
	margin: 0 0 12px;
	font-size: 26px;
	font-weight: 800;
	color: var(--sbfc-primary);
}

.sbfc-fc__lead {
	margin: 0 auto 24px;
	max-width: 480px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--sbfc-text);
}

.sbfc-fc__intro-note {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--sbfc-muted);
}

/* ---------- 버튼 ---------- */

.sbfc-fc__btn {
	display: inline-block;
	border: 0;
	border-radius: 10px;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	transition: opacity 0.15s ease, transform 0.1s ease;
	line-height: 1.5;
}

.sbfc-fc__btn:hover {
	opacity: 0.9;
	text-decoration: none;
}

.sbfc-fc__btn:active {
	transform: translateY(1px);
}

.sbfc-fc__btn--primary {
	background: var(--sbfc-primary);
	color: #fff;
}

.sbfc-fc__btn--accent {
	background: var(--sbfc-accent);
	color: #fff;
}

.sbfc-fc__btn--ghost {
	background: transparent;
	color: var(--sbfc-muted);
	border: 1px solid var(--sbfc-border);
}

.sbfc-fc__btn--gray {
	background: #e5e7eb;
	color: #374151;
}

.sbfc-fc__btn--lg {
	padding: 15px 32px;
	font-size: 16px;
}

.sbfc-fc__btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ---------- 진행률 ---------- */

.sbfc-fc__progress {
	height: 8px;
	background: var(--sbfc-secondary);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 24px;
}

.sbfc-fc__progress-bar {
	display: block;
	height: 100%;
	width: 0;
	background: var(--sbfc-accent);
	border-radius: 999px;
	transition: width 0.3s ease;
}

/* ---------- 위저드 ---------- */

.sbfc-fc__wizard {
	padding: 8px 0;
}

.sbfc-fc__fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

.sbfc-fc__question {
	font-size: 20px;
	font-weight: 800;
	color: var(--sbfc-primary);
	padding: 0;
	margin-bottom: 4px;
	line-height: 1.5;
}

.sbfc-fc__counter {
	margin: 4px 0 20px;
	font-size: 13px;
	color: var(--sbfc-muted);
}

.sbfc-fc__options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sbfc-fc__option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 1.5px solid var(--sbfc-border);
	border-radius: 10px;
	cursor: pointer;
	background: #fff;
	transition: border-color 0.15s ease, background 0.15s ease;
	font-size: 15px;
	margin: 0;
}

.sbfc-fc__option:hover {
	border-color: var(--sbfc-primary);
	background: var(--sbfc-secondary);
}

.sbfc-fc__option:has(input:checked) {
	border-color: var(--sbfc-accent);
	background: #fff7f0;
}

.sbfc-fc__option-input {
	accent-color: var(--sbfc-accent);
	width: 18px;
	height: 18px;
	flex: none;
	margin: 0;
}

.sbfc-fc__option-label {
	line-height: 1.5;
}

.sbfc-fc__nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 24px;
}

.sbfc-fc__nav .sbfc-fc__btn--primary {
	margin-left: auto;
}

/* ---------- 로딩 ---------- */

.sbfc-fc__loading {
	text-align: center;
	padding: 64px 16px;
	color: var(--sbfc-muted);
	font-size: 15px;
}

.sbfc-fc__spinner {
	display: inline-block;
	width: 40px;
	height: 40px;
	border: 4px solid var(--sbfc-secondary);
	border-top-color: var(--sbfc-accent);
	border-radius: 50%;
	animation: sbfc-fc-spin 0.9s linear infinite;
	margin-bottom: 16px;
}

@keyframes sbfc-fc-spin {
	to { transform: rotate(360deg); }
}

/* ---------- 로딩 단계별 메시지 ---------- */

.sbfc-fc__loading-steps {
	list-style: none;
	margin: 10px auto 0;
	padding: 0;
	max-width: 300px;
	text-align: left;
}

.sbfc-fc__loading-step {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
	font-size: 14.5px;
	color: var(--sbfc-muted);
	opacity: 0.35;
	transition: opacity 0.3s ease, color 0.3s ease;
}

.sbfc-fc__loading-step--active {
	opacity: 1;
	color: var(--sbfc-primary);
	font-weight: 700;
}

.sbfc-fc__loading-step--done {
	opacity: 1;
	color: var(--sbfc-text);
	font-weight: 400;
}

.sbfc-fc__loading-ico {
	position: relative;
	width: 20px;
	height: 20px;
	flex: none;
	border: 2px solid var(--sbfc-border);
	border-radius: 50%;
	transition: border-color 0.3s ease, background 0.3s ease;
	box-sizing: border-box;
}

.sbfc-fc__loading-step--active .sbfc-fc__loading-ico {
	border-color: var(--sbfc-accent);
	animation: sbfc-fc-pulse 0.9s ease-in-out infinite;
}

@keyframes sbfc-fc-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(232, 119, 34, 0.4); }
	50% { box-shadow: 0 0 0 6px rgba(232, 119, 34, 0); }
}

.sbfc-fc__loading-step--done .sbfc-fc__loading-ico {
	background: var(--sbfc-accent);
	border-color: var(--sbfc-accent);
	animation: none;
}

.sbfc-fc__loading-step--done .sbfc-fc__loading-ico::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 2px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* ---------- 결과 ---------- */

.sbfc-fc__result-head {
	position: relative;
	overflow: hidden;
	background: var(--sbfc-primary);
	color: #fff;
	border-radius: var(--sbfc-radius);
	padding: 32px 24px;
	text-align: center;
	margin-bottom: 20px;
}

/* ---------- 등급별 연출 티어 ---------- */

/* high (A·B): 축하 연출 — 골드 그라데이션 + 샤인 스윕 */
.sbfc-fc__result--tier-high .sbfc-fc__result-head {
	background: linear-gradient(135deg, #142c54 0%, var(--sbfc-primary) 45%, #2d5aa8 100%);
	box-shadow: 0 14px 44px rgba(26, 58, 107, 0.35);
	border: 1px solid rgba(245, 197, 24, 0.45);
}

.sbfc-fc__result--tier-high .sbfc-fc__result-head::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 40%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
	transform: translateX(-120%) skewX(-18deg);
	animation: sbfc-fc-shine 2.2s ease 0.9s 2;
	pointer-events: none;
}

@keyframes sbfc-fc-shine {
	to { transform: translateX(320%) skewX(-18deg); }
}

.sbfc-fc__result--tier-high .sbfc-fc__result-amount--done {
	color: #ffe08a;
	text-shadow: 0 2px 18px rgba(245, 197, 24, 0.5);
}

.sbfc-fc__result--tier-high .sbfc-fc__result-eyebrow {
	color: #ffe08a;
	font-weight: 700;
	opacity: 1;
}

/* low (D): 차분한 톤 — 과장 없이 안내 중심 */
.sbfc-fc__result--tier-low .sbfc-fc__result-head {
	background: #44546f;
}

/* ---------- 콘페티 (high 티어 전용) ---------- */

.sbfc-fc__confetti {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.sbfc-fc__confetti span {
	position: absolute;
	top: -14px;
	width: 8px;
	height: 13px;
	border-radius: 2px;
	opacity: 0;
	animation-name: sbfc-fc-confetti;
	animation-timing-function: ease-in;
	animation-fill-mode: forwards;
}

@keyframes sbfc-fc-confetti {
	0% {
		opacity: 1;
		transform: translateY(0) rotate(0deg);
	}
	100% {
		opacity: 0;
		transform: translateY(380px) rotate(560deg);
	}
}

.sbfc-fc__result-eyebrow {
	margin: 0 0 8px;
	font-size: 14px;
	opacity: 0.85;
}

.sbfc-fc__result-amount {
	margin: 0;
	font-size: 32px;
	font-weight: 900;
	letter-spacing: -0.5px;
}

.sbfc-fc__result-rate {
	margin: 10px 0 0;
	font-size: 15px;
	color: #ffd9b8;
	font-weight: 700;
}

.sbfc-fc__result-title {
	font-size: 24px;
	font-weight: 800;
	color: var(--sbfc-primary);
	margin: 8px 0 4px;
}

.sbfc-fc__result-subtitle {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 8px;
}

.sbfc-fc__result-desc {
	font-size: 15px;
	line-height: 1.75;
	color: var(--sbfc-text);
	margin: 0 0 16px;
}

.sbfc-fc__result-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.sbfc-fc__notice {
	background: var(--sbfc-secondary);
	border-radius: 10px;
	padding: 16px;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 20px;
}

.sbfc-fc__notice p {
	margin: 0 0 8px;
}

.sbfc-fc__notice-link {
	color: var(--sbfc-primary);
	font-weight: 700;
	text-decoration: underline;
}

.sbfc-fc__section-title {
	font-size: 17px;
	font-weight: 800;
	color: var(--sbfc-primary);
	margin: 28px 0 12px;
}

.sbfc-fc__reason-list {
	margin: 0;
	padding-left: 20px;
	font-size: 14px;
	line-height: 1.9;
	color: var(--sbfc-text);
}

/* ---------- 프로그램 카드 ---------- */

.sbfc-fc__program-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
}

.sbfc-fc__program-card,
.sbfc-fc__report-card {
	border: 1.5px solid var(--sbfc-border);
	border-radius: 12px;
	padding: 18px;
	background: #fff;
}

.sbfc-fc__program-agency {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	color: var(--sbfc-accent);
	margin-bottom: 6px;
}

.sbfc-fc__program-name {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 800;
	color: var(--sbfc-primary);
}

.sbfc-fc__program-summary {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.65;
	color: var(--sbfc-muted);
}

/* ---------- 상세 리포트 / 게이팅 ---------- */

.sbfc-fc__report-wrap {
	position: relative;
	margin-top: 8px;
}

.sbfc-fc__report {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sbfc-fc__report--blurred {
	filter: blur(6px);
	user-select: none;
	pointer-events: none;
}

.sbfc-fc__report-sub {
	margin: 14px 0 6px;
	font-size: 13px;
	font-weight: 800;
	color: var(--sbfc-text);
}

.sbfc-fc__report-list {
	margin: 0;
	padding-left: 18px;
	font-size: 13.5px;
	line-height: 1.8;
	color: var(--sbfc-text);
}

/* ---------- 리드 폼 ---------- */

.sbfc-fc__lead-form {
	position: relative;
	margin-top: -40px;
	background: #fff;
	border: 2px solid var(--sbfc-accent);
	border-radius: var(--sbfc-radius);
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-shadow: 0 12px 32px rgba(26, 58, 107, 0.12);
}

.sbfc-fc__lead-title {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	color: var(--sbfc-primary);
}

.sbfc-fc__lead-desc {
	margin: 0;
	font-size: 13.5px;
	color: var(--sbfc-muted);
	line-height: 1.6;
}

.sbfc-fc__input {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--sbfc-border);
	border-radius: 8px;
	/* 16px 미만이면 iOS Safari 가 포커스 시 화면을 강제 확대함 */
	font-size: 16px;
	font-family: inherit;
}

.sbfc-fc__input:focus {
	outline: none;
	border-color: var(--sbfc-primary);
}

.sbfc-fc__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.sbfc-fc__consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13.5px;
	line-height: 1.5;
	cursor: pointer;
	margin: 0;
}

.sbfc-fc__consent input {
	accent-color: var(--sbfc-accent);
	margin-top: 2px;
	flex: none;
}

.sbfc-fc__privacy-toggle {
	background: none;
	border: 0;
	padding: 0;
	font-size: 12.5px;
	color: var(--sbfc-muted);
	text-decoration: underline;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
}

.sbfc-fc__privacy-detail {
	margin: 0;
	padding: 12px;
	background: var(--sbfc-secondary);
	border-radius: 8px;
	font-size: 12.5px;
	line-height: 1.7;
	white-space: pre-wrap;
	font-family: inherit;
	color: var(--sbfc-text);
}

.sbfc-fc__form-error {
	margin: 0;
	font-size: 13.5px;
	color: #dc2626;
	font-weight: 700;
}

/* ---------- 희망 규모 적합도 노트 ---------- */

.sbfc-fc__fit {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: #f4f9f4;
	border: 1.5px solid #cde5cd;
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 16px;
	font-size: 14px;
	line-height: 1.7;
}

.sbfc-fc__fit-icon {
	color: #1a7f37;
	font-weight: 800;
	flex: none;
	margin-top: 1px;
}

.sbfc-fc__fit p {
	margin: 0;
}

/* ---------- 리드 폼 혜택·신뢰 문구 ---------- */

.sbfc-fc__lead-benefits {
	list-style: none;
	margin: 0;
	padding: 12px 14px;
	background: var(--sbfc-secondary);
	border-radius: 10px;
	font-size: 13.5px;
	line-height: 1.8;
	color: var(--sbfc-text);
}

.sbfc-fc__lead-benefits li::before {
	content: '✓ ';
	color: var(--sbfc-accent);
	font-weight: 800;
}

.sbfc-fc__lead-trust {
	margin: 0;
	font-size: 12px;
	color: var(--sbfc-muted);
	line-height: 1.6;
}

/* ---------- 프로그램 개수 안내 ---------- */

.sbfc-fc__pcount {
	text-align: center;
	background: #fff7f0;
	border: 1.5px solid #f5c893;
	border-radius: var(--sbfc-radius);
	padding: 22px 18px;
	margin: 24px 0 4px;
}

.sbfc-fc__pcount-text {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--sbfc-text);
	line-height: 1.6;
}

.sbfc-fc__pcount-num {
	color: var(--sbfc-accent);
	font-size: 26px;
	font-weight: 900;
}

.sbfc-fc__pcount-sub {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--sbfc-muted);
}

/* ---------- 접수 완료 ---------- */

.sbfc-fc__done {
	text-align: center;
	background: #fff;
	border: 2px solid #1a7f37;
	border-radius: var(--sbfc-radius);
	padding: 28px 20px;
	animation: sbfc-fc-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sbfc-fc__done-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #1a7f37;
	color: #fff;
	font-size: 22px;
	font-weight: 900;
	margin-bottom: 10px;
}

.sbfc-fc__done-title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 800;
	color: #1a7f37;
}

.sbfc-fc__done-desc {
	margin: 0 0 16px;
	font-size: 14.5px;
	line-height: 1.75;
	color: var(--sbfc-text);
}

.sbfc-fc__done .sbfc-fc__ai {
	text-align: left;
	margin-top: 8px;
}

/* ---------- 요청사항 textarea ---------- */

.sbfc-fc__textarea {
	resize: vertical;
	min-height: 76px;
	line-height: 1.6;
}

/* ---------- 상담 CTA 혜택 ---------- */

.sbfc-fc__cta-title {
	margin: 0 0 6px;
	font-size: 19px;
	font-weight: 800;
	color: var(--sbfc-primary);
}

.sbfc-fc__cta-benefits {
	list-style: none;
	margin: 0 auto 18px;
	padding: 0;
	max-width: 420px;
	text-align: left;
	font-size: 14px;
	line-height: 1.9;
	color: var(--sbfc-text);
}

.sbfc-fc__cta-benefits li::before {
	content: '✓ ';
	color: var(--sbfc-accent);
	font-weight: 800;
}

.sbfc-fc__cta-note {
	margin: 12px 0 0;
	font-size: 12px;
	color: var(--sbfc-muted);
}

/* 테마의 a 색상 규칙(링크·visited·hover)이 버튼 글자색을 덮어쓰지 않도록 강제 */
.sbfc-fc .sbfc-fc__cta-btn,
.sbfc-fc .sbfc-fc__cta-btn:link,
.sbfc-fc .sbfc-fc__cta-btn:visited,
.sbfc-fc .sbfc-fc__cta-btn:hover,
.sbfc-fc .sbfc-fc__cta-btn:focus,
.sbfc-fc .sbfc-fc__cta-btn:active,
.sbfc-fc a.sbfc-fc__btn--primary,
.sbfc-fc a.sbfc-fc__btn--primary:link,
.sbfc-fc a.sbfc-fc__btn--primary:visited,
.sbfc-fc a.sbfc-fc__btn--primary:hover,
.sbfc-fc a.sbfc-fc__btn--primary:focus,
.sbfc-fc a.sbfc-fc__btn--primary:active,
.sbfc-fc a.sbfc-fc__btn--accent,
.sbfc-fc a.sbfc-fc__btn--accent:link,
.sbfc-fc a.sbfc-fc__btn--accent:visited,
.sbfc-fc a.sbfc-fc__btn--accent:hover,
.sbfc-fc a.sbfc-fc__btn--accent:focus,
.sbfc-fc a.sbfc-fc__btn--accent:active {
	color: #fff !important;
	text-decoration: none !important;
}

.sbfc-fc .sbfc-fc__cta-btn {
	font-weight: 900 !important;
	letter-spacing: 0.01em;
}

/* ---------- 리포트 정보 칩·절차 ---------- */

.sbfc-fc__info-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.sbfc-fc__info-chip {
	display: inline-block;
	background: var(--sbfc-secondary);
	border-radius: 8px;
	padding: 5px 10px;
	font-size: 12.5px;
	color: var(--sbfc-text);
	line-height: 1.5;
}

.sbfc-fc__info-chip b {
	color: var(--sbfc-primary);
	margin-right: 2px;
}

.sbfc-fc__report-steps {
	margin: 0;
	padding: 0 0 0 2px;
	counter-reset: sbfc-step;
	list-style: none;
	font-size: 13.5px;
	line-height: 1.85;
	color: var(--sbfc-text);
}

.sbfc-fc__report-steps li {
	counter-increment: sbfc-step;
	position: relative;
	padding-left: 30px;
	margin-bottom: 4px;
}

.sbfc-fc__report-steps li::before {
	content: counter(sbfc-step);
	position: absolute;
	left: 0;
	top: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--sbfc-primary);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ---------- AI 분석 % 진행 ---------- */

.sbfc-fc__ai-progress {
	text-align: center;
	padding: 10px 4px;
}

.sbfc-fc__ai-progress-title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 800;
	color: #4c3a8c;
}

.sbfc-fc__ai-progress-pct {
	margin: 6px 0 10px;
	font-size: 40px;
	font-weight: 900;
	color: #7c5cd6;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.sbfc-fc__ai-progress-track {
	height: 12px;
	background: #efeafd;
	border-radius: 999px;
	overflow: hidden;
	max-width: 360px;
	margin: 0 auto;
}

.sbfc-fc__ai-progress-bar {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #7c5cd6, #b39af0);
	border-radius: 999px;
	transition: width 0.25s ease;
	box-shadow: 0 0 10px rgba(124, 92, 214, 0.5);
}

.sbfc-fc__ai-progress-msg {
	margin: 12px 0 0;
	font-size: 13.5px;
	color: var(--sbfc-muted);
	min-height: 1.4em;
}

/* ---------- AI 맞춤 분석 ---------- */

.sbfc-fc__ai {
	position: relative;
	border: 1.5px solid #c7b8f5;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 14px;
	background: linear-gradient(180deg, #faf8ff 0%, #ffffff 60%);
	animation: sbfc-fc-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sbfc-fc__ai-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.sbfc-fc__ai-icon {
	color: #7c5cd6;
	font-size: 16px;
}

.sbfc-fc__ai-title {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	color: #4c3a8c;
}

.sbfc-fc__ai-badge {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: #7c5cd6;
	border: 1px solid #c7b8f5;
	border-radius: 999px;
	padding: 1px 8px;
}

.sbfc-fc__ai-summary {
	margin: 0 0 14px;
	font-size: 14.5px;
	line-height: 1.75;
	color: var(--sbfc-text);
	font-weight: 500;
}

.sbfc-fc__ai-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 6px;
}

.sbfc-fc__ai-sub {
	margin: 12px 0 6px;
	font-size: 13px;
	font-weight: 800;
	color: #4c3a8c;
}

.sbfc-fc__ai-sub--good {
	color: #1a7f37;
}

.sbfc-fc__ai-sub--warn {
	color: #b45309;
}

.sbfc-fc__ai-list {
	margin: 0;
	padding-left: 18px;
	font-size: 13.5px;
	line-height: 1.8;
	color: var(--sbfc-text);
}

.sbfc-fc__ai-list--check {
	list-style: none;
	padding-left: 2px;
}

.sbfc-fc__ai-list--check li::before {
	content: '☐ ';
	color: #7c5cd6;
}

.sbfc-fc__ai-tip {
	border-left: 3px solid #c7b8f5;
	padding: 4px 0 4px 12px;
	margin: 8px 0;
}

.sbfc-fc__ai-tip strong {
	font-size: 13.5px;
	color: var(--sbfc-primary);
}

.sbfc-fc__ai-tip p {
	margin: 4px 0 0;
	font-size: 13.5px;
	line-height: 1.7;
	color: var(--sbfc-muted);
}

.sbfc-fc__ai-disclaimer {
	margin: 14px 0 0;
	padding-top: 10px;
	border-top: 1px dashed #d9cef5;
	font-size: 11.5px;
	color: var(--sbfc-muted);
	line-height: 1.6;
}

@media (max-width: 480px) {
	.sbfc-fc__ai-cols {
		grid-template-columns: 1fr;
	}
}

/* ---------- CTA / 면책 ---------- */

.sbfc-fc__cta {
	text-align: center;
	background: var(--sbfc-secondary);
	border-radius: var(--sbfc-radius);
	padding: 28px 20px;
	margin: 28px 0 12px;
}

.sbfc-fc__cta-desc {
	margin: 0 0 16px;
	font-size: 15px;
	font-weight: 700;
	color: var(--sbfc-primary);
}

.sbfc-fc__restart {
	display: block;
	margin: 8px auto 0;
}

.sbfc-fc__disclaimer {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--sbfc-border);
	font-size: 12px;
	line-height: 1.7;
	color: var(--sbfc-muted);
}

.sbfc-fc__disclaimer p {
	margin: 0;
}

/* ---------- 결과 연출 (순차 등장 · 카운트업) ---------- */

@keyframes sbfc-fc-fade-up {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes sbfc-fc-pop {
	0% { transform: scale(1); }
	45% { transform: scale(1.08); }
	100% { transform: scale(1); }
}

.sbfc-fc__reveal {
	animation: sbfc-fc-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sbfc-fc__result-amount {
	min-height: 1.3em;
	font-variant-numeric: tabular-nums;
}

.sbfc-fc__result-amount--done {
	animation: sbfc-fc-pop 0.45s ease;
	color: #ffd9b8;
	text-shadow: 0 2px 14px rgba(232, 119, 34, 0.45);
}

/* ---------- 한도 범위 밴드 차트 (결과 헤드) ---------- */

.sbfc-fc__band {
	margin-top: 22px;
}

.sbfc-fc__band-track {
	position: relative;
	height: 14px;
	background: rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	overflow: hidden;
}

.sbfc-fc__band-fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 0;
	background: linear-gradient(90deg, var(--sbfc-accent), #ffb877);
	border-radius: 999px;
	box-shadow: 0 0 12px rgba(232, 119, 34, 0.7);
	transition: left 1.1s cubic-bezier(0.22, 1, 0.36, 1), width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: 0.5s;
}

.sbfc-fc__band-labels {
	display: flex;
	justify-content: space-between;
	margin-top: 6px;
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.75);
}

.sbfc-fc__band-labels--muted {
	color: var(--sbfc-muted);
}

/* ---------- 산정 과정 바 차트 ---------- */

.sbfc-fc__chart {
	background: #fff;
	border: 1.5px solid var(--sbfc-border);
	border-radius: 12px;
	padding: 18px;
	margin-bottom: 4px;
}

.sbfc-fc__chart .sbfc-fc__section-title {
	margin: 0 0 14px;
}

.sbfc-fc__chart-row {
	display: grid;
	grid-template-columns: 150px 1fr 96px;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.sbfc-fc__chart-row:last-child {
	margin-bottom: 0;
}

.sbfc-fc__chart-label {
	font-size: 13px;
	color: var(--sbfc-muted);
	line-height: 1.4;
}

.sbfc-fc__chart-track {
	height: 18px;
	background: var(--sbfc-secondary);
	border-radius: 999px;
	overflow: hidden;
}

.sbfc-fc__chart-bar {
	display: block;
	height: 100%;
	width: 0;
	background: #9db6d8;
	border-radius: 999px;
	transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.sbfc-fc__chart-bar--final {
	background: linear-gradient(90deg, var(--sbfc-primary), var(--sbfc-accent));
	box-shadow: 0 2px 8px rgba(232, 119, 34, 0.35);
}

.sbfc-fc__chart-value {
	font-size: 13px;
	font-weight: 700;
	color: var(--sbfc-text);
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.sbfc-fc__chart-value--final {
	color: var(--sbfc-accent);
	font-weight: 800;
}

/* ---------- 금리 구간 바 ---------- */

.sbfc-fc__rate-track {
	position: relative;
	height: 14px;
	background: linear-gradient(90deg, #dcefdc 0%, var(--sbfc-secondary) 45%, #fde8d8 100%);
	border-radius: 999px;
	margin-top: 26px;
}

.sbfc-fc__rate-fill {
	position: absolute;
	top: -3px;
	bottom: -3px;
	left: 0;
	width: 0;
	background: var(--sbfc-primary);
	border: 2px solid #fff;
	border-radius: 999px;
	box-shadow: 0 2px 10px rgba(26, 58, 107, 0.35);
	transition: left 1s cubic-bezier(0.22, 1, 0.36, 1), width 1s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: 0.4s;
}

.sbfc-fc__rate-tag {
	position: absolute;
	bottom: calc(100% + 7px);
	left: 0;
	transform: translateX(-50%);
	background: var(--sbfc-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 6px;
	white-space: nowrap;
	opacity: 0;
	transition: left 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease 0.9s;
}

.sbfc-fc__rate-tag--show {
	opacity: 1;
}

.sbfc-fc__rate-tag::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: var(--sbfc-primary);
}

@media (prefers-reduced-motion: reduce) {
	.sbfc-fc__reveal,
	.sbfc-fc__result-amount--done,
	.sbfc-fc__confetti span,
	.sbfc-fc__result--tier-high .sbfc-fc__result-head::before,
	.sbfc-fc__loading-step--active .sbfc-fc__loading-ico {
		animation: none;
	}

	.sbfc-fc__band-fill,
	.sbfc-fc__chart-bar,
	.sbfc-fc__rate-fill,
	.sbfc-fc__rate-tag {
		transition: none;
	}
}

/* ---------- compact 스타일 ---------- */

.sbfc-fc--compact .sbfc-fc__intro {
	padding: 24px 16px;
}

.sbfc-fc--compact .sbfc-fc__title {
	font-size: 20px;
}

.sbfc-fc--compact .sbfc-fc__lead {
	font-size: 14px;
}

/* ---------- 모바일 (375px 기준 1문항 1화면) ---------- */

@media (max-width: 480px) {
	.sbfc-fc__question {
		font-size: 17px;
	}

	.sbfc-fc__option {
		padding: 12px 14px;
		font-size: 14px;
	}

	.sbfc-fc__result-amount {
		font-size: 26px;
	}

	.sbfc-fc__program-grid {
		grid-template-columns: 1fr;
	}

	.sbfc-fc__lead-form {
		padding: 18px;
	}

	.sbfc-fc__chart-row {
		grid-template-columns: 96px 1fr 78px;
		gap: 8px;
	}

	.sbfc-fc__chart-label,
	.sbfc-fc__chart-value {
		font-size: 11.5px;
	}
}
