/**
 * A1 Tools — Review Funnel base styles.
 *
 * Layout + sensible defaults only. Colors, typography, spacing, borders, and
 * button skins are overridden per-instance by the Elementor widget's
 * `selectors` (see class-a1-tools-review-widget.php). The shortcode uses these
 * defaults as-is.
 *
 * @since 2.6.0
 */

.a1tools-review-wrap {
	max-width: 480px;
	margin: 0 auto;
	box-sizing: border-box;
}

.a1tools-review-wrap *,
.a1tools-review-wrap *::before,
.a1tools-review-wrap *::after {
	box-sizing: border-box;
}

/* ── Stars ─────────────────────────────────────────────────────── */
/*
 * Each star is a real <button>, so host themes can skin it. Notably
 * Elementor's global kit ships
 *   `.elementor-kit-N button { background; padding: 15px 50px; box-shadow }`
 * at specificity (0,1,1), which beats a bare `.a1tools-review__star` (0,1,0):
 * it paints every star as a padded, coloured button and balloons the row
 * wider than its 480px container, which both creates the "yellow box" look
 * and breaks the centering. Scoping the star rules under `.a1tools-review`
 * lifts them to (0,2,0)+ so they win on specificity alone — no !important
 * needed (host themes set these without !important; verified against the
 * live SiteGround/Elementor build). The full button-property reset keeps the
 * glyph bare on any theme across the fleet.
 */
.a1tools-review .a1tools-review__stars {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	max-width: 100%;
	gap: 6px;
	margin: 4px 0;
}

.a1tools-review .a1tools-review__star {
	-webkit-appearance: none;
	appearance: none;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	margin: 0;
	min-width: 0;
	width: auto;
	height: auto;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1;
	cursor: pointer;
	color: #d1d5db;
	font-size: 40px;
	transition: color 0.15s ease, transform 0.12s ease;
}

.a1tools-review .a1tools-review__star:hover {
	transform: scale(1.08);
}

.a1tools-review .a1tools-review__star.is-active,
.a1tools-review .a1tools-review__star.is-hover {
	color: #f5a623;
}

/* ── Text ──────────────────────────────────────────────────────── */
.a1tools-review__title {
	margin: 0 0 8px;
	font-size: 1.25em;
	line-height: 1.25;
}

.a1tools-review__text {
	margin: 0 0 12px;
	line-height: 1.5;
}

/* ── Panels ────────────────────────────────────────────────────── */
.a1tools-review__panel {
	margin-top: 16px;
}

/* ── Feedback form ─────────────────────────────────────────────── */
.a1tools-review__form {
	display: block;
	margin: 0;
}

.a1tools-review__field {
	margin-bottom: 10px;
	text-align: left;
}

.a1tools-review__label {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 500;
}

.a1tools-review__input,
.a1tools-review__textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font: inherit;
	color: inherit;
	background: #fff;
}

.a1tools-review__textarea {
	resize: vertical;
	min-height: 88px;
}

.a1tools-review__input:focus,
.a1tools-review__textarea:focus {
	outline: none;
	border-color: #f5a623;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.a1tools-review__btn {
	display: inline-block;
	border: 0;
	cursor: pointer;
	padding: 11px 22px;
	border-radius: 6px;
	background: #f5a623;
	color: #fff;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease, filter 0.18s ease;
}

.a1tools-review__btn:hover {
	filter: brightness(0.95);
	color: #fff;
}

.a1tools-review__submit {
	margin-top: 4px;
}

/* ── Secondary (compliant public-review escape hatch) ──────────── */
.a1tools-review__secondary {
	display: inline-block;
	margin-top: 12px;
	font-size: 13px;
	opacity: 0.8;
	text-decoration: underline;
}

.a1tools-review__secondary:hover {
	opacity: 1;
}

/* ── Status messages ───────────────────────────────────────────── */
.a1tools-review__feedback {
	margin-top: 12px;
	min-height: 1em;
}

.a1tools-review__feedback--error {
	color: #dc2626;
}

.a1tools-review__feedback--success {
	color: #15803d;
	font-weight: 500;
}

/* ── Honeypot (visually hidden, off-screen) ────────────────────── */
.a1tools-review__honeypot {
	position: absolute !important;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* hidden attribute hard-off for our toggled regions */
.a1tools-review__step[hidden],
.a1tools-review__panel[hidden] {
	display: none !important;
}
