.bq-form-wrap {
	--bq-ink: #2c241b;
	--bq-muted: #7a7063;
	--bq-paper: #fbf6ee;
	--bq-paper-2: #f3eadc;
	--bq-line: #e6dccb;
	--bq-gold: #b0894d;
	--bq-gold-dark: #8d6a36;
	--bq-ok: #2f7d4a;
	--bq-err: #b42318;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	color: var(--bq-ink);
	font-family: inherit;
	text-align: right;
}

.bq-form-wrap *,
.bq-form-wrap *::before,
.bq-form-wrap *::after {
	box-sizing: border-box;
}

.bq-form-panel,
.bq-login-card,
.bq-success {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 42%),
		var(--bq-paper);
	border: 1px solid var(--bq-line);
	border-radius: 18px;
	padding: 1.35rem 1.3rem 1.4rem;
	box-shadow: 0 12px 40px rgba(44, 36, 27, 0.08);
}

.bq-form-head {
	display: flex;
	gap: 0.85rem;
	align-items: flex-start;
	margin-bottom: 1.15rem;
}

.bq-mark {
	flex: 0 0 auto;
	width: 2.4rem;
	height: 2.4rem;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: var(--bq-paper-2);
	color: var(--bq-gold);
	font-size: 1.7rem;
	line-height: 1;
	font-family: Georgia, "Times New Roman", serif;
}

.bq-kicker {
	margin: 0 0 0.2rem;
	color: var(--bq-gold-dark);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.bq-form-title {
	margin: 0 0 0.28rem;
	font-size: 1.18rem;
	line-height: 1.45;
	color: var(--bq-ink);
}

.bq-form-desc,
.bq-login-hint,
.bq-success-body {
	margin: 0;
	color: var(--bq-muted);
	font-size: 0.9rem;
	line-height: 1.7;
}

.bq-form-alert {
	margin: 0 0 0.9rem;
	padding: 0.7rem 0.85rem;
	border-radius: 10px;
	font-size: 0.88rem;
	line-height: 1.6;
}

.bq-form-alert.is-error {
	background: #fdecea;
	color: var(--bq-err);
}

.bq-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 7.5rem;
	gap: 0.75rem;
}

.bq-field {
	margin-bottom: 0.95rem;
}

.bq-field label {
	display: block;
	margin: 0 0 0.38rem;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--bq-ink);
}

.bq-form input[type="text"],
.bq-form input[type="number"],
.bq-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.72rem 0.85rem;
	border: 1px solid var(--bq-line);
	border-radius: 12px;
	background: #fff;
	color: var(--bq-ink);
	font: inherit;
	line-height: 1.6;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.bq-form textarea {
	min-height: 132px;
	resize: vertical;
	background:
		linear-gradient(transparent 31px, #f1e8d8 32px) 0 12px / 100% 32px,
		#fffdf8;
	line-height: 2;
	padding-top: 0.8rem;
}

.bq-form input:focus,
.bq-form textarea:focus {
	outline: none;
	border-color: var(--bq-gold);
	box-shadow: 0 0 0 4px rgba(176, 137, 77, 0.16);
}

.bq-form input.is-invalid,
.bq-form textarea.is-invalid {
	border-color: #e3aaa4;
	box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.08);
}

.bq-progress {
	height: 4px;
	margin-top: 0.5rem;
	border-radius: 99px;
	background: #efe6d6;
	overflow: hidden;
}

.bq-progress span {
	display: block;
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: var(--bq-line);
	transition: width 0.18s ease, background 0.18s ease;
}

.bq-progress.is-short span {
	background: #c4b7a2;
}

.bq-progress.is-ok span {
	background: var(--bq-gold);
}

.bq-progress.is-full span {
	background: var(--bq-ok);
}

.bq-meta-line {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 0.4rem;
	font-size: 0.78rem;
	color: var(--bq-muted);
}

.bq-char-count {
	direction: ltr;
	unicode-bidi: isolate;
	font-variant-numeric: tabular-nums;
}

