:root {
	--bqf-blue: #113c70;
	--bqf-blue-dark: #08284f;
	--bqf-blue-deep: #061d39;
	--bqf-gold: #d5a13a;
	--bqf-gold-light: #f0c86a;
	--bqf-ink: #152033;
	--bqf-muted: #697386;
	--bqf-border: #dbe3ee;
	--bqf-soft: #f6f8fb;
	--bqf-surface: #ffffff;
	--bqf-success: #167044;
}

.bqf-floating,
.bqf-floating * {
	box-sizing: border-box;
}

.bqf-floating {
	z-index: 99998;
	font-family: Arial, Helvetica, sans-serif;
}

.bqf-floating-button,
.bqf-submit {
	position: relative;
	overflow: hidden;
	border: 0;
	background: linear-gradient(135deg, var(--bqf-blue), var(--bqf-blue-dark));
	color: #fff;
	cursor: pointer;
	font-weight: 760;
	line-height: 1;
	box-shadow: 0 18px 38px rgba(8, 40, 79, 0.26);
	transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.bqf-floating-button::before,
.bqf-submit::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.22) 42%, transparent 72%);
	transform: translateX(-120%);
	transition: transform 0.6s ease;
}

.bqf-floating-button {
	position: fixed;
	top: 50%;
	right: 0;
	z-index: 99998;
	width: 42px;
	height: 120px;
	padding: 10px 6px;
	border-radius: 24px 0 0 24px;
	border-left: 3px solid var(--bqf-gold);
	font-size: 14px;
	letter-spacing: 0.04em;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.bqf-floating-button-text {
	position: relative;
	z-index: 1;
	display: inline-block;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	white-space: nowrap;
}

.bqf-floating-button:hover,
.bqf-submit:hover {
	background: linear-gradient(135deg, var(--bqf-blue-dark), var(--bqf-blue-deep));
	box-shadow: 0 22px 46px rgba(8, 40, 79, 0.36);
}

.bqf-floating-button:hover {
	transform: translate(-5px, -50%) scale(1.02);
}

.bqf-floating-button:hover::before,
.bqf-submit:hover::before {
	transform: translateX(120%);
}

.bqf-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	align-items: center;
	justify-content: center;
	padding: 22px;
}

.bqf-modal.is-open {
	display: flex;
}

.bqf-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 14, 28, 0.74);
	backdrop-filter: blur(8px);
}

.bqf-dialog {
	position: relative;
	width: min(1020px, 100%);
	max-height: min(90vh, 820px);
	margin: 0;
	padding: 0;
	overflow: auto;
	border: 1px solid rgba(213, 161, 58, 0.3);
	border-radius: 30px;
	background:
		linear-gradient(180deg, rgba(246, 248, 251, 0.96) 0%, #fff 230px),
		var(--bqf-surface);
	color: var(--bqf-ink);
	box-shadow: 0 24px 52px rgba(6, 29, 57, 0.28), 0 4px 18px rgba(6, 29, 57, 0.12);
}

.bqf-dialog-inline {
	width: 100%;
	max-height: none;
	border: 1px solid var(--bqf-border);
	border-radius: 24px;
	box-shadow: 0 18px 44px rgba(17, 60, 112, 0.12);
}

.bqf-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	padding: 22px 28px 17px;
	border-bottom: 1px solid rgba(17, 60, 112, 0.1);
}

.bqf-eyebrow {
	margin: 0 0 5px;
	color: var(--bqf-gold);
	font-size: 11px;
	font-weight: 760;
	letter-spacing: 0;
	text-transform: uppercase;
}

.bqf-header h2 {
	margin: 0;
	color: var(--bqf-blue-dark);
	font-size: 28px;
	line-height: 1.12;
	letter-spacing: 0;
}

.bqf-intro {
	max-width: 620px;
	margin: 7px 0 0;
	color: var(--bqf-muted);
	font-size: 13px;
	line-height: 1.45;
}

