/*
 * PACE Assessment app styles. Deliberately self-contained (doesn't rely on
 * GeneratePress/the theme, since this page never loads the theme's header/
 * footer) and mobile-first: the assessment is as likely to be taken on a
 * phone as a desktop, so touch targets and single-column layout come first,
 * with a max-width applied only above the tablet breakpoint.
 */

.accounnect-assessment-page {
	margin: 0;
	background: #f4f6f8;
	color: #1a2233;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-variant-numeric: tabular-nums;
	line-height: 1.6;
}

.accounnect-assessment-shell {
	box-sizing: border-box;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 16px;
}

.accounnect-assessment-shell * {
	box-sizing: border-box;
}

/* ---- Login gate / start / results shared "card" ---- */

.accounnect-assessment-card {
	width: 100%;
	max-width: 640px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(20, 30, 50, 0.08);
	padding: 28px 24px;
	margin: auto;
}

.accounnect-assessment-card h1 {
	font-size: 1.5rem;
	margin: 0 0 12px;
}

.accounnect-assessment-note {
	font-size: 0.9rem;
	color: #5a6472;
}

.accounnect-loading {
	margin: auto;
	color: #5a6472;
}

/* ---- Start screen ---- */

.accounnect-start-meta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin: 16px 0 20px;
}

.accounnect-pill {
	background: #eef2ff;
	color: #2c3e91;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 0.85rem;
	font-weight: 600;
}

.accounnect-rules {
	margin: 0 0 24px;
	padding-left: 20px;
	font-size: 0.92rem;
	color: #3a4356;
}

.accounnect-rules li {
	margin-bottom: 6px;
}

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

.accounnect-btn {
	display: inline-block;
	border: none;
	border-radius: 8px;
	padding: 14px 22px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	min-height: 48px;
	min-width: 120px;
	text-align: center;
}

.accounnect-btn-primary {
	background: #2b3fd6;
	color: #fff;
}

.accounnect-btn-primary:hover {
	background: #212fb0;
}

.accounnect-btn-secondary {
	background: #eef1f6;
	color: #1a2233;
}

.accounnect-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/*
 * .accounnect-btn's own `display: inline-block` above is an author-stylesheet
 * rule, so it beats the browser's built-in `[hidden] { display: none }` UA
 * rule regardless of specificity - meaning any .accounnect-btn a script sets
 * .hidden = true on (the join wizard's Previous button on step 1, its Next
 * button on the last step, etc.) was staying visible AND clickable even
 * though it was correctly marked hidden in the DOM (2026-09-28 live report:
 * the Next button stayed active on the last Create Account step). This one
 * rule, with higher specificity than the class alone, restores the expected
 * "hidden means gone" behavior everywhere .accounnect-btn + [hidden] is used.
 */
.accounnect-btn[hidden] {
	display: none;
}

/* ---- In-progress question screen ---- */

.accounnect-exam {
	width: 100%;
	max-width: 720px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.accounnect-exam-header {
	position: sticky;
	top: 0;
	z-index: 5;
	background: #f4f6f8;
	padding: 8px 0 4px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.accounnect-progress {
	font-weight: 600;
	color: #3a4356;
}

.accounnect-timer {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	font-size: 1.15rem;
	background: #fff;
	border-radius: 8px;
	padding: 6px 14px;
	box-shadow: 0 1px 4px rgba(20, 30, 50, 0.1);
}

.accounnect-timer.accounnect-timer-low {
	color: #b3261e;
	background: #fdecea;
}

.accounnect-progress-bar {
	height: 6px;
	border-radius: 3px;
	background: #dfe4ee;
	overflow: hidden;
}

.accounnect-progress-bar-fill {
	height: 100%;
	background: #2b3fd6;
	transition: width 0.2s ease;
}

.accounnect-question-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(20, 30, 50, 0.08);
	padding: 22px 20px;
}

.accounnect-question-text {
	font-size: 1.125rem;
	line-height: 1.6;
	margin: 0 0 18px;
	white-space: pre-wrap;
}

.accounnect-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.accounnect-option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	border: 2px solid #e3e7ee;
	border-radius: 10px;
	padding: 12px 14px;
	cursor: pointer;
	min-height: 48px;
}

.accounnect-option:hover {
	border-color: #b7c0f7;
}

.accounnect-option.accounnect-option-selected {
	border-color: #2b3fd6;
	background: #eef1ff;
}

.accounnect-option input {
	margin-top: 3px;
	flex-shrink: 0;
}