.bq-char-hint.is-ok {
	color: var(--bq-ok);
	font-weight: 600;
}

.bq-submit,
.bq-again {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	min-height: 48px;
	margin-top: 0.25rem;
	padding: 0.8rem 1.1rem;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(180deg, #3a3127, var(--bq-ink));
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.bq-submit:hover,
.bq-again:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(44, 36, 27, 0.18);
}

.bq-submit:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.bq-submit.is-loading {
	opacity: 0.9;
	pointer-events: none;
}

.bq-btn-spinner {
	display: none;
	width: 1rem;
	height: 1rem;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: bq-spin 0.7s linear infinite;
}

.bq-submit.is-loading .bq-btn-spinner {
	display: inline-block;
}

.bq-success {
	text-align: center;
	padding: 2rem 1.2rem 1.5rem;
}

.bq-success-icon {
	display: grid;
	place-items: center;
	margin: 0 auto 0.85rem;
}

.bq-success-icon circle {
	stroke: #d9eadf;
	stroke-width: 2;
}

.bq-success-icon path {
	stroke: var(--bq-ok);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 48;
	stroke-dashoffset: 48;
	animation: bq-check 0.55s 0.1s ease forwards;
}

.bq-success-title {
	margin: 0 0 0.4rem;
	font-size: 1.2rem;
}

.bq-again {
	margin-top: 1.15rem;
	background: transparent;
	color: var(--bq-ink);
	border: 1px solid var(--bq-line);
}

.bq-login-card {
	text-align: center;
}

.bq-login-card .bq-mark {
	margin: 0 auto 0.85rem;
}

.bq-login-hint a {
	color: var(--bq-gold-dark);
	font-weight: 700;
}

@keyframes bq-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes bq-check {
	to {
		stroke-dashoffset: 0;
	}
}

@media (max-width: 520px) {
	.bq-row {
		grid-template-columns: 1fr;
	}
}

.bq-card {
	--bq-ink: #2c241b;
	--bq-muted: #7a7063;
	--bq-paper: #fbf6ee;
	--bq-line: #e6dccb;
	--bq-gold: #b0894d;
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.7rem 1.45rem 1.25rem;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 38%),
		var(--bq-paper);
	border: 1px solid var(--bq-line);
	border-radius: 4px 18px 18px 18px;
	box-shadow: 0 10px 28px rgba(44, 36, 27, 0.08);
	color: var(--bq-ink);
	text-decoration: none;
	overflow: hidden;
	box-sizing: border-box;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

a.bq-card:hover,
a.bq-card:focus {
	transform: translateY(-3px);
	box-shadow: 0 16px 34px rgba(44, 36, 27, 0.12);
	color: var(--bq-ink);
	text-decoration: none;
}

.bq-card-ribbon {
	position: absolute;
	top: 0;
	left: 1.35rem;
	width: 10px;
	height: 34px;
	background: var(--bq-gold);
	border-radius: 0 0 6px 6px;
}

.bq-card-mark {
	display: block;
	margin: 0 0 0.35rem;
	color: var(--bq-gold);
	font-size: 2.4rem;
	line-height: 1;
	font-family: Georgia, "Times New Roman", serif;
}

.bq-card-text {
	flex: 1 1 auto;
	margin: 0 0 1.1rem;
	color: var(--bq-ink);
	font-size: 1.05rem;
	line-height: 2;
}

.bq-card-rule {
	display: block;
	width: 3.2rem;
	height: 1px;
	margin: 0 0 0.75rem;
	background: var(--bq-gold);
	opacity: 0.7;
}

.bq-card-book {
	display: block;
	margin: 0 0 0.25rem;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.5;
	color: var(--bq-ink);
}

.bq-card-meta {
	display: block;
	font-size: 0.78rem;
	color: var(--bq-muted);
	line-height: 1.6;
}

.bq-card-dot {
	opacity: 0.6;
}

body.bq-tab-jump #tab-book_quotes,
body.bq-tab-jump .woocommerce-Tabs-panel--book_quotes {
	display: none !important;
}