.bqf-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid rgba(17, 60, 112, 0.14);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--bqf-blue-dark);
	cursor: pointer;
	font-size: 25px;
	line-height: 1;
	box-shadow: 0 10px 20px rgba(17, 60, 112, 0.1);
	transition: background 0.24s ease, border-color 0.24s ease, color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.bqf-close:hover {
	border-color: rgba(213, 161, 58, 0.5);
	background: rgba(8, 40, 79, 0.94);
	color: #fff;
	box-shadow: 0 14px 26px rgba(8, 40, 79, 0.18);
	transform: scale(1.05);
}

.bqf-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	padding: 10px 28px 0;
}

.bqf-steps span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 30px;
	border: 1px solid rgba(17, 60, 112, 0.09);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.64);
	color: var(--bqf-muted);
	font-size: 11px;
	font-weight: 650;
}

.bqf-steps strong {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: rgba(213, 161, 58, 0.16);
	color: var(--bqf-blue-dark);
	font-size: 10px;
	font-weight: 800;
}

.bqf-form {
	display: grid;
	gap: 10px;
	padding: 14px 28px 22px;
}

.bqf-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 176px;
	gap: 14px;
	align-items: start;
}

.bqf-main-fields,
.bqf-section,
.bqf-grid {
	display: grid;
	gap: 10px;
}

.bqf-section {
	padding: 0 0 12px;
	border-bottom: 1px solid rgba(17, 60, 112, 0.08);
}

.bqf-section:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.bqf-section-title {
	display: flex;
	align-items: center;
	gap: 8px;
}

.bqf-section-title h3 {
	margin: 0;
	color: var(--bqf-blue-dark);
	font-size: 14px;
	font-weight: 760;
	line-height: 1.2;
}

.bqf-section-icon {
	width: 18px;
	height: 18px;
	border: 1px solid rgba(213, 161, 58, 0.42);
	border-radius: 50%;
	background:
		radial-gradient(circle at 50% 50%, var(--bqf-gold) 0 3px, transparent 4px),
		linear-gradient(135deg, rgba(213, 161, 58, 0.18), rgba(17, 60, 112, 0.07));
}

.bqf-grid {
	grid-template-columns: repeat(2, minmax(190px, 1fr));
	gap: 10px 12px;
}

.bqf-form label {
	display: grid;
	gap: 5px;
	margin: 0;
	color: #314057;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.35;
}

.bqf-form input,
.bqf-form select,
.bqf-form textarea {
	width: 100%;
	min-height: 40px;
	box-sizing: border-box;
	border: 1px solid var(--bqf-border);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.9);
	color: var(--bqf-ink);
	font: inherit;
	font-size: 13px;
	font-weight: 400;
	padding: 9px 12px;
	outline: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bqf-form select {
	appearance: none;
	padding-right: 38px;
	background-image:
		linear-gradient(45deg, transparent 50%, var(--bqf-blue-dark) 50%),
		linear-gradient(135deg, var(--bqf-blue-dark) 50%, transparent 50%),
		linear-gradient(180deg, #fff, #f8fafc);
	background-position:
		calc(100% - 19px) 52%,
		calc(100% - 13px) 52%,
		0 0;
	background-size:
		6px 6px,
		6px 6px,
		100% 100%;
	background-repeat: no-repeat;
}

.bqf-form textarea {
	resize: vertical;
	min-height: 72px;
}

.bqf-full textarea {
	min-height: 124px;
}

.bqf-form input:hover,
.bqf-form select:hover,
.bqf-form textarea:hover {
	border-color: rgba(17, 60, 112, 0.34);
	box-shadow: 0 8px 18px rgba(17, 60, 112, 0.06);
}

.bqf-form input:focus,
.bqf-form select:focus,
.bqf-form textarea:focus {
	border-color: var(--bqf-gold);
	background-color: #fff;
	box-shadow: 0 0 0 3px rgba(213, 161, 58, 0.14), 0 10px 20px rgba(17, 60, 112, 0.07);
	transform: translateY(-1px);
}

.bqf-form input::placeholder,
.bqf-form textarea::placeholder {
	color: #98a2b3;
	font-size: 12px;
}

.bqf-input-suffix {
	position: relative;
	display: block;
}

.bqf-input-suffix input {
	padding-right: 50px;
}

.bqf-input-suffix > span {
	position: absolute;
	top: 50%;
	right: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 24px;
	border-radius: 999px;
	background: rgba(17, 60, 112, 0.08);
	color: var(--bqf-blue-dark);
	font-size: 11px;
	font-weight: 700;
	transform: translateY(-50%);
	pointer-events: none;
}

.bqf-qty {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) 38px;
	align-items: center;
	min-height: 40px;
	border: 1px solid var(--bqf-border);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.92);
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bqf-qty:focus-within,
.bqf-qty:hover {
	border-color: rgba(213, 161, 58, 0.62);
	box-shadow: 0 0 0 3px rgba(213, 161, 58, 0.12), 0 8px 18px rgba(17, 60, 112, 0.06);
}

