/* ==========================================================================
   ITIN qualifier. Lives inside .bsx, so it inherits the design tokens.
   ========================================================================== */

.bsi {
	max-width: 46rem;
	margin-inline: auto;
}

.bsi__card {
	background: var(--paper);
	border: 1px solid var(--edge-light);
	border-radius: 20px;
	padding: clamp(1.6rem, 4vw, 2.4rem);
	box-shadow: 0 20px 50px -30px rgba(6, 11, 36, .35);
}

.bsi__card + .bsi__card { margin-top: 1.1rem; }

/* Progress ---------------------------------------------------------------- */
.bsi__progress {
	display: flex;
	align-items: center;
	gap: .9rem;
	margin-bottom: 1.1rem;
}
.bsi__progress-bar {
	flex: 1;
	height: 4px;
	border-radius: 99px;
	background: var(--edge-light);
	overflow: hidden;
}
.bsi__progress-bar span {
	display: block;
	height: 100%;
	background: var(--brand);
	border-radius: 99px;
	transition: width .35s cubic-bezier(.22, .61, .36, 1);
}
.bsi__progress-txt {
	font-family: "IBM Plex Mono", monospace;
	font-size: .68rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--on-light-2);
	white-space: nowrap;
}

/* Question ---------------------------------------------------------------- */
.bsi__q {
	font-family: Manrope, sans-serif;
	font-size: clamp(1.25rem, 3vw, 1.6rem);
	font-weight: 800;
	letter-spacing: -.025em;
	line-height: 1.2;
	color: var(--on-light);
	margin: 0;
}
.bsi__help {
	margin-top: .7rem;
	font-size: .93rem;
	line-height: 1.6;
	color: var(--on-light-2);
}

/* Options ----------------------------------------------------------------- */
.bsi__opts {
	display: flex;
	flex-direction: column;
	gap: .6rem;
	margin-top: 1.6rem;
}
.bsi__opt {
	display: flex;
	flex-direction: column;
	gap: .22rem;
	text-align: left;
	width: 100%;
	padding: 1rem 1.15rem;
	border: 1.5px solid var(--edge-light);
	border-radius: 12px;
	background: var(--paper);
	cursor: pointer;
	font-family: inherit;
	transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.bsi__opt:hover {
	border-color: var(--brand);
	background: var(--mist);
	transform: translateX(3px);
}
.bsi__opt:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.bsi__opt-t { font-weight: 700; font-size: 1rem; color: var(--on-light); }
.bsi__opt-d { font-size: .87rem; line-height: 1.5; color: var(--on-light-2); }

.bsi__back {
	margin-top: 1.4rem;
	background: none;
	border: 0;
	padding: 0;
	font-family: inherit;
	font-size: .88rem;
	font-weight: 600;
	color: var(--on-light-2);
	cursor: pointer;
}
.bsi__back:hover { color: var(--brand); }

/* Result ------------------------------------------------------------------ */
.bsi__badge {
	display: inline-block;
	font-family: "IBM Plex Mono", monospace;
	font-size: .64rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--brand);
	margin-bottom: .8rem;
}

.bsi__verdict {
	margin-top: 1.3rem;
	padding: 1.1rem 1.2rem;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	gap: .35rem;
}
.bsi__verdict b { font-size: 1rem; }
.bsi__verdict span { font-size: .9rem; line-height: 1.55; }
.bsi__verdict--return { background: #FFF6E6; border: 1px solid #F0D9A8; color: #7A5310; }
.bsi__verdict--exc    { background: #E9F7F1; border: 1px solid #A8DCC6; color: #14573C; }

.bsi__sub {
	margin: 1.5rem 0 .6rem;
	font-family: "IBM Plex Mono", monospace;
	font-size: .66rem;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--on-light-2);
}
.bsi__list {
	margin: 0;
	padding-left: 1.1rem;
	display: flex;
	flex-direction: column;
	gap: .55rem;
}
.bsi__list li { font-size: .93rem; line-height: 1.6; color: var(--on-light); }

.bsi__warn {
	margin-top: 1rem;
	padding: .85rem 1rem;
	border-left: 3px solid #C9852A;
	background: #FFF9EF;
	border-radius: 0 8px 8px 0;
	font-size: .9rem;
	line-height: 1.55;
	color: #6B4A12;
}

.bsi__disclaimer {
	margin-top: 1.6rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--edge-light);
	font-size: .82rem;
	line-height: 1.55;
	color: var(--on-light-2);
}

/* Form -------------------------------------------------------------------- */
.bsi__form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .9rem;
	margin-top: 1.5rem;
}
@media (max-width: 560px) { .bsi__form { grid-template-columns: 1fr; } }

.bsi__field { display: flex; flex-direction: column; gap: .35rem; }
.bsi__field--wide { grid-column: 1 / -1; }
.bsi__field span { font-size: .84rem; font-weight: 700; color: var(--on-light); }
.bsi__field input,
.bsi__field textarea {
	font-family: inherit;
	font-size: 1rem;
	padding: .8rem .95rem;
	border: 1.5px solid var(--edge-light);
	border-radius: 10px;
	background: var(--paper);
	color: var(--on-light);
	width: 100%;
}
.bsi__field input:focus,
.bsi__field textarea:focus {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 3px rgba(40, 114, 250, .16);
}

/* Honeypot: removed from view and from the accessibility tree, but still a
   real field a scripted bot will happily fill in. */
.bsi__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.bsi__submit {
	grid-column: 1 / -1;
	justify-self: start;
	margin-top: .4rem;
	padding: 1rem 1.9rem;
	border: 0;
	border-radius: 100px;
	background: var(--brand);
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}
.bsi__submit:hover:not(:disabled) { background: var(--brand-lift); transform: translateY(-2px); }
.bsi__submit:disabled { opacity: .6; cursor: progress; }

.bsi__status { grid-column: 1 / -1; margin: 0; font-size: .9rem; color: var(--on-light-2); }
.bsi__status--err { color: #B8283F; }

.bsi__card--done { text-align: center; }

/* Fallback when JavaScript never runs -------------------------------------- */
.bsi__nojs {
	background: var(--mist);
	border: 1px solid var(--edge-light);
	border-radius: 16px;
	padding: 1.6rem;
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.bsi__opt, .bsi__submit, .bsi__progress-bar span { transition: none !important; }
	.bsi__opt:hover, .bsi__submit:hover { transform: none !important; }
}

/* Phone field with country prefix ------------------------------------------ */
/* A number without its prefix is a lead you cannot call back, so the country
   is chosen explicitly and the resulting value is shown back to the person. */
.bsi__phone { display: flex; gap: .5rem; }
.bsi__phone-num { flex: 1 1 auto; min-width: 0; }
.bsi__phone-num:focus {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 3px rgba(40,114,250,.16);
}
.bsi__phone-hint {
	margin-top: .35rem;
	font-size: .8rem;
	color: var(--on-light-2);
}
.bsi__phone-hint b { color: var(--on-light); font-variant-numeric: tabular-nums; }
