@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
	--ink: #17241F;
	--paper: #F4F3EC;
	--leaf: #1F6F54;
	--leaf-light: #E7F2ED;
	--leaf-dark: #154F3C;
	--clay: #8A5A44;
	--clay-light: #F3EAE5;
	--sun: #E8A33D;
	--line: #E4E1D6;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

.reviewflow-body {
	background: var(--paper);
	color: var(--ink);
	font-family: 'Inter', sans-serif;
	min-height: 100vh;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

:focus-visible {
	outline: 2px solid var(--leaf);
	outline-offset: 2px;
	border-radius: 4px;
}

.rf-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 40px 24px;
}

.rf-lang-switcher {
	width: 100%;
	max-width: 380px;
	display: flex;
	justify-content: flex-end;
	gap: 6px;
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(6px);
	border-radius: 9999px;
	padding: 6px;
	margin-bottom: 32px;
	box-shadow: 0 8px 24px -8px rgba(23, 36, 31, 0.12);
	align-self: center;
	justify-content: center;
}

.rf-flag-btn {
	width: 32px;
	height: 32px;
	border-radius: 9999px;
	border: 1px solid var(--line);
	background: transparent;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	opacity: 0.7;
	transition: all 0.15s ease;
	flex-shrink: 0;
}

.rf-flag-btn img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rf-flag-btn:hover { opacity: 1; transform: scale(1.05); }

.rf-flag-btn.is-active {
	opacity: 1;
	transform: scale(1.12);
	border-color: var(--sun);
	box-shadow: 0 0 0 2px var(--sun), 0 0 0 4px #fff;
}

.rf-ticket {
	width: 100%;
	max-width: 380px;
	background: #fff;
	border-radius: 32px;
	box-shadow: 0 20px 60px -15px rgba(23, 36, 31, 0.25);
	padding: 40px 32px 32px;
	animation: rf-pop 0.35s ease-out both;
}

@keyframes rf-pop {
	from { opacity: 0; transform: scale(0.96); }
	to { opacity: 1; transform: scale(1); }
}

@keyframes rf-fade-up {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.rf-step { animation: rf-fade-up 0.45s ease-out both; }

.rf-brand {
	margin: -40px -32px 20px;
	padding: 32px 28px 20px;
	background: #fff;
	border-radius: 32px 32px 0 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.rf-avatar {
	width: 100%;
	min-height: 100px;
	max-height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	font-family: 'Sora', sans-serif;
	font-weight: 700;
	font-size: 48px;
	color: rgba(23, 36, 31, 0.4);
}

.rf-avatar img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 220px;
	object-fit: contain;
}

.rf-business-name {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(23, 36, 31, 0.4);
	font-weight: 500;
	margin: 0;
}

.rf-question {
	font-family: 'Sora', sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 1.4;
	text-align: center;
	margin: 0 0 32px;
}

.rf-actions { display: flex; flex-direction: column; gap: 12px; }

.rf-btn {
	width: 100%;
	border: none;
	border-radius: 16px;
	padding: 16px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
	font-family: inherit;
}

.rf-btn:active { transform: scale(0.98); }
.rf-btn:disabled { opacity: 0.7; cursor: default; }

.rf-btn-positive {
	background: var(--leaf);
	color: #fff;
	box-shadow: 0 8px 24px -8px rgba(23, 36, 31, 0.12);
}
.rf-btn-positive:hover { background: var(--leaf-dark); }

.rf-btn-negative {
	background: transparent;
	color: var(--clay);
	border: 2px solid rgba(138, 90, 68, 0.3);
}
.rf-btn-negative:hover { background: var(--clay-light); }

.rf-btn-dark {
	background: var(--ink);
	color: var(--paper);
}
.rf-btn-dark:hover { background: rgba(23, 36, 31, 0.9); }

.rf-divider {
	position: relative;
	height: 0;
	border-top: 2px dashed var(--line);
	margin: 0 -32px 24px;
}
.rf-divider::before, .rf-divider::after {
	content: "";
	position: absolute;
	top: -12px;
	width: 24px;
	height: 24px;
	background: var(--paper);
	border-radius: 9999px;
}
.rf-divider::before { left: 20px; }
.rf-divider::after { right: 20px; }

.rf-subheading {
	font-family: 'Sora', sans-serif;
	font-weight: 700;
	font-size: 18px;
	text-align: center;
	margin: 0 0 4px;
}

.rf-muted {
	font-size: 14px;
	color: rgba(23, 36, 31, 0.5);
	text-align: center;
	margin: 0 0 24px;
}

.rf-form { display: flex; flex-direction: column; gap: 12px; }

.rf-field label {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: rgba(23, 36, 31, 0.6);
	margin-bottom: 4px;
}

.rf-field input, .rf-field textarea {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 10px 16px;
	font-size: 14px;
	font-family: inherit;
	outline: none;
	resize: none;
}
.rf-field input:focus, .rf-field textarea:focus { border-color: var(--leaf); }

.rf-error {
	font-size: 14px;
	color: #dc2626;
	background: #fef2f2;
	border-radius: 8px;
	padding: 8px 12px;
	margin: 0;
}

.rf-success-icon {
	width: 56px;
	height: 56px;
	border-radius: 9999px;
	background: var(--leaf-light);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: var(--leaf-dark);
	margin: 0 auto 20px;
}

#rf-step-success { text-align: center; padding: 16px 0; }

.rf-footer {
	font-size: 12px;
	color: rgba(23, 36, 31, 0.3);
	margin-top: 32px;
}

.rf-newsletter {
	width: 100%;
	max-width: 380px;
	background: #fff;
	border: 2px dashed var(--sun);
	border-radius: 24px;
	padding: 20px 24px;
	margin-top: 20px;
	text-align: center;
	animation: rf-fade-up 0.5s ease-out both;
}

.rf-newsletter-heading {
	font-family: 'Sora', sans-serif;
	font-weight: 700;
	font-size: 15px;
	margin: 0 0 14px;
}

.rf-newsletter-form {
	display: flex;
	gap: 8px;
}

.rf-newsletter-form input[type=email] {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 10px 14px;
	font-size: 14px;
	font-family: inherit;
	outline: none;
}
.rf-newsletter-form input[type=email]:focus { border-color: var(--sun); }

.rf-newsletter-form button {
	border: none;
	border-radius: 12px;
	padding: 10px 18px;
	background: var(--sun);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
	font-family: inherit;
	transition: background 0.15s ease;
}
.rf-newsletter-form button:hover { background: #d1912f; }
.rf-newsletter-form button:disabled { opacity: 0.6; cursor: default; }

.rf-newsletter-message {
	font-size: 14px;
	margin: 4px 0 0;
}
.rf-newsletter-message-success { color: var(--leaf-dark); font-weight: 600; }
.rf-newsletter-message-error { color: #dc2626; }
