:root {
	--brm-accent: #d9a928;
	--brm-accent-dark: #af8214;
	--brm-text: #1f2937;
	--brm-muted: #6b7280;
	--brm-border: #dfe3e8;
	--brm-soft: #f7f7f8;
	--brm-success: #176b3a;
	--brm-success-bg: #eaf7ef;
	--brm-error: #9f1d1d;
	--brm-error-bg: #fff0f0;
	--brm-card-gap: 24px;
}

.brm-form-shell,
.brm-reviews,
.brm-summary,
.brm-empty {
	box-sizing: border-box;
	color: var(--brm-text);
	font-family: inherit;
}

.brm-form-shell *,
.brm-reviews *,
.brm-summary * {
	box-sizing: border-box;
}

.brm-form-shell {
	width: 100%;
	padding: 32px;
	background: #fff;
	border: 1px solid var(--brm-border);
	border-radius: 16px;
}

.brm-form-heading {
	margin: 0 0 8px;
	color: var(--brm-text);
	font-size: clamp(24px, 3vw, 36px);
	line-height: 1.2;
}

.brm-form-description {
	margin-bottom: 24px;
	color: var(--brm-muted);
}

.brm-form-description > :first-child {
	margin-top: 0;
}

.brm-form-description > :last-child {
	margin-bottom: 0;
}

.brm-review-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.brm-fields-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.brm-field {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.brm-field > label,
.brm-field legend {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	color: var(--brm-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.brm-field input:not([type="radio"]),
.brm-field textarea,
.brm-field select {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 13px 14px;
	color: var(--brm-text);
	background: #fff;
	border: 1px solid var(--brm-border);
	border-radius: 8px;
	box-shadow: none;
	font: inherit;
	line-height: 1.5;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.brm-field textarea {
	min-height: 140px;
	resize: vertical;
}

.brm-field input:not([type="radio"]):focus,
.brm-field textarea:focus,
.brm-field select:focus {
	border-color: var(--brm-accent-dark);
	outline: 2px solid color-mix(in srgb, var(--brm-accent) 28%, transparent);
	outline-offset: 1px;
}

.brm-field input::placeholder,
.brm-field textarea::placeholder {
	color: #9298a1;
	opacity: 1;
}

.brm-rating-field {
	overflow: visible;
}

.brm-stars {
	display: inline-flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 4px;
}

.brm-stars input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.brm-stars label {
	margin: 0;
	color: #c9cdd3;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
	transition: color .15s ease, transform .15s ease;
}

.brm-stars label:hover,
.brm-stars label:hover ~ label,
.brm-stars input:checked ~ label {
	color: var(--brm-accent);
}

.brm-stars input:focus-visible + label {
	outline: 2px solid currentColor;
	outline-offset: 3px;
	border-radius: 2px;
}

.brm-stars label:hover {
	transform: scale(1.08);
}

.brm-form-actions {
	display: flex;
	justify-content: flex-start;
}

.brm-submit-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 24px;
	color: #fff;
	background: var(--brm-text);
	border: 1px solid var(--brm-text);
	border-radius: 8px;
	box-shadow: none;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.brm-submit-button:hover,
.brm-submit-button:focus-visible {
	color: #fff;
	background: #000;
	border-color: #000;
	transform: translateY(-1px);
}

.brm-submit-button:disabled {
	cursor: wait;
	opacity: .7;
	transform: none;
}

.brm-button-loading {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255,255,255,.4);
	border-top-color: currentColor;
	border-radius: 50%;
	animation: brm-spin .7s linear infinite;
}

.brm-review-form.is-loading .brm-button-loading {
	display: inline-block;
}

@keyframes brm-spin {
	to { transform: rotate(360deg); }
}

.brm-form-message {
	display: none;
	margin: 0 0 20px;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.5;
}

.brm-form-message.is-success,
.brm-form-message.is-error {
	display: block;
}

.brm-form-message.is-success {
	color: var(--brm-success);
	background: var(--brm-success-bg);
	border: 1px solid color-mix(in srgb, var(--brm-success) 24%, transparent);
}

.brm-form-message.is-error {
	color: var(--brm-error);
	background: var(--brm-error-bg);
	border: 1px solid color-mix(in srgb, var(--brm-error) 24%, transparent);
}

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

.brm-reviews {
	--brm-columns: 3;
	--brm-tablet-columns: 2;
	--brm-mobile-columns: 1;
	width: 100%;
}

.brm-reviews-grid {
	display: grid;
	grid-template-columns: repeat(var(--brm-columns), minmax(0, 1fr));
	gap: var(--brm-card-gap);
}

.brm-reviews-list {
	display: flex;
	flex-direction: column;
	gap: var(--brm-card-gap);
}

.brm-review-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--brm-border);
	border-radius: 14px;
	box-shadow: 0 8px 30px rgba(17, 24, 39, .06);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.brm-review-card:hover {
	box-shadow: 0 14px 38px rgba(17, 24, 39, .10);
}

.brm-review-card.is-featured {
	border-color: color-mix(in srgb, var(--brm-accent) 58%, var(--brm-border));
}

.brm-quote-icon {
	position: absolute;
	top: 12px;
	right: 20px;
	color: rgba(217, 169, 40, .18);
	font-family: Georgia, serif;
	font-size: 64px;
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
}

.brm-static-stars {
	position: relative;
	display: inline-block;
	align-self: flex-start;
	margin-bottom: 16px;
	font-size: 20px;
	line-height: 1;
	letter-spacing: 2px;
	white-space: nowrap;
}

.brm-stars-base {
	color: #d7dae0;
}

.brm-stars-fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	color: var(--brm-accent);
	white-space: nowrap;
}

.brm-review-title {
	margin: 0 0 12px;
	color: var(--brm-text);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.35;
}

.brm-review-text {
	flex: 1 1 auto;
	margin: 0 0 22px;
	color: #4b5563;
	font-size: 16px;
	line-height: 1.75;
	word-break: break-word;
}

.brm-author-reply {
	margin: 0 0 22px;
	padding: 15px 16px;
	color: #4b5563;
	background: var(--brm-soft);
	border-left: 3px solid var(--brm-accent);
	border-radius: 0 8px 8px 0;
	font-size: 14px;
	line-height: 1.6;
}

.brm-author-reply strong {
	display: block;
	margin-bottom: 3px;
	color: var(--brm-text);
}

.brm-review-footer {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
}

.brm-review-avatar {
	display: inline-flex;
	flex: 0 0 44px;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: #fff;
	background: var(--brm-text);
	border-radius: 50%;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .04em;
}

.brm-reviewer-info {
	min-width: 0;
}

.brm-reviewer-name {
	color: var(--brm-text);
	font-weight: 700;
	line-height: 1.35;
}

.brm-review-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin-top: 2px;
	color: var(--brm-muted);
	font-size: 13px;
	line-height: 1.4;
}

