.bfaccess-shell {
	max-width: 880px;
	margin: 2rem auto;
	padding: 0 1rem 2rem;
}

.bfaccess-card {
	background: #fff;
	border: 1px solid #d7dee6;
	border-radius: 10px;
	box-shadow: 0 10px 28px rgba(16, 43, 67, 0.06);
	overflow: hidden;
}

.bfaccess-header {
	margin: 0;
	padding: 1.5rem;
	background: linear-gradient(180deg, #5b87b3 0%, #4c75a0 45%, #3f6488 100%);
	color: #fff;
}

.bfaccess-kicker {
	margin: 0 0 0.35rem;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.82);
}

.bfaccess-header h1 {
	margin: 0;
	font-size: 2rem;
	line-height: 1.1;
	color: #fff;
}

.bfaccess-lead {
	margin: 0.65rem 0 0;
	color: rgba(255, 255, 255, 0.92);
}

.bfaccess-form,
.bfaccess-messages {
	padding: 1.5rem;
}

.bfaccess-form {
	display: grid;
	gap: 1rem;
}

.bfaccess-note,
.bfaccess-message p,
.bfaccess-info p,
.bfaccess-followup p,
.bfaccess-field p {
	margin: 0;
}

.bfaccess-note {
	font-size: 0.95rem;
	color: #4f6478;
	line-height: 1.45;
}

.bfaccess-section {
	padding: 1.1rem;
	border: 1px solid #dde6ee;
	border-radius: 10px;
	background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.bfaccess-section--framed {
	border-top: 6px solid #4c75a0;
}

.bfaccess-section-heading {
	margin-bottom: 0.85rem;
}

.bfaccess-section-heading h2,
.bfaccess-followup h2,
.bfaccess-modal__header h2 {
	margin: 0;
	font-size: 1.15rem;
	color: #16324a;
}

.bfaccess-section-heading p {
	margin: 0.25rem 0 0;
	color: #5a7084;
}

.bfaccess-info {
	padding: 0.95rem 1rem;
	border-radius: 8px;
	border: 1px solid #cbd8e4;
	background: linear-gradient(180deg, #f3f7fb 0%, #edf3f9 100%);
	border-left: 6px solid #4c75a0;
}

.bfaccess-grid {
	display: grid;
	gap: 1rem;
}

.bfaccess-grid--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bfaccess-field,
.bfaccess-terms {
	display: grid;
	gap: 0.55rem;
	align-content: start;
}

.bfaccess-field > span,
.bfaccess-terms-label {
	font-weight: 600;
	color: #16324a;
}

.bfaccess-field > span {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	flex-wrap: wrap;
}

.bfaccess-tooltip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.15rem;
	height: 1.15rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #e8f0f8;
	color: #315d89;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1;
	cursor: help;
}

.bfaccess-tooltip:hover,
.bfaccess-tooltip:focus {
	background: #4c75a0;
	color: #fff;
	outline: none;
}

.bfaccess-field input {
	width: 100%;
	border: 1px solid #b9c7d3;
	border-radius: 8px;
	padding: 0.8rem 0.9rem;
	font: inherit;
	color: #16324a;
	background: #fff;
}

.bfaccess-field input:focus {
	outline: none;
	border-color: #4c75a0;
	box-shadow: 0 0 0 3px rgba(76, 117, 160, 0.15);
}

.bfaccess-section--final {
	background: linear-gradient(180deg, #f8fbfe 0%, #f3f8fc 100%);
}

.bfaccess-final-confirmation {
	display: grid;
	gap: 0.85rem;
}

.bfaccess-terms {
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 0.8rem;
	padding: 1rem;
	border-radius: 8px;
	border: 1px solid #cbd8e4;
	background: #fff;
}

.bfaccess-terms-control {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.bfaccess-terms-control input {
	width: 1.2rem;
	height: 1.2rem;
	margin: 0;
}

.bfaccess-actions {
	margin-top: 0.2rem;
}

.bfaccess-submit-status {
	min-height: 1.15rem;
	margin: 0 0 0.7rem;
	color: #5a7084;
	font-size: 0.95rem;
}

.bfaccess-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 1rem;
	border-radius: 10px;
	border: 1px solid transparent;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.bfaccess-button:hover,
.bfaccess-button:focus {
	transform: translateY(-1px);
	text-decoration: none;
}

.bfaccess-button--primary {
	width: 100%;
	background: linear-gradient(180deg, #5f89b5 0%, #486f99 100%);
	color: #fff;
}

.bfaccess-button--primary:hover,
.bfaccess-button--primary:focus {
	color: #fff;
	filter: brightness(0.97);
}

.bfaccess-message {
	padding: 1rem 1.1rem;
	border-radius: 8px;
	border: 1px solid;
	border-left-width: 6px;
}

.bfaccess-message--success {
	background: linear-gradient(180deg, #f2faf3 0%, #e9f6eb 100%);
	border-color: #bfdcc5;
	border-left-color: #4f8f61;
	color: #1f4d2b;
}

.bfaccess-message--warning {
	background: linear-gradient(180deg, #fff8ee 0%, #fff2df 100%);
	border-color: #ecd1a6;
	border-left-color: #d18a32;
	color: #7a4c12;
}

.bfaccess-message--error {
	background: linear-gradient(180deg, #fff4f4 0%, #ffe9e9 100%);
	border-color: #efc3c3;
	border-left-color: #bf4a4a;
	color: #7a2222;
}

.bfaccess-followup-actions {
	margin-top: 1rem;
}

.bfaccess-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(16, 43, 67, 0.52);
}

.bfaccess-modal__dialog {
	width: min(680px, 100%);
	background: #fff;
	border-radius: 10px;
	border: 1px solid #d7dee6;
	box-shadow: 0 22px 50px rgba(16, 43, 67, 0.28);
	overflow: hidden;
}

.bfaccess-modal__dialog--warning {
	background: lightgoldenrodyellow;
	border: 5px solid orange;
}

.bfaccess-modal__header,
.bfaccess-modal__body,
.bfaccess-modal__actions {
	padding: 1rem 1.1rem;
}

.bfaccess-modal__header {
	border-bottom: 1px solid #e6edf3;
}

.bfaccess-modal__body p {
	margin: 0 0 0.75rem;
	color: #274862;
}

.bfaccess-modal__body p:last-child {
	margin-bottom: 0;
}

.bfaccess-autofill-trap {
	display: none;
}

@media (max-width: 700px) {
	.bfaccess-shell {
		margin-top: 1rem;
		padding: 0 0.75rem 1.5rem;
	}

	.bfaccess-header,
	.bfaccess-form,
	.bfaccess-messages {
		padding: 1rem;
	}

	.bfaccess-header h1 {
		font-size: 1.7rem;
	}

	.bfaccess-grid--two {
		grid-template-columns: 1fr;
	}

	.bfaccess-section {
		padding: 1rem;
	}
}