.bqf-qty input {
	min-height: 38px;
	border: 0;
	border-radius: 0;
	background: transparent;
	text-align: center;
	box-shadow: none;
	-moz-appearance: textfield;
}

.bqf-qty input:focus,
.bqf-qty input:hover {
	border: 0;
	background: transparent;
	box-shadow: none;
	transform: none;
}

.bqf-qty input::-webkit-outer-spin-button,
.bqf-qty input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.bqf-qty-button {
	width: 100%;
	height: 100%;
	min-height: 38px;
	border: 0;
	background: #f7f9fc;
	color: var(--bqf-blue-dark);
	cursor: pointer;
	font-size: 16px;
	font-weight: 700;
	transition: background 0.18s ease, color 0.18s ease;
}

.bqf-qty-button:hover {
	background: var(--bqf-blue-dark);
	color: #fff;
}

.bqf-full {
	grid-column: 1 / -1;
}

.bqf-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}

.bqf-trust-card {
	position: sticky;
	top: 14px;
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 20px;
	background:
		linear-gradient(145deg, rgba(8, 40, 79, 0.82), rgba(17, 60, 112, 0.72)),
		var(--bqf-blue-dark);
	color: #fff;
	box-shadow: 0 8px 18px rgba(8, 40, 79, 0.1);
	backdrop-filter: blur(10px);
}

.bqf-trust-kicker {
	margin: 0 0 8px;
	color: var(--bqf-gold-light);
	font-size: 12.5px;
	font-weight: 700;
}

.bqf-trust-card ul {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bqf-trust-card li {
	position: relative;
	padding-left: 17px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 11px;
	line-height: 1.35;
}

.bqf-trust-card li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--bqf-gold-light);
	font-size: 10px;
	font-weight: 700;
}

.bqf-file-field input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
}

