/* Firearm Buyback Pro — front-end form
   Scoped under .fbp-wrap so it stays isolated from the active theme. */

.fbp-wrap {
	--fbp-accent: #ba170b;
	--fbp-accent-dark: #1b2740;
	--fbp-ink: #1f2933;
	--fbp-muted: #6b7785;
	--fbp-line: #d9dee5;
	--fbp-bg: #ffffff;
	--fbp-soft: #f5f7fa;
	--fbp-radius: 12px;
	max-width: 720px;
	margin: 0 auto;
	padding: 0;
	color: var(--fbp-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}
.fbp-wrap *,
.fbp-wrap *::before,
.fbp-wrap *::after { box-sizing: border-box; }

/* Header */
.fbp-head { text-align: center; margin-bottom: 22px; }
.fbp-title {
	font-size: 26px;
	line-height: 1.2;
	font-weight: 700;
	margin: 0 0 8px;
	color: var(--fbp-ink);
	letter-spacing: -0.01em;
}
.fbp-sub { margin: 0 auto; max-width: 520px; color: var(--fbp-muted); font-size: 15px; line-height: 1.5; }

/* Progress */
.fbp-progress {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 0;
	margin: 0 0 26px;
	counter-reset: fbp;
}
.fbp-progress-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	position: relative;
	color: var(--fbp-muted);
	font-size: 12.5px;
	font-weight: 600;
	text-align: center;
	min-width: 0;
}
.fbp-progress-step::before {
	content: "";
	position: absolute;
	top: 16px;
	left: -50%;
	width: 100%;
	height: 2px;
	background: var(--fbp-line);
	z-index: 0;
}
.fbp-progress-step:first-child::before { display: none; }
.fbp-progress-step.is-active::before { background: var(--fbp-accent); }
.fbp-dot {
	position: relative;
	z-index: 1;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--fbp-line);
	color: var(--fbp-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	margin-bottom: 8px;
	transition: all .2s ease;
}
.fbp-progress-step.is-active .fbp-dot {
	background: var(--fbp-accent);
	border-color: var(--fbp-accent);
	color: #fff;
}
.fbp-progress-step.is-current .fbp-dot {
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--fbp-accent) 18%, transparent);
}
.fbp-step-label { padding: 0 4px; }

/* Card body */
.fbp-form {
	background: var(--fbp-bg);
	border: 1px solid var(--fbp-line);
	border-radius: var(--fbp-radius);
	padding: 28px;
	box-shadow: 0 8px 30px rgba(31, 41, 51, 0.06);
}
.fbp-step { display: none; }
.fbp-step.is-active { display: block; animation: fbp-fade .25s ease; }
@keyframes fbp-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.fbp-step-head { margin-bottom: 18px; }
.fbp-step-title { font-size: 18px; font-weight: 700; margin: 0 0 4px; color: var(--fbp-ink); }
.fbp-step-desc { margin: 0; color: var(--fbp-muted); font-size: 14px; line-height: 1.5; }

.fbp-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.fbp-col-full { flex: 0 0 100%; max-width: 100%; }
.fbp-col-half { flex: 1 1 calc(50% - 8px); min-width: 220px; }

.fbp-field { display: flex; flex-direction: column; }
.fbp-label { font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--fbp-ink); }
.fbp-req { color: #c0392b; }

.fbp-field input[type="text"],
.fbp-field input[type="email"],
.fbp-field input[type="tel"],
.fbp-field input[type="number"],
.fbp-field input[type="file"],
.fbp-field select,
.fbp-field textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--fbp-line);
	border-radius: 9px;
	font-size: 15px;
	color: var(--fbp-ink);
	background: #fff;
	font-family: inherit;
	transition: border-color .15s ease, box-shadow .15s ease;
	line-height: 1.4;
}
.fbp-field textarea { resize: vertical; min-height: 96px; }
.fbp-field input:focus,
.fbp-field select:focus,
.fbp-field textarea:focus {
	outline: none;
	border-color: var(--fbp-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--fbp-accent) 16%, transparent);
}
.fbp-field input[type="file"] { padding: 9px 12px; background: var(--fbp-soft); cursor: pointer; }

.fbp-radios { display: flex; flex-wrap: wrap; gap: 10px; }
.fbp-radio {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 14px;
	border: 1px solid var(--fbp-line);
	border-radius: 9px;
	cursor: pointer;
	font-size: 14.5px;
	transition: border-color .15s ease, background .15s ease;
}
.fbp-radio:has(input:checked) { border-color: var(--fbp-accent); background: color-mix(in srgb, var(--fbp-accent) 8%, #fff); }

.fbp-error { color: #c0392b; font-size: 12.5px; margin-top: 5px; min-height: 0; }
.fbp-field.has-error input,
.fbp-field.has-error select,
.fbp-field.has-error textarea { border-color: #c0392b; }
.fbp-field.has-error .fbp-error { min-height: 16px; }

/* Nav */
.fbp-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.fbp-nav .fbp-next,
.fbp-nav .fbp-submit { margin-left: auto; }
.fbp-btn {
	appearance: none;
	border: none;
	border-radius: 10px;
	padding: 14px 30px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	background: var(--fbp-accent);
	color: #fff;
	font-family: inherit;
	box-shadow: 0 4px 14px rgba(186, 23, 11, .26);
	transition: filter .15s ease, transform .08s ease, box-shadow .15s ease;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.fbp-btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(186, 23, 11, .32); }
.fbp-btn:active { transform: translateY(1px); }
.fbp-btn-ghost {
	background: transparent;
	background-image: none;
	color: var(--fbp-muted);
	border: 1px solid var(--fbp-line);
	box-shadow: none;
}
.fbp-btn-ghost:hover { filter: none; transform: none; box-shadow: none; color: var(--fbp-ink); border-color: var(--fbp-muted); }
.fbp-btn[disabled] { opacity: .7; cursor: default; }

.fbp-spinner {
	width: 16px; height: 16px;
	border: 2px solid rgba(255,255,255,.45);
	border-top-color: #fff;
	border-radius: 50%;
	display: none;
	animation: fbp-spin .7s linear infinite;
}
.fbp-submit.is-loading .fbp-spinner { display: inline-block; }
.fbp-submit.is-loading .fbp-btn-text { opacity: .85; }
@keyframes fbp-spin { to { transform: rotate(360deg); } }

/* Messages */
.fbp-message {
	margin-top: 20px;
	padding: 38px 28px;
	border-radius: 16px;
	font-size: 15.5px;
	line-height: 1.55;
	text-align: center;
}
.fbp-message.is-success {
	background: #ffffff;
	border: 1px solid #e4e7eb;
	box-shadow: 0 12px 44px rgba(31, 41, 51, .10);
	color: #1f2933;
}
.fbp-success-text { margin: 0 auto; max-width: 470px; color: #52606d; font-size: 16px; }
.fbp-message.is-error {
	background: #fdecea;
	border: 1px solid #f5c2bc;
	color: #a02d20;
}
.fbp-check {
	width: 66px; height: 66px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: var(--fbp-accent);
	color: #fff;
	font-size: 32px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 22px rgba(186, 23, 11, .30);
}

/* Mobile */
@media (max-width: 560px) {
	.fbp-form { padding: 20px; }
	.fbp-title { font-size: 22px; }
	.fbp-col-half { flex: 0 0 100%; min-width: 0; }
	.fbp-step-label { display: none; }
	.fbp-btn { padding: 12px 20px; }
}
