/**
 * Review Gate landing page (template-review-gate.php)
 * Full-screen, nav-free guest review funnel.
 * Reuses --everrow-* tokens from style.css; adds one scoped coral for Google.
 */

.review-gate-body {
	--rg-sage: var(--everrow-sage, #7d8f73);
	--rg-sage-dark: var(--everrow-green, #5a6b52);
	--rg-coral: #c15b45;
	--rg-coral-dark: #a8492f;
	--rg-charcoal: var(--everrow-charcoal, #172018);

	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	font-family: var(--everrow-body-font, 'DM Sans', system-ui, sans-serif);
	color: #fff;
	background: var(--rg-charcoal);
	overflow-x: hidden;
}

/* ── Collage background ─────────────────────────────── */
.rg-collage {
	position: fixed;
	inset: 0;
	z-index: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-auto-rows: 1fr;
}
@media (min-width: 700px) {
	.rg-collage { grid-template-columns: repeat(4, 1fr); }
}
.rg-collage__tile {
	background-size: cover;
	background-position: center;
	min-height: 0;
}
.rg-overlay {
	position: fixed;
	inset: 0;
	z-index: 1;
	background:
		radial-gradient(ellipse at center, rgba(23, 32, 24, 0.62) 0%, rgba(23, 32, 24, 0.82) 100%);
	backdrop-filter: saturate(1.05);
}

/* ── Stage / centered card ──────────────────────────── */
.rg-stage {
	position: relative;
	z-index: 2;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 20px calc(32px + env(safe-area-inset-bottom));
	box-sizing: border-box;
}
.rg-card {
	width: 100%;
	max-width: 520px;
	text-align: center;
}

/* ── Logo ───────────────────────────────────────────── */
.rg-logo {
	width: 132px;
	height: 132px;
	margin: 0 auto 28px;
	border-radius: 18px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	box-sizing: border-box;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}
.rg-logo--dark { background: var(--rg-charcoal); }
.rg-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

/* ── Typography ─────────────────────────────────────── */
.rg-heading {
	font-family: var(--everrow-heading-font, 'Playfair Display', Georgia, serif);
	font-weight: 700;
	font-size: clamp(1.9rem, 6vw, 2.6rem);
	line-height: 1.1;
	margin: 0 0 18px;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.rg-text {
	font-size: 1.05rem;
	line-height: 1.5;
	margin: 0 auto 16px;
	max-width: 27em;
	color: rgba(255, 255, 255, 0.94);
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}
.rg-text--lead { font-size: 1.15rem; font-weight: 500; }

/* ── Screens ────────────────────────────────────────── */
.rg-screen { display: none; }
.rg-screen.is-active { display: block; animation: rg-fade 0.35s ease; }
@keyframes rg-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Stars ──────────────────────────────────────────── */
.rg-stars {
	display: flex;
	justify-content: center;
	gap: clamp(6px, 3vw, 16px);
	margin: 26px 0 30px;
}
.rg-star {
	background: none;
	border: 0;
	padding: 4px;
	cursor: pointer;
	line-height: 0;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}
.rg-star svg {
	width: clamp(46px, 13vw, 66px);
	height: clamp(46px, 13vw, 66px);
	fill: transparent;
	stroke: #fff;
	stroke-width: 1.4;
	stroke-linejoin: round;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
	transition: fill 0.12s ease, transform 0.12s ease;
}
.rg-star.is-on svg { fill: #fff; }
@media (hover: hover) {
	.rg-star:hover svg { transform: scale(1.06); }
}
.rg-star:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 8px; }

/* ── Buttons ────────────────────────────────────────── */
.rg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	max-width: 420px;
	box-sizing: border-box;
	padding: 20px 28px;
	border: 0;
	border-radius: 14px;
	font-family: var(--everrow-body-font, 'DM Sans', system-ui, sans-serif);
	font-size: 1.25rem;
	font-weight: 500;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	touch-action: manipulation;
	transition: background 0.15s ease, transform 0.05s ease, opacity 0.15s ease;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.rg-btn:active { transform: translateY(1px); }

.rg-btn--sage { background: var(--rg-sage); }
@media (hover: hover) {
	.rg-btn--sage:hover { background: var(--rg-sage-dark); }
}
.rg-btn--sage:disabled { opacity: 0.5; cursor: not-allowed; }
.rg-btn--sage:disabled:hover { background: var(--rg-sage); }

.rg-btn--google { background: var(--rg-coral); }
.rg-btn--google:hover { background: var(--rg-coral-dark); }
.rg-google-g { width: 26px; height: 26px; flex: 0 0 auto; }

/* ── Feedback form (native) ─────────────────────────── */
.rg-form {
	margin-top: 22px;
	background: #fff;
	border-radius: 16px;
	padding: 22px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
	text-align: left;
	color: var(--everrow-ink, #1f2a21);
}
.rg-field-label {
	display: block;
	font-size: 0.92rem;
	font-weight: 500;
	margin: 0 0 6px;
	color: var(--everrow-ink, #1f2a21);
}
.rg-field-label span { color: var(--everrow-text-light, #666); font-weight: 400; }
.rg-feedback-form textarea,
.rg-feedback-form input[type="text"] {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #d9e1d2;
	border-radius: 10px;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 1rem;
	color: var(--everrow-ink, #1f2a21);
	margin-bottom: 16px;
}
.rg-feedback-form textarea { min-height: 130px; resize: vertical; }
.rg-feedback-form textarea:focus,
.rg-feedback-form input[type="text"]:focus {
	outline: none;
	border-color: var(--rg-sage);
	box-shadow: 0 0 0 3px rgba(125, 143, 115, 0.18);
}
.rg-feedback-form .rg-btn { margin-top: 4px; box-shadow: none; }
.rg-form__error {
	color: #c0392b;
	font-size: 0.95rem;
	margin: 12px 0 0;
}
.rg-form__success { text-align: center; padding: 8px 0; }
.rg-form__success .rg-heading {
	color: var(--everrow-ink, #1f2a21);
	font-size: 1.7rem;
	text-shadow: none;
	margin-bottom: 10px;
}
.rg-form__success .rg-text { color: var(--everrow-text, #2c2c2c); text-shadow: none; }
