/* FESCO Bill Checker — glassy, premium, professional. No theme dependency. */

.fbc-wrap {
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	padding: clamp(22px, 4vw, 48px);
	background:
		radial-gradient(900px 480px at 88% -10%, rgba(64, 140, 255, .35), rgba(64, 140, 255, 0) 60%),
		radial-gradient(700px 420px at -10% 110%, rgba(255, 184, 0, .16), rgba(255, 184, 0, 0) 55%),
		linear-gradient(135deg, #081c42 0%, #0d2f66 55%, #0a2650 100%);
	font-family: inherit;
	color: #fff;
}

.fbc-glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	pointer-events: none;
}
.fbc-glow-a { width: 340px; height: 340px; top: -120px; right: -60px; background: rgba(70, 150, 255, .35); }
.fbc-glow-b { width: 260px; height: 260px; bottom: -110px; left: -40px; background: rgba(255, 184, 0, .18); }

.fbc-grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.02fr .98fr;
	gap: clamp(20px, 3.5vw, 44px);
	align-items: center;
}

/* ---------- Glass card ---------- */
.fbc-card {
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 22px;
	padding: clamp(22px, 3vw, 32px);
	-webkit-backdrop-filter: blur(18px) saturate(150%);
	backdrop-filter: blur(18px) saturate(150%);
	box-shadow: 0 24px 60px rgba(2, 10, 30, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* ---------- Toggle ---------- */
.fbc-toggle {
	display: flex;
	gap: 6px;
	background: rgba(255, 255, 255, .10);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 999px;
	padding: 5px;
	margin-bottom: 22px;
}
.fbc-toggle-btn {
	flex: 1;
	appearance: none;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, .82);
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	padding: 10px 8px;
	border-radius: 999px;
	cursor: pointer;
	transition: background .22s ease, color .22s ease, box-shadow .22s ease;
}
.fbc-toggle-btn:hover { color: #fff; }
.fbc-toggle-btn.is-active {
	background: #ffffff;
	color: #0d2a5e;
	box-shadow: 0 6px 18px rgba(2, 10, 30, .35);
}

/* ---------- Form ---------- */
.fbc-label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .75);
	margin-bottom: 9px;
}
.fbc-input {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: .06em;
	color: #ffffff;
	background: rgba(255, 255, 255, .10);
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 14px;
	padding: 15px 18px;
	outline: none;
	transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.fbc-input::placeholder { color: rgba(255, 255, 255, .45); font-weight: 500; letter-spacing: .02em; }
.fbc-input:focus {
	border-color: #ffb800;
	background: rgba(255, 255, 255, .14);
	box-shadow: 0 0 0 4px rgba(255, 184, 0, .22);
}
.fbc-hint {
	margin: 10px 2px 0;
	font-size: 13.5px;
	color: rgba(255, 255, 255, .62);
}
.fbc-error {
	margin: 14px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: #ffb4b4;
	background: rgba(255, 70, 70, .13);
	border: 1px solid rgba(255, 120, 120, .35);
	border-radius: 10px;
	padding: 10px 14px;
}

/* ---------- Buttons ---------- */
.fbc-btn {
	display: block;
	width: 100%;
	appearance: none;
	border: 0;
	font: inherit;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: .01em;
	border-radius: 14px;
	padding: 15px 20px;
	margin-top: 20px;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.fbc-btn:active { transform: translateY(1px) scale(.995); }
.fbc-btn-primary {
	background: linear-gradient(135deg, #ffc61a 0%, #ff9d00 100%);
	color: #231a02;
	box-shadow: 0 12px 28px rgba(255, 157, 0, .35);
}
.fbc-btn-primary:hover { filter: brightness(1.05); box-shadow: 0 16px 34px rgba(255, 157, 0, .42); }
.fbc-btn-green {
	background: linear-gradient(135deg, #22c05e 0%, #128a41 100%);
	color: #ffffff;
	box-shadow: 0 12px 28px rgba(18, 138, 65, .38);
}
.fbc-btn-green:hover { filter: brightness(1.06); }

.fbc-note {
	margin: 14px 0 0;
	text-align: center;
	font-size: 13px;
	color: rgba(255, 255, 255, .55);
}

/* ---------- Loading / result ---------- */
.fbc-view[data-fbc-view="loading"],
.fbc-view[data-fbc-view="result"] { text-align: center; padding: 18px 0 8px; }
.fbc-spinner {
	width: 52px; height: 52px;
	margin: 6px auto 18px;
	border-radius: 50%;
	border: 4px solid rgba(255, 255, 255, .18);
	border-top-color: #ffb800;
	animation: fbc-spin .8s linear infinite;
}
@keyframes fbc-spin { to { transform: rotate(360deg); } }
.fbc-success {
	width: 72px; height: 72px;
	margin: 0 auto 16px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	color: #2fe07a;
	background: rgba(34, 192, 94, .14);
	border: 1px solid rgba(34, 192, 94, .4);
	box-shadow: 0 10px 30px rgba(18, 138, 65, .25);
}
.fbc-status-text { font-size: 18px; font-weight: 700; margin: 0; color: #fff; }
.fbc-result-form { margin: 0; }
.fbc-reset {
	appearance: none;
	background: transparent;
	border: 0;
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	color: rgba(255, 255, 255, .75);
	margin-top: 16px;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.fbc-reset:hover { color: #fff; }

/* ---------- Sample bill side ---------- */
.fbc-side { display: flex; justify-content: center; }
.fbc-sample {
	width: 100%;
	max-width: 520px;
	height: auto;
	display: block;
	filter: drop-shadow(0 30px 50px rgba(2, 10, 30, .5));
	animation: fbc-float 6s ease-in-out infinite;
}
@keyframes fbc-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-9px); }
}
@media (prefers-reduced-motion: reduce) {
	.fbc-sample, .fbc-spinner { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
	.fbc-grid { grid-template-columns: 1fr; }
	.fbc-side { order: 2; }
	.fbc-sample { max-width: 440px; }
}
