/**
 * RenewRight quiz card and contact form.
 *
 * Tokens are declared on .rr-card so Elementor's style controls can override
 * any of them per instance. Every control selector is scoped under .rr-card:
 * Elementor's Global Kit styles bare `button` and `input` elements at (0,1,1),
 * and a lone class would lose to it and inherit the site's amber button look.
 */

.rr-card {
	--rr-surface: #ffffff;
	--rr-page: #f4f6f3;
	--rr-line: #dce4dd;
	--rr-ink: #16302a;
	--rr-muted: #5c6e66;
	--rr-brand: #1c5d48;
	--rr-brand-deep: #123f31;
	--rr-amber: #e0a33a;
	--rr-amber-deep: #c6892a;
	--rr-error: #b3261e;
	--rr-radius-card: 20px;
	--rr-radius-option: 12px;

	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 16px;
	background: var(--rr-surface);
	border: 1px solid var(--rr-line);
	border-radius: var(--rr-radius-card);
	padding: 28px 26px;
	font-family: Figtree, system-ui, -apple-system, sans-serif;
	color: var(--rr-ink);
	box-shadow: 0 12px 32px rgba(22, 48, 42, 0.08);
}

.rr-card *,
.rr-card *::before,
.rr-card *::after {
	box-sizing: inherit;
}

/* ------------------------------------------------------------------ */
/* Progress                                                            */
/* ------------------------------------------------------------------ */

.rr-quiz-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 24px;
}

.rr-step {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--rr-muted);
}

.rr-card .rr-back {
	appearance: none;
	background: none;
	border: 0;
	margin: 0;
	padding: 8px 0;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: var(--rr-brand);
	cursor: pointer;
}

.rr-card .rr-back:hover {
	color: var(--rr-brand-deep);
}

.rr-track {
	height: 6px;
	border-radius: 3px;
	background: var(--rr-line);
	overflow: hidden;
}

.rr-fill {
	height: 100%;
	width: 0;
	border-radius: 3px;
	background: var(--rr-brand);
	transition: width 0.2s ease-out;
}

/* ------------------------------------------------------------------ */
/* Question                                                            */
/* ------------------------------------------------------------------ */

.rr-quiz-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.rr-card .rr-q {
	margin: 0;
	font-family: Sora, Figtree, system-ui, sans-serif;
	font-size: 23px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: var(--rr-ink);
}

.rr-card .rr-q:focus {
	outline: none;
}

.rr-opts {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rr-card .rr-opt {
	display: block;
	width: 100%;
	min-height: 52px;
	margin: 0;
	text-align: left;
	background: var(--rr-surface);
	border: 1.5px solid var(--rr-line);
	border-radius: var(--rr-radius-option);
	padding: 12px 16px;
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--rr-ink);
	cursor: pointer;
	transition:
		background 0.15s ease,
		border-color 0.15s ease;
}

.rr-card .rr-opt:hover,
.rr-card .rr-opt-on {
	background: var(--rr-page);
	border-color: var(--rr-brand);
	color: var(--rr-ink);
}

.rr-intro {
	margin: 0 0 14px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--rr-muted);
}

/* ------------------------------------------------------------------ */
/* Fields                                                              */
/* ------------------------------------------------------------------ */

.rr-stack {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.rr-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.rr-label {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--rr-ink);
}

.rr-req {
	color: var(--rr-brand);
}

.rr-card .rr-field {
	width: 100%;
	min-height: 48px;
	margin: 0;
	background: var(--rr-surface);
	border: 1.5px solid var(--rr-line);
	border-radius: var(--rr-radius-option);
	padding: 12px 16px;
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
	color: var(--rr-ink);
}

.rr-card .rr-field::placeholder {
	color: var(--rr-muted);
	opacity: 1;
}

.rr-card .rr-field:focus {
	border-color: var(--rr-brand);
}

.rr-card .rr-field[aria-invalid='true'] {
	border-color: var(--rr-error);
}

.rr-consent-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.rr-card .rr-check {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--rr-brand);
	cursor: pointer;
}

.rr-consent-text {
	font-size: 14px;
	line-height: 1.5;
	color: var(--rr-muted);
	cursor: pointer;
}

.rr-card .rr-consent-text a {
	color: var(--rr-brand);
	text-decoration: underline;
}

.rr-card .rr-consent-text a:hover {
	color: var(--rr-brand-deep);
}

.rr-err {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--rr-error);
}

.rr-help {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--rr-muted);
}

.rr-help-lg {
	font-size: 16px;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.rr-card .rr-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	min-height: 54px;
	margin: 0;
	border: 1.5px solid transparent;
	border-radius: 999px;
	padding: 0 26px;
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition:
		background 0.15s ease,
		border-color 0.15s ease,
		transform 0.08s ease;
}

.rr-card .rr-btn:active {
	transform: translateY(1px);
}

.rr-card .rr-btn-amber {
	background: var(--rr-amber);
	border-color: var(--rr-amber);
	color: var(--rr-ink);
}

.rr-card .rr-btn-amber:hover {
	background: var(--rr-amber-deep);
	border-color: var(--rr-amber-deep);
	color: var(--rr-ink);
}

.rr-card .rr-btn[disabled],
.rr-card .rr-is-busy {
	opacity: 0.65;
	cursor: progress;
	transform: none;
}

.rr-card .rr-link {
	appearance: none;
	align-self: flex-start;
	background: none;
	border: 0;
	margin: 0;
	padding: 8px 0;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: var(--rr-brand);
	cursor: pointer;
}

.rr-card .rr-link:hover {
	color: var(--rr-brand-deep);
}

/* A stray `display` rule from a builder stylesheet must never override the
   hidden attribute: the Back control on step one depends on it. */
.rr-card [hidden] {
	display: none !important;
}

/* ------------------------------------------------------------------ */
/* Motion, focus and assistive text                                    */
/* ------------------------------------------------------------------ */

@keyframes rr-fade {
	from {
		opacity: 0;
		transform: translateY(4px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.rr-enter {
	animation: rr-fade 0.2s ease-out;
}

.rr-card :focus-visible {
	outline: 2px solid var(--rr-brand);
	outline-offset: 2px;
}

.rr-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.rr-fill,
	.rr-card .rr-opt,
	.rr-card .rr-btn {
		transition: none;
	}

	.rr-enter {
		animation: none;
	}
}

@media (max-width: 899px) {
	.rr-card {
		padding: 22px 18px;
	}

	.rr-card .rr-q {
		font-size: 21px;
	}

	.rr-card .rr-btn {
		align-self: stretch;
		min-height: 56px;
		text-align: center;
	}
}
