.bf-quote-form-wrap {
	color: #111317;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.bf-quote-form {
	padding: clamp(24px, 4vw, 42px);
}

.bf-form-grid em,
.bf-consent em {
	display: inline;
	margin-left: 3px;
	padding: 0;
	color: #b52121;
	background: transparent;
	font-size: 1em;
	font-style: normal;
	font-weight: 900;
	line-height: 1;
	vertical-align: middle;
}

.bf-client-error-summary {
	margin: 0 0 24px;
	padding: 15px 17px;
	color: #681717;
	background: #f9dddd;
	border: 2px solid #b52121;
	border-radius: 7px;
	font-size: .92rem;
	font-weight: 800;
}

.bf-quote-form fieldset {
	margin: 0 0 34px;
	padding: 0 0 34px;
	border: 0;
	border-bottom: 1px solid #e2e4e6;
}

.bf-quote-form fieldset:last-of-type {
	margin-bottom: 24px;
}

.bf-quote-form legend {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	padding: 0;
	font-size: 1.08rem;
	font-weight: 850;
}

.bf-quote-form legend span {
	color: #8f7600;
	font-size: .73rem;
	letter-spacing: .08em;
}

.bf-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.bf-dimension-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bf-form-grid label {
	display: block;
}

.bf-form-grid label > span {
	display: block;
	margin-bottom: 7px;
	color: #474e57;
	font-size: .84rem;
	font-weight: 700;
}

.bf-field-wide {
	grid-column: 1 / -1;
}