.brm-review-category:not(:first-child)::before {
	content: "•";
	margin-right: 12px;
}

.brm-reviews-slider {
	position: relative;
	padding: 0 54px 36px;
	overflow: hidden;
}

.brm-slider-viewport {
	overflow: hidden;
	touch-action: pan-y;
}

.brm-slider-track {
	display: flex;
	align-items: stretch;
	gap: var(--brm-card-gap);
	will-change: transform;
}

.brm-slide {
	flex: 0 0 auto;
	min-width: 0;
}

.brm-slider-arrow {
	position: absolute;
	top: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	color: var(--brm-text);
	background: #fff;
	border: 1px solid var(--brm-border);
	border-radius: 50%;
	box-shadow: 0 6px 18px rgba(17, 24, 39, .10);
	font: inherit;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-70%);
	z-index: 2;
}

.brm-slider-arrow:hover,
.brm-slider-arrow:focus-visible {
	color: #fff;
	background: var(--brm-text);
	border-color: var(--brm-text);
}

.brm-slider-arrow:disabled {
	cursor: default;
	opacity: .35;
}

.brm-slider-prev { left: 2px; }
.brm-slider-next { right: 2px; }

.brm-slider-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 12px;
	margin-top: 22px;
}

.brm-slider-dot {
	width: 8px;
	height: 8px;
	margin: 0;
	padding: 0;
	background: #c9cdd3;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: width .2s ease, background-color .2s ease;
}

.brm-slider-dot.is-active {
	width: 22px;
	background: var(--brm-text);
}

.brm-summary {
	display: grid;
	grid-template-columns: minmax(180px, .7fr) minmax(260px, 1.3fr);
	align-items: center;
	gap: 38px;
	width: 100%;
	padding: 30px;
	background: #fff;
	border: 1px solid var(--brm-border);
	border-radius: 14px;
}

.brm-summary-score {
	text-align: center;
}

.brm-average-number {
	margin-bottom: 8px;
	color: var(--brm-text);
	font-size: clamp(42px, 6vw, 64px);
	font-weight: 800;
	line-height: 1;
}

.brm-summary-score .brm-static-stars {
	align-self: auto;
	margin-bottom: 10px;
}

.brm-summary-count {
	color: var(--brm-muted);
	font-size: 14px;
}

.brm-rating-breakdown {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.brm-breakdown-row {
	display: grid;
	grid-template-columns: 72px minmax(100px, 1fr) 36px;
	align-items: center;
	gap: 12px;
	color: var(--brm-muted);
	font-size: 13px;
}

.brm-breakdown-bar {
	display: block;
	height: 9px;
	overflow: hidden;
	background: #e7e9ed;
	border-radius: 999px;
}

.brm-breakdown-bar > span {
	display: block;
	height: 100%;
	background: var(--brm-accent);
	border-radius: inherit;
}

.brm-breakdown-count {
	text-align: right;
}

.brm-empty {
	padding: 24px;
	color: var(--brm-muted);
	background: var(--brm-soft);
	border: 1px dashed var(--brm-border);
	border-radius: 10px;
	text-align: center;
}

@media (max-width: 1024px) {
	.brm-reviews-grid {
		grid-template-columns: repeat(var(--brm-tablet-columns), minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.brm-form-shell {
		padding: 22px 18px;
	}

	.brm-fields-row {
		grid-template-columns: 1fr;
	}

	.brm-submit-button {
		width: 100%;
	}

	.brm-reviews-grid {
		grid-template-columns: repeat(var(--brm-mobile-columns), minmax(0, 1fr));
	}

	.brm-review-card {
		padding: 22px;
	}

	.brm-reviews-slider {
		padding-right: 0;
		padding-left: 0;
	}

	.brm-slider-arrow {
		display: none;
	}

	.brm-summary {
		grid-template-columns: 1fr;
		gap: 26px;
		padding: 24px 18px;
	}

	.brm-breakdown-row {
		grid-template-columns: 64px minmax(80px, 1fr) 28px;
		gap: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.brm-review-card,
	.brm-submit-button,
	.brm-slider-track,
	.brm-slider-dot,
	.brm-stars label {
		transition: none !important;
		animation: none !important;
	}
}
