/**
 * HB Reviews – frontend stílus.
 * Csak a szükséges szabályok; a téma meglévő palettájához illeszkedik,
 * de önálló fallback értékekkel is működik.
 */

.hb-reviews,
.hb-review-form {
	--hb-accent: #E91E8A;
	--hb-star: #FFC107;
	--hb-card: #ffffff;
	--hb-text: #37474F;
	--hb-muted: #78909C;
	--hb-bg: #F0F7FF;
}

/* ---- Szekció ---- */
.hb-reviews {
	padding: 64px 20px 40px;
	background: var(--hb-bg);
}

.hb-reviews__inner,
.hb-review-form__inner {
	max-width: 1100px;
	margin: 0 auto;
}

.hb-reviews__head {
	text-align: center;
	margin-bottom: 32px;
}

.hb-reviews__head h2 {
	font-size: 2rem;
	margin: 0 0 8px;
}

.hb-reviews__summary {
	font-size: 1.1rem;
	color: var(--hb-text);
}

.hb-reviews__count {
	color: var(--hb-muted);
}

.hb-reviews__empty {
	text-align: center;
	color: var(--hb-muted);
}

/* ---- Csillagok ---- */
.hb-stars {
	display: inline-flex;
	gap: 2px;
	line-height: 1;
	vertical-align: middle;
}

.hb-star {
	font-size: 1.15em;
	color: #dcdcdc;
}

.hb-star.is-full {
	color: var(--hb-star);
}

/* ---- Reszponzív rács: desktop 3 / tablet 2 / mobil 1 ---- */
.hb-reviews__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 960px) {
	.hb-reviews__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.hb-reviews__grid {
		grid-template-columns: 1fr;
	}
}

/* ---- Kártya ---- */
.hb-review-card {
	background: var(--hb-card);
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 4px 20px rgba(21, 101, 192, 0.08);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hb-review-card__body {
	color: var(--hb-text);
	line-height: 1.6;
	margin: 0;
	flex: 1;
}

.hb-review-card__foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid #eef2f7;
	padding: 12px 0 0;
	margin: 0;
	background: none;
	color: inherit;
	text-align: left;
}

.hb-review-card__name {
	font-weight: 700;
	color: #1A237E;
}

.hb-review-card__date {
	color: var(--hb-muted);
	font-size: 0.9rem;
}

/* ---- Visszajelzés ---- */
.hb-reviews__notice {
	max-width: 640px;
	margin: 0 auto 24px;
	padding: 14px 18px;
	border-radius: 12px;
	text-align: center;
}

.hb-reviews__notice--success {
	background: #E8F5E9;
	color: #2E7D32;
}

.hb-reviews__notice--error {
	background: #FDECEA;
	color: #C62828;
}

/* ---- Űrlap ---- */
.hb-review-form {
	padding: 0 20px 64px;
	background: var(--hb-bg);
}

.hb-review-form h3 {
	text-align: center;
	font-size: 1.5rem;
	margin: 0 0 24px;
}

.hb-form {
	max-width: 640px;
	margin: 0 auto;
	background: #fff;
	padding: 28px;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(21, 101, 192, 0.08);
}

.hb-field {
	margin: 0 0 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hb-field label {
	font-weight: 600;
	color: var(--hb-text);
}

.hb-field input[type="text"],
.hb-field input[type="email"],
.hb-field textarea {
	padding: 12px 14px;
	border: 1px solid #cfd8dc;
	border-radius: 10px;
	font: inherit;
	width: 100%;
	box-sizing: border-box;
}

.hb-field input:focus,
.hb-field textarea:focus {
	outline: 2px solid var(--hb-accent);
	border-color: var(--hb-accent);
}

.hb-field [aria-invalid="true"] {
	border-color: #C62828;
}

.req {
	color: var(--hb-accent);
}

.hb-note {
	font-weight: 400;
	color: var(--hb-muted);
	font-size: 0.85em;
}

.hb-gdpr label {
	flex-direction: row;
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
}

.hb-submit {
	background: var(--hb-accent);
	color: #fff;
	border: 0;
	padding: 14px 32px;
	border-radius: 50px;
	font-weight: 700;
	font-size: 1.05rem;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.hb-submit:hover {
	transform: translateY(-2px);
}

/* ---- Honeypot elrejtése (nem display:none, hogy a botok kitöltsék) ---- */
.hb-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---- Csillagválasztó: tiszta CSS, JS nélkül ---- */
.hb-rating-field legend {
	font-weight: 600;
	margin-bottom: 6px;
}

.hb-rating-input {
	display: inline-flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 4px;
}

.hb-rating-input input {
	position: absolute;
	left: -9999px;
}

.hb-rating-input label {
	font-size: 2rem;
	color: #dcdcdc;
	cursor: pointer;
	transition: color 0.15s ease;
	line-height: 1;
}

/* A kiválasztott csillag és az összes tőle "kisebb" (DOM-ban utána álló) kigyullad. */
.hb-rating-input input:checked ~ label,
.hb-rating-input label:hover,
.hb-rating-input label:hover ~ label {
	color: var(--hb-star);
}