.bf-quote-form input[type="text"],
.bf-quote-form input[type="tel"],
.bf-quote-form input[type="email"],
.bf-quote-form select,
.bf-quote-form textarea {
	width: 100%;
	min-height: 48px;
	box-sizing: border-box;
	padding: 11px 13px;
	color: #111317;
	background: #f8f8f6;
	border: 1px solid #d7dadd;
	border-radius: 6px;
	font-size: .95rem;
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.bf-quote-form textarea {
	min-height: 130px;
	resize: vertical;
}

.bf-quote-form input:focus,
.bf-quote-form select:focus,
.bf-quote-form textarea:focus {
	background: #fff;
	border-color: #9b8200;
	box-shadow: 0 0 0 3px rgba(244, 201, 0, .22);
}

.bf-form-grid label.bf-field-invalid > span,
.bf-consent.bf-field-invalid > span {
	color: #941b1b;
}

.bf-form-grid label.bf-field-invalid input,
.bf-form-grid label.bf-field-invalid select,
.bf-form-grid label.bf-field-invalid textarea {
	background: #fffafa;
	border-color: #b52121;
	box-shadow: 0 0 0 3px rgba(181, 33, 33, .12);
}

.bf-consent.bf-field-invalid {
	padding: 12px;
	background: #fff4f4;
	border: 1px solid #b52121;
	border-radius: 7px;
}

.bf-field-error {
	display: block;
	margin-top: 7px;
	color: #a01b1b;
	font-size: .78rem;
	font-weight: 750;
}

.bf-file-field {
	padding: 18px;
	background: #f8f8f6;
	border: 1px dashed #b9bec4;
	border-radius: 8px;
}

.bf-file-field input {
	width: 100%;
}

.bf-file-field small {
	display: block;
	margin-top: 8px;
	color: #747c85;
}

.bf-consent {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin-bottom: 20px;
	color: #565e68;
	font-size: .86rem;
}

.bf-consent input {
	width: 18px;
	height: 18px;
	margin-top: 3px;
	accent-color: #f4c900;
}

.bf-submit-button {
	display: flex;
	width: 100%;
	min-height: 58px;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
	color: #111317;
	background: #f4c900;
	border: 0;
	border-radius: 5px;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 850;
}

.bf-submit-button:hover {
	background: #ffdc17;
	transform: translateY(-1px);
}

.bf-submit-button span {
	font-size: 1.3rem;
}

.bf-submit-button:focus-visible,
.bf-review-actions button:focus-visible {
	outline: 3px solid rgba(17, 19, 23, .42);
	outline-offset: 3px;
}

.bf-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.bf-form-message {
	padding: 20px 24px;
	border-radius: 14px 14px 0 0;
}

.bf-form-message p {
	margin: 4px 0 0;
	font-size: .9rem;
}

.bf-form-success {
	color: #14371e;
	background: #daf2df;
}

.bf-form-error {
	color: #5c1717;
	background: #f9dddd;
}

.bf-review-open,
.bf-success-open {
	overflow: hidden;
}

.bf-review-modal {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	padding: 24px;
	background: rgba(12, 14, 17, .76);
	backdrop-filter: blur(4px);
}

.bf-review-modal[hidden] {
	display: none;
}

.bf-review-dialog {
	width: min(620px, 100%);
	max-height: min(780px, calc(100vh - 48px));
	overflow-y: auto;
	box-sizing: border-box;
	padding: clamp(24px, 4vw, 38px);
	color: #111317;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 30px 100px rgba(0, 0, 0, .42);
}

.bf-review-kicker {
	margin: 0 0 8px;
	color: #8f7600;
	font-size: .72rem;
	font-weight: 850;
	letter-spacing: .12em;
}

.bf-review-dialog h3 {
	margin: 0;
	font-size: clamp(1.4rem, 3vw, 2rem);
	line-height: 1.25;
}

.bf-review-lead {
	margin: 8px 0 22px;
	color: #616872;
	font-size: .92rem;
}

.bf-review-list {
	display: grid;
	grid-template-columns: minmax(100px, 135px) minmax(0, 1fr);
	margin: 0;
	border-top: 1px solid #e2e4e6;
}

.bf-review-list dt,
.bf-review-list dd {
	margin: 0;
	padding: 11px 0;
	border-bottom: 1px solid #e2e4e6;
	font-size: .9rem;
	line-height: 1.55;
}

.bf-review-list dt {
	padding-right: 14px;
	color: #626a74;
	font-weight: 750;
}

.bf-review-list dd {
	color: #171a1f;
	font-weight: 650;
	white-space: pre-wrap;
	word-break: break-word;
}

.bf-review-error {
	margin: 18px 0 0;
	padding: 12px 14px;
	color: #6b1717;
	background: #f9dddd;
	border-radius: 6px;
	font-size: .88rem;
}

.bf-review-actions {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 10px;
	margin-top: 24px;
}

.bf-review-actions button {
	min-height: 50px;
	padding: 0 18px;
	border-radius: 5px;
	cursor: pointer;
	font-size: .95rem;
	font-weight: 850;
}

.bf-review-edit {
	color: #30363d;
	background: #fff;
	border: 1px solid #b9bec4;
}

.bf-review-confirm {
	color: #111317;
	background: #f4c900;
	border: 1px solid #f4c900;
}

.bf-review-actions button:disabled {
	cursor: wait;
	opacity: .62;
}

.bf-success-modal {
	position: fixed;
	z-index: 100001;
	inset: 0;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	padding: 24px;
	background: rgba(12, 14, 17, .8);
	backdrop-filter: blur(5px);
}

.bf-success-modal[hidden] {
	display: none;
}

.bf-success-dialog {
	width: min(520px, 100%);
	box-sizing: border-box;
	padding: clamp(30px, 5vw, 48px);
	text-align: center;
	color: #111317;
	background: #fff;
	border-top: 6px solid #f4c900;
	border-radius: 14px;
	box-shadow: 0 30px 100px rgba(0, 0, 0, .46);
}

.bf-success-icon {
	display: grid;
	width: 64px;
	height: 64px;
	place-items: center;
	margin: 0 auto 22px;
	color: #111317;
	background: #f4c900;
	border-radius: 50%;
	font-size: 2rem;
	font-weight: 900;
}

.bf-success-dialog h3 {
	margin: 0;
	font-size: clamp(1.45rem, 3.5vw, 2rem);
	line-height: 1.35;
	word-break: keep-all;
}

.bf-success-name {
	color: #8f7600;
}

.bf-success-dialog p {
	margin: 14px 0 26px;
	color: #616872;
	font-size: .95rem;
	line-height: 1.65;
	word-break: keep-all;
}

.bf-success-close {
	display: flex;
	min-height: 52px;
	align-items: center;
	justify-content: center;
	color: #111317;
	background: #f4c900;
	border-radius: 5px;
	font-weight: 850;
	text-decoration: none;
}

.bf-success-close:hover {
	color: #111317;
	background: #ffdc17;
}

.bf-success-close:focus-visible {
	outline: 3px solid rgba(17, 19, 23, .42);
	outline-offset: 3px;
}

@media (max-width: 640px) {
	.bf-form-grid,
	.bf-dimension-grid {
		grid-template-columns: 1fr;
	}

	.bf-field-wide {
		grid-column: auto;
	}

	.bf-review-modal {
		align-items: end;
		padding: 12px;
	}

	.bf-review-dialog {
		max-height: calc(100vh - 24px);
	}

	.bf-success-modal {
		align-items: end;
		padding: 12px;
	}

	.bf-success-dialog {
		padding: 30px 22px;
	}

	.bf-review-list {
		grid-template-columns: 1fr;
	}

	.bf-review-list dt {
		padding-bottom: 2px;
		border-bottom: 0;
	}

	.bf-review-list dd {
		padding-top: 2px;
	}
}