.accounnect-option-letter {
	font-weight: 700;
	margin-right: 4px;
}

.accounnect-exam-footer {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.accounnect-exam-footer .accounnect-btn {
	flex: 1 1 auto;
}

.accounnect-jump-grid {
	display: grid;
	grid-template-columns: repeat(10, 1fr);
	gap: 6px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(20, 30, 50, 0.08);
	padding: 14px;
}

.accounnect-jump-btn {
	/* Explicit colour/padding/centering: the theme's global button styles
	   (light text, wide padding) otherwise make the numbers unreadable or
	   clipped inside these small square buttons. */
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	min-width: 0;
	padding: 0;
	border: 1px solid #c9d0de;
	border-radius: 6px;
	background: #f8f9fc;
	color: #1f2937;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	cursor: pointer;
}

.accounnect-jump-btn:hover,
.accounnect-jump-btn:focus {
	background: #e8ecf8;
	color: #1f2937;
}

.accounnect-jump-btn.answered,
.accounnect-jump-btn.answered:hover,
.accounnect-jump-btn.answered:focus {
	background: #dff3e3;
	border-color: #8fd3a1;
	color: #14532d;
}

.accounnect-jump-btn.current,
.accounnect-jump-btn.current:hover,
.accounnect-jump-btn.current:focus {
	outline: 2px solid #2b3fd6;
	outline-offset: 1px;
	background: #2b3fd6;
	border-color: #2b3fd6;
	color: #fff;
}

/* ---- Results screen ---- */

/* Shown when PACE Score >= 60: blinking congratulation for the next level of
   PACE skill upgradation. Blink is disabled for users who prefer reduced motion. */
.accounnect-upgrade-banner {
	background: #fff8e1;
	border: 2px solid #f5b800;
	color: #7a4b00;
	border-radius: 12px;
	padding: 16px 18px;
	text-align: center;
	font-size: 1.1rem;
	font-weight: 700;
	animation: accounnect-blink 1s ease-in-out infinite;
}

@keyframes accounnect-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
	.accounnect-upgrade-banner { animation: none; }
}

.accounnect-results {
	width: 100%;
	max-width: 720px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.accounnect-score-hero {
	background: linear-gradient(135deg, #2b3fd6, #5865e6);
	color: #fff;
	border-radius: 14px;
	padding: 28px 22px;
	text-align: center;
}

.accounnect-score-value {
	font-size: 3rem;
	font-weight: 800;
	line-height: 1;
}

.accounnect-score-sub {
	margin-top: 6px;
	opacity: 0.9;
}

.accounnect-results-section {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(20, 30, 50, 0.08);
	padding: 18px 20px;
}

.accounnect-results-section h2 {
	font-size: 1.05rem;
	margin: 0 0 12px;
}

.accounnect-topic-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	font-size: 0.92rem;
}

.accounnect-topic-name {
	flex: 1 1 auto;
	min-width: 0;
}

.accounnect-topic-bar {
	flex: 1 1 40%;
	height: 8px;
	border-radius: 4px;
	background: #eef1f6;
	overflow: hidden;
}

.accounnect-topic-bar-fill {
	height: 100%;
	background: #2b3fd6;
}

.accounnect-topic-percent {
	flex: 0 0 44px;
	text-align: right;
	font-weight: 600;
}

.accounnect-tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.accounnect-tag {
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 0.85rem;
	font-weight: 600;
}

.accounnect-tag-strength {
	background: #dff3e3;
	color: #1c6b32;
}

.accounnect-tag-development {
	background: #fdecea;
	color: #a3271e;
}

.accounnect-course-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.accounnect-course-item {
	border: 1px solid #e3e7ee;
	border-radius: 10px;
	padding: 10px 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.accounnect-error-banner {
	background: #fdecea;
	color: #a3271e;
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 12px;
}

/* ---- Mobile tightening ---- */

@media (max-width: 480px) {
	.accounnect-assessment-shell {
		padding: 10px;
	}
	.accounnect-question-card,
	.accounnect-assessment-card,
	.accounnect-results-section {
		padding: 16px 14px;
	}
	.accounnect-score-value {
		font-size: 2.4rem;
	}
	.accounnect-jump-grid {
		grid-template-columns: repeat(6, 1fr);
	}
	.accounnect-exam-footer .accounnect-btn {
		min-width: 0;
	}
}

/* ---- Tablet/desktop: cap width, add breathing room ---- */

@media (min-width: 900px) {
	.accounnect-assessment-shell {
		padding: 32px 16px;
	}
}
