.bnb-cf {
	--bnb-cf-primary: #182444;
	--bnb-cf-primary-soft: rgba(24, 36, 68, 0.08);
	--bnb-cf-text: #1f2937;
	--bnb-cf-muted: #6b7280;
	--bnb-cf-disabled-bg: #b5b5b5;
	--bnb-cf-disabled-text: #ffffff;
	--bnb-cf-output-bg: #b5b5b5;
	--bnb-cf-card-border: rgba(24, 36, 68, 0.12);
	font-family: inherit;
	color: var(--bnb-cf-text);
	box-sizing: border-box;
	max-width: 1100px;
	margin: 0 auto;
	padding: 16px;
}

.bnb-cf *,
.bnb-cf *::before,
.bnb-cf *::after {
	box-sizing: border-box;
}

.bnb-cf__card {
	border: 1px solid var(--bnb-cf-card-border);
	border-radius: 24px;
	padding: 32px;
	background: #fff;
}

.bnb-cf__title {
	color: var(--bnb-cf-primary);
	text-align: center;
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 28px;
	letter-spacing: 0.2px;
}

.bnb-cf__grid {
	display: grid;
	grid-template-columns: 1fr 1px 1fr;
	gap: 32px;
	align-items: start;
}

.bnb-cf__col {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.bnb-cf__col--form {
	grid-column: 1 / 2;
	grid-row: 1;
}

.bnb-cf__divider {
	grid-column: 2 / 3;
	grid-row: 1;
	width: 1px;
	align-self: stretch;
	background: var(--bnb-cf-card-border);
}

.bnb-cf__col--results {
	grid-column: 3 / 4;
	grid-row: 1;
}

.bnb-cf__col--form > * + .bnb-cf__label,
.bnb-cf__col--results > * + .bnb-cf__label {
	margin-top: 8px;
}

.bnb-cf__label {
	font-size: 15px;
	font-weight: 600;
	color: var(--bnb-cf-text);
	margin: 0;
}

.bnb-cf__select-wrap {
	position: relative;
}

.bnb-cf__select-wrap::after {
	content: "";
	position: absolute;
	right: 18px;
	top: 50%;
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 7px solid var(--bnb-cf-primary);
	transform: translateY(-50%);
	pointer-events: none;
}

.bnb-cf__select,
.bnb-cf__input {
	width: 100%;
	height: 52px;
	padding: 0 18px;
	border: 1.5px solid var(--bnb-cf-primary);
	border-radius: 14px;
	background: #fff;
	font-size: 16px;
	color: var(--bnb-cf-text);
	font-family: inherit;
	outline: none;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.bnb-cf__select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 44px;
	cursor: pointer;
}

.bnb-cf__input::placeholder {
	color: #9ca3af;
}

.bnb-cf__select:focus,
.bnb-cf__input:focus {
	box-shadow: 0 0 0 3px var(--bnb-cf-primary-soft);
}

.bnb-cf__input.is-invalid {
	border-color: #c0392b;
}

.bnb-cf__button {
	margin-top: 8px;
	height: 56px;
	border: none;
	border-radius: 14px;
	background: var(--bnb-cf-primary);
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: opacity 0.15s ease, transform 0.05s ease;
}

.bnb-cf__button:hover:not(:disabled) {
	opacity: 0.92;
}

.bnb-cf__button:active:not(:disabled) {
	transform: translateY(1px);
}

.bnb-cf__button:disabled {
	background: var(--bnb-cf-disabled-bg);
	color: var(--bnb-cf-disabled-text);
	cursor: not-allowed;
}

.bnb-cf__output {
	height: 52px;
	display: flex;
	align-items: center;
	padding: 0 18px;
	background: var(--bnb-cf-output-bg);
	border-radius: 14px;
	font-size: 16px;
	color: #1f2937;
	font-weight: 500;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bnb-cf__disclaimer {
	margin-top: 12px;
	font-size: 13px;
	color: var(--bnb-cf-muted);
	line-height: 1.45;
}

@media (max-width: 768px) {
	.bnb-cf {
		padding: 8px;
	}
	.bnb-cf__card {
		padding: 20px;
		border-radius: 20px;
	}
	.bnb-cf__title {
		font-size: 22px;
		margin-bottom: 20px;
	}
	.bnb-cf__grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.bnb-cf__col--form,
	.bnb-cf__col--results,
	.bnb-cf__divider {
		grid-column: 1 / -1;
	}
	.bnb-cf__col--form {
		grid-row: auto;
	}
	.bnb-cf__divider {
		display: none;
	}
	.bnb-cf__col--results {
		grid-row: auto;
		border-top: 1px solid var(--bnb-cf-card-border);
		padding-top: 18px;
	}
	.bnb-cf__select,
	.bnb-cf__input,
	.bnb-cf__output {
		height: 48px;
		font-size: 15px;
	}
	.bnb-cf__button {
		height: 52px;
		font-size: 16px;
	}
}
