/* Scoped to #rr-assessment-wrap so theme CSS does not override. */
/* Progress-only rules also apply under #rr-assessment-progress-bar-root (standalone shortcode). */

/* Container */
#rr-assessment-wrap {
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
}

/* Steps — hide all, show active */
#rr-assessment-wrap .rr-step {
	display: none;
}
#rr-assessment-wrap .rr-step.active {
	display: block;
}

/* Progress meter — header grid: count + dots (col 1), rating + section (col 2) */
#rr-assessment-wrap .rr-assessment-progress,
#rr-assessment-progress-bar-root .rr-assessment-progress {
	margin-bottom: 0;
}
#rr-assessment-wrap .rr-meter-header,
#rr-assessment-progress-bar-root .rr-meter-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-rows: auto auto;
	align-items: center;
	column-gap: 12px;
	row-gap: 2px;
	margin-bottom: 6px;
}
#rr-assessment-wrap .rr-meter-count,
#rr-assessment-progress-bar-root .rr-meter-count {
	grid-column: 1;
	grid-row: 1;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	min-width: 0;
	justify-self: start;
	align-self: center;
}
#rr-assessment-wrap .rr-meter-section,
#rr-assessment-progress-bar-root .rr-meter-section {
	grid-column: 2;
	grid-row: 2;
	font-size: 14px;
	font-weight: 500;
	color: #0e6b6f;
	text-align: right;
	min-width: 0;
	justify-self: end;
}
#rr-assessment-wrap .rr-estimated-rating,
#rr-assessment-progress-bar-root .rr-estimated-rating {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	font-size: 13px;
	color: var(--rr-text-muted, #959ea5);
	white-space: nowrap;
	min-width: 0;
	max-width: 100%;
	justify-self: end;
}
#rr-assessment-wrap .rr-rating-prefix,
#rr-assessment-progress-bar-root .rr-rating-prefix {
	flex-shrink: 0;
}
#rr-assessment-wrap .rr-rating-pip,
#rr-assessment-progress-bar-root .rr-rating-pip {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}
#rr-assessment-wrap .rr-rating-pip--high,
#rr-assessment-progress-bar-root .rr-rating-pip--high {
	background: var(--rr-red, #e24b4a);
}
#rr-assessment-wrap .rr-rating-pip--fragile,
#rr-assessment-progress-bar-root .rr-rating-pip--fragile {
	background: var(--rr-amber, #ef9f27);
}
#rr-assessment-wrap .rr-rating-pip--moderate,
#rr-assessment-progress-bar-root .rr-rating-pip--moderate {
	background: var(--rr-teal, #1d9e75);
}
#rr-assessment-wrap .rr-rating-pip--strong,
#rr-assessment-progress-bar-root .rr-rating-pip--strong {
	background: var(--rr-green, #639922);
}
#rr-assessment-wrap .rr-rating-text,
#rr-assessment-progress-bar-root .rr-rating-text {
	overflow: hidden;
	text-overflow: ellipsis;
}
#rr-assessment-wrap .rr-rating-text strong,
#rr-assessment-progress-bar-root .rr-rating-text strong {
	font-weight: 500;
	color: var(--rr-text-primary, #333);
}
#rr-assessment-wrap .rr-meter-dots,
#rr-assessment-progress-bar-root .rr-meter-dots {
	grid-column: 1;
	grid-row: 2;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: 5px;
	margin: 0;
	padding: 0;
	max-width: 100%;
	min-width: 0;
	overflow-x: auto;
}
#rr-assessment-wrap .rr-meter-dot,
#rr-assessment-progress-bar-root .rr-meter-dot {
	display: block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #e0e0e0;
	transition: background 0.2s ease, width 0.2s ease, border-radius 0.2s ease;
	box-sizing: border-box;
	flex-shrink: 0;
}
#rr-assessment-wrap .rr-meter-dot--answered,
#rr-assessment-progress-bar-root .rr-meter-dot--answered {
	background: #0e6b6f;
}
#rr-assessment-wrap .rr-meter-dot--current,
#rr-assessment-progress-bar-root .rr-meter-dot--current {
	width: 18px;
	min-width: 18px;
	height: 6px;
	border-radius: 3px;
	background: #0e6b6f;
}

#rr-assessment-wrap .rr-question-hint.b1 {
	color: #959ea5 !important;
}

/* Radio / checkbox options */
#rr-assessment-wrap .rr-options {
	list-style: none;
	padding: 0;
	margin-top: 2rem;
}
#rr-assessment-wrap .rr-options li {
	margin-bottom: 0.75rem;
}
#rr-assessment-wrap .rr-options label,
#rr-assessment-wrap .rr-option-label {
	display: block;
	padding: 0.75rem 1rem;
	border: 1px solid #ddd;
	border-radius: 6px;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}
#rr-assessment-wrap .rr-options label:hover,
#rr-assessment-wrap .rr-option-label:hover {
	border-color: #0E6B6F;
	background: #a3c7c8;
}
#rr-assessment-wrap .rr-options input:checked + span,
#rr-assessment-wrap .rr-options label:has(input:checked),
#rr-assessment-wrap .rr-option-label:has(input:checked) {
	border-color: #0E6B6F;
	background: #0E6B6F;
	color: #fff;
}
#rr-assessment-wrap .rr-options input[type="radio"],
#rr-assessment-wrap .rr-options input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
#rr-assessment-wrap .rr-option-label {
	position: relative;
}