.bqf-file-control {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	min-height: 72px;
	padding: 13px;
	border: 1px dashed rgba(17, 60, 112, 0.3);
	border-radius: 18px;
	background: linear-gradient(180deg, #fff, var(--bqf-soft));
	color: var(--bqf-muted);
	box-shadow: 0 10px 22px rgba(17, 60, 112, 0.06);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bqf-file-control:hover {
	border-color: rgba(213, 161, 58, 0.72);
	box-shadow: 0 16px 30px rgba(17, 60, 112, 0.1);
	transform: translateY(-1px);
}

.bqf-file-icon {
	width: 36px;
	height: 36px;
	border-radius: 13px;
	background:
		linear-gradient(var(--bqf-gold), var(--bqf-gold)) 50% 16px / 15px 2px no-repeat,
		linear-gradient(var(--bqf-gold), var(--bqf-gold)) 50% 16px / 2px 15px no-repeat,
		linear-gradient(135deg, rgba(213, 161, 58, 0.18), rgba(17, 60, 112, 0.08));
	border: 1px solid rgba(213, 161, 58, 0.34);
}

.bqf-file-copy {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.bqf-file-copy strong {
	color: var(--bqf-blue-dark);
	font-size: 13px;
	font-weight: 760;
}

.bqf-file-copy small,
.bqf-file-name {
	color: var(--bqf-muted);
	font-size: 12px;
	font-weight: 500;
}

.bqf-file-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bqf-file-name.has-file {
	color: var(--bqf-blue-dark);
	font-weight: 700;
}

.bqf-file-button {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	padding: 8px 11px;
	border-radius: 999px;
	background: var(--bqf-blue-dark);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}

.bqf-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 55px;
	padding: 14px 22px;
	border-radius: 16px;
	border: 1px solid rgba(213, 161, 58, 0.35);
	border-bottom: 2px solid var(--bqf-gold);
	font-size: 15px;
	letter-spacing: 0;
	box-shadow: 0 12px 26px rgba(8, 40, 79, 0.18);
}

.bqf-submit span {
	position: relative;
	z-index: 1;
}

.bqf-submit-arrow {
	transition: transform 0.22s ease;
}

.bqf-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 16px 30px rgba(8, 40, 79, 0.24);
}

.bqf-submit:hover .bqf-submit-arrow {
	transform: translateX(5px);
}

.bqf-submit[disabled] {
	cursor: wait;
	opacity: 0.72;
	transform: none;
}

.bqf-status {
	display: none;
	position: relative;
	padding: 13px 16px 13px 44px;
	border-radius: 16px;
	font-size: 13px;
	line-height: 1.45;
	order: -1;
}

.bqf-status strong,
.bqf-status span {
	display: block;
}

.bqf-status strong {
	margin-bottom: 2px;
	font-size: 14px;
}

.bqf-status::before {
	position: absolute;
	left: 16px;
	top: 13px;
	font-weight: 760;
}

.bqf-status.is-success {
	display: block;
	border: 1px solid rgba(22, 112, 68, 0.18);
	background: #edf9f3;
	color: var(--bqf-success);
	box-shadow: 0 12px 26px rgba(22, 112, 68, 0.08);
}

.bqf-status.is-success::before {
	content: "\2713";
}

.bqf-status.is-error {
	display: block;
	border: 1px solid rgba(159, 31, 31, 0.14);
	background: #fff1f1;
	color: #9f1f1f;
}

.bqf-status.is-error::before {
	content: "!";
}

body.bqf-lock {
	overflow: hidden;
}

@media (max-width: 920px) {
	.bqf-dialog {
		width: min(760px, 100%);
	}

	.bqf-layout {
		grid-template-columns: 1fr;
	}

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

	.bqf-trust-card {
		position: static;
	}

	.bqf-trust-card ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.bqf-floating {
		transform: none;
	}

	.bqf-floating-button {
		top: auto;
		right: 16px;
		bottom: 16px;
		left: auto;
		width: auto;
		height: auto;
		min-height: 52px;
		min-width: 148px;
		padding: 15px 22px;
		border-left: 0;
		border-bottom: 3px solid var(--bqf-gold);
		border-radius: 999px;
		transform: none;
	}

	.bqf-floating-button-text {
		writing-mode: horizontal-tb;
		transform: none;
	}

	.bqf-floating-button:hover {
		transform: translateY(-1px);
	}

	.bqf-modal {
		padding: 10px;
	}

	.bqf-dialog {
		width: 100%;
		max-height: calc(100vh - 20px);
		border-radius: 22px;
	}

	.bqf-header {
		padding: 20px 18px 16px;
	}

	.bqf-header h2 {
		font-size: 25px;
	}

	.bqf-intro {
		font-size: 13px;
	}

	.bqf-form {
		padding: 16px;
	}

	.bqf-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 10px 16px 0;
	}

	.bqf-steps span {
		min-height: 28px;
		font-size: 10.5px;
	}

	.bqf-grid,
	.bqf-trust-card ul {
		grid-template-columns: 1fr;
	}

	.bqf-full textarea {
		min-height: 132px;
	}

	.bqf-file-control {
		grid-template-columns: 1fr;
		align-items: start;
	}

	.bqf-file-icon {
		display: none;
	}

	.bqf-file-name {
		white-space: normal;
	}

	.bqf-file-button {
		width: 100%;
		text-align: center;
	}
}

.bqf-floating-button[data-bqf-open] {
	width: 42px !important;
	height: 120px !important;
	min-height: 120px !important;
	max-height: 120px !important;
	padding: 10px 6px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.bqf-floating-button[data-bqf-open] .bqf-floating-button-text {
	line-height: 1.1 !important;
}