/* Nav buttons */
#rr-assessment-wrap #rr-assessment-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 2rem;
	gap: 1rem;
}
#rr-assessment-wrap .rr-nav-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-left: auto;
	flex-wrap: wrap;
	justify-content: flex-end;
}
#rr-assessment-wrap .rr-btn-dev-bypass {
	font-size: 13px;
	padding: 12px 16px;
	border-style: dashed;
	border-color: #888;
	color: #666;
}
#rr-assessment-wrap .rr-btn-dev-bypass:hover {
	border-color: #0E6B6F;
	color: #0E6B6F;
}
#rr-assessment-wrap #rr-assessment-nav.is-hidden {
	display: none;
}
#rr-assessment-wrap .rr-btn {
	padding: 16px 33px;
	border-radius: 5px;
	font-size: 14px;
	cursor: pointer;
	border: 2px solid #0E6B6F;
	background: transparent;
	background-color: transparent;
}
#rr-assessment-wrap .rr-btn-next {
	background: #0E6B6F;
	background-color: #0E6B6F;
	color: #fff;
	border-color: #0E6B6F;
}
#rr-assessment-wrap .rr-btn-next:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
#rr-assessment-wrap #rr-btn-checkout {
	width: 100%;
	padding: 1rem;
	font-size: 1.1rem;
	background: #0E6B6F;
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	margin-top: 1rem;
}
#rr-assessment-wrap #rr-btn-checkout:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Field errors */
#rr-assessment-wrap .rr-field-error {
	color: #c0392b;
	font-size: 13px;
	margin-top: 0.5rem;
}

/* Section label */
#rr-assessment-wrap .rr-section-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #0E6B6F;
	margin-bottom: 0.5rem;
}

#rr-assessment-wrap .rr-step-meta {
	font-size: 14px;
	color: #666;
}
#rr-assessment-wrap .rr-step-disclaimer {
	font-size: 13px;
	color: #888;
}
#rr-assessment-wrap .rr-field {
	margin-bottom: 1rem;
}
#rr-assessment-wrap .rr-field label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}
#rr-assessment-wrap .rr-field input[type="text"],
#rr-assessment-wrap .rr-field input[type="email"],
#rr-assessment-wrap .rr-field textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid #ddd;
	border-radius: 6px;
	box-sizing: border-box;
}
#rr-assessment-wrap .rr-checkout-warning {
	font-size: 14px;
	color: #c0392b;
	margin-bottom: 0.75rem;
}

/* Pre-checkout score reveal (step 18) */
#rr-assessment-wrap .rr-step--score-reveal .rr-section-label {
	margin-bottom: 0.75rem;
}
#rr-assessment-wrap .rr-score-reveal__hero {
	margin: 0 0 1.25rem;
}
#rr-assessment-wrap .rr-score-reveal__number {
	display: flex;
	align-items: baseline;
	gap: 0.35rem;
	line-height: 1;
	color: #0e6b6f;
}
#rr-assessment-wrap .rr-score-reveal__number #rr-score-value {
	font-size: clamp(3rem, 18vw, 4.5rem);
	font-weight: 600;
	letter-spacing: -0.03em;
}
#rr-assessment-wrap .rr-score-reveal__denom {
	font-size: 1.125rem;
	font-weight: 500;
	color: #666;
}
#rr-assessment-wrap .rr-score-reveal__band {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0.75rem 0 0;
	font-size: 1.125rem;
	color: #333;
}
#rr-assessment-wrap .rr-score-reveal__band .rr-rating-pip {
	width: 10px;
	height: 10px;
}
#rr-assessment-wrap .rr-assessment__tier-blurb {
	margin: 0.5rem 0 0;
	font-size: 1rem;
	line-height: 1.55;
	color: #333;
}
#rr-assessment-wrap .rr-score-reveal__why {
	margin: 0 0 1.5rem;
}
#rr-assessment-wrap .rr-score-reveal__why p {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	line-height: 1.55;
	color: #333;
}
#rr-assessment-wrap .rr-score-reveal__why p:last-child {
	margin-bottom: 0;
}
#rr-assessment-wrap .rr-score-reveal__placeholder {
	font-size: 1rem;
	color: #666;
	margin: 0 0 1.5rem;
}
#rr-assessment-wrap .rr-score-reveal__checkout {
	padding-top: 0.5rem;
	border-top: 1px solid #e6e0d4;
}
#rr-assessment-wrap .rr-score-reveal__checkout p {
	margin-bottom: 0.75rem;
}

@media (max-width: 375px) {
	#rr-assessment-wrap .rr-score-reveal__number #rr-score-value {
		font-size: 2.75rem;
	}
	#rr-assessment-wrap .rr-score-reveal__band {
		font-size: 1rem;
	}
	#rr-assessment-wrap .rr-score-reveal__why p {
		font-size: 0.95rem;
	}
	#rr-assessment-wrap #rr-btn-checkout {
		font-size: 1rem;
		padding: 0.9rem 0.75rem;
	}
}
