/* =========================================================
   TCA PATHWAY QUIZ & RESULTS — pathway.css
   Extends core.css. Used on both:
     /find-your-path/index.php  (quiz)
     /my-pathway/dynamic.php    (results)
   ========================================================= */

/* ---------------------------------------------------------
   QUIZ PAGE — Full-screen Typeform-style experience
   --------------------------------------------------------- */

body.pathway-quiz {
	background: #f7f7f5;
	color: #000000;
	overflow: hidden;
	height: 100vh;
}

/* Progress bar */
#quiz-progress-bar-wrap {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: rgba(0,0,0,0.08);
	z-index: 100;
}

#quiz-progress-bar {
	height: 100%;
	background: var(--primary-color);
	width: 0%;
	transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo bar */
#quiz-logo-bar {
	position: fixed;
	top: 16px;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 40px;
	z-index: 99;
}

#quiz-logo-bar img {
	height: 60px;
	opacity: 1;
}

#quiz-step-counter {
	font-size: 13px;
	font-weight: 400;
	color: rgba(0,0,0,0.35);
	letter-spacing: 0.04em;
}

/* Main quiz viewport */
#quiz-viewport {
	width: 100%;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

/* Each step slide */
.quiz-step {
	position: absolute;
	width: 100%;
	max-width: 680px;
	padding: 0 40px;
	box-sizing: border-box;
	opacity: 0;
	transform: translateY(40px);
	pointer-events: none;
	transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
	            transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-step.active {
	opacity: 1;
	transform: translateY(0px);
	pointer-events: all;
}

.quiz-step.exiting-up {
	opacity: 0;
	transform: translateY(-40px);
}

/* Step number badge */
.quiz-step-num {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--primary-color);
	margin-bottom: 18px;
	display: block;
}

/* Question text */
.quiz-step h2 {
	font-size: 36px;
	line-height: 44px;
	margin-bottom: 10px;
	color: #111111;
	font-weight: 600;
}

.quiz-step p.quiz-sub {
	font-size: 16px;
	line-height: 24px;
	color: rgba(0,0,0,0.45);
	margin-bottom: 28px;
	margin-top: 8px;
	font-weight: 300;
}

/* Option cards — single and multi-select */
.quiz-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.quiz-options.two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.quiz-option {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
	border: 1px solid rgba(0,0,0,0.12);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
	background: #ffffff;
	position: relative;
	user-select: none;
}

.quiz-option:hover {
	border-color: rgba(0,0,0,0.3);
	background: #fafafa;
}

.quiz-option.selected {
	border-color: var(--primary-color);
	background: rgba(167, 35, 25, 0.05);
}

.quiz-option .opt-key {
	width: 28px;
	height: 28px;
	min-width: 28px;
	border: 1px solid rgba(0,0,0,0.15);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 600;
	color: rgba(0,0,0,0.3);
	transition: all 0.2s ease;
	background: rgba(0,0,0,0.03);
}

.quiz-option.selected .opt-key {
	background: var(--primary-color);
	border-color: var(--primary-color);
	color: #fff;
}

.quiz-option .opt-label {
	font-size: 16px;
	font-weight: 400;
	color: rgba(0,0,0,0.75);
	line-height: 22px;
	margin: 0;
}

.quiz-option.selected .opt-label {
	color: #111111;
}

/* Text inputs (step 0 — name/email) */
.quiz-input-group {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 32px;
}

.quiz-input-group input {
	background: #ffffff;
	border: 1px solid rgba(0,0,0,0.18);
	border-radius: 10px;
	padding: 16px 20px;
	font-size: 18px;
	font-family: 'Inter', serif;
	font-weight: 300;
	color: #111111;
	width: 100%;
	box-sizing: border-box;
	transition: border-color 0.2s ease;
	outline: none;
	-webkit-appearance: none;
}

.quiz-input-group input::placeholder {
	color: rgba(0,0,0,0.3);
}

.quiz-input-group input:focus {
	border-color: rgba(0,0,0,0.4);
	background: #fff;
}

.quiz-input-group input.error {
	border-color: var(--primary-color);
}

/* Finance slider */
.quiz-slider-wrap {
	margin-bottom: 36px;
}

.quiz-slider-labels {
	display: flex;
	justify-content: space-between;
	margin-bottom: 10px;
}

.quiz-slider-labels span {
	font-size: 13px;
	color: rgba(0,0,0,0.65);
	font-weight: 400;
}

input[type="range"].quiz-slider {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 4px;
	border-radius: 2px;
	background: rgba(0,0,0,0.12);
	outline: none;
	cursor: pointer;
	margin: 0 0 16px;
	padding: 0;
	border: none;
}

input[type="range"].quiz-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--primary-color);
	cursor: pointer;
	box-shadow: 0 0 0 4px rgba(167,35,25,0.25);
	transition: box-shadow 0.2s ease;
}

input[type="range"].quiz-slider::-webkit-slider-thumb:hover {
	box-shadow: 0 0 0 7px rgba(167,35,25,0.3);
}

input[type="range"].quiz-slider::-moz-range-thumb {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--primary-color);
	cursor: pointer;
	border: none;
}

.quiz-slider-value {
	display: none;
}

.quiz-slider-desc {
	text-align: center;
	font-size: 15px;
	color: rgba(0,0,0,0.45);
	font-weight: 300;
	min-height: 44px;
	transition: opacity 0.25s ease;
}

/* Navigation buttons */
.quiz-nav {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 32px;
}

button.quiz-btn-next {
	background: var(--primary-color);
	border: 1px solid var(--primary-color);
	color: #fff;
	padding: 14px 32px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 500;
	font-family: 'Inter', serif;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
	display: flex;
	align-items: center;
	gap: 10px;
}

button.quiz-btn-next:hover {
	background: #8c1c14;
}

button.quiz-btn-next:active {
	transform: scale(0.98);
}

button.quiz-btn-next svg {
	width: 16px;
	height: 16px;
}

button.quiz-btn-back {
	background: transparent;
	border: 1px solid rgba(0,0,0,0.18);
	color: rgba(0,0,0,0.45);
	padding: 13px 22px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 400;
	font-family: 'Inter', serif;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
}

button.quiz-btn-back:hover {
	border-color: rgba(0,0,0,0.35);
	color: rgba(0,0,0,0.75);
}

.quiz-hint {
	font-size: 13px;
	color: rgba(0,0,0,0.2);
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 6px;
}

kbd {
	background: rgba(0,0,0,0.06);
	border: 1px solid rgba(0,0,0,0.12);
	border-radius: 4px;
	padding: 2px 6px;
	font-size: 11px;
	font-family: 'Inter', serif;
}

/* Error message */
.quiz-error {
	color: #ff6b6b;
	font-size: 14px;
	margin-top: 8px;
	display: none;
}

.quiz-error.visible {
	display: block;
}

/* Multi-select hint */
.quiz-multiselect-hint {
	font-size: 13px;
	color: rgba(0,0,0,0.35);
	margin-bottom: 20px;
	margin-top: 0;
}

/* Completion / submitting state */
#quiz-submitting {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 24px;
}

#quiz-submitting.active {
	display: flex;
}

.quiz-spinner {
	width: 48px;
	height: 48px;
	border: 3px solid rgba(0,0,0,0.1);
	border-top-color: var(--primary-color);
	border-radius: 50%;
	animation: quiz-spin 0.8s linear infinite;
}

@keyframes quiz-spin {
	to { transform: rotate(360deg); }
}

#quiz-submitting p {
	color: rgba(0,0,0,0.5);
	font-size: 17px;
	font-weight: 300;
}

/* Keyboard navigation decoration on desktop */
@media (min-width: 768px) {
	.quiz-step h2 {
		font-size: 42px;
		line-height: 50px;
	}
}

/* ---------------------------------------------------------
   RESULTS PAGE — within site template
   --------------------------------------------------------- */

/* Hero section */
section.pathway-hero {
	background: var(--light-grey-color);
	border-bottom: 1px solid #e8e8e8;
	padding: 80px 0 70px;
	position: relative;
	overflow: hidden;
}

section.pathway-hero::before {
	content: '';
	position: absolute;
	top: -120px;
	right: -120px;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(167,35,25,0.07) 0%, transparent 70%);
	pointer-events: none;
}

section.pathway-hero h1 {
	color: #111111;
	font-size: 48px;
	line-height: 56px;
	margin-bottom: 16px;
}

section.pathway-hero h1 span.name-highlight {
	color: var(--primary-color);
}

section.pathway-hero p.pathway-intro {
	color: var(--mid-grey-color);
	font-size: 20px;
	line-height: 30px;
	font-weight: 300;
	margin-bottom: 0;
	max-width: 580px;
}

.pathway-sent-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.2);
	border-radius: 20px;
	padding: 7px 16px;
	font-size: 14px;
	color: rgba(0,0,0,0.6);
	margin-top: 24px;
}

.pathway-sent-badge svg {
	width: 14px;
	height: 14px;
	opacity: 0.7;
}

/* Trait cards — "Why you'd be a great coach" */
section.pathway-traits {
	background: #fff;
	padding: 80px 0;
}

section.pathway-traits h2 {
	margin-bottom: 12px;
}

section.pathway-traits p.section-intro {
	color: var(--mid-grey-color);
	font-size: 18px;
	line-height: 28px;
	margin-bottom: 50px;
	max-width: 560px;
}

div.trait-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

div.trait-card {
	background: var(--light-grey-color);
	border-radius: 14px;
	padding: 32px 28px;
	border: 1px solid transparent;
	transition: border-color 0.2s ease;
	position: relative;
}

div.trait-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--primary-color);
	border-radius: 14px 14px 0 0;
	opacity: 0.6;
}

div.trait-card h4 {
	font-size: 19px;
	line-height: 26px;
	margin-bottom: 12px;
}

div.trait-card p {
	font-size: 16px;
	line-height: 24px;
	color: var(--mid-grey-color);
	margin: 0;
	font-weight: 300;
}

/* Diploma recommendation cards */
section.pathway-diplomas {
	background: var(--light-grey-color);
	padding: 80px 0;
}

section.pathway-diplomas h2 {
	margin-bottom: 12px;
}

section.pathway-diplomas p.section-intro {
	color: var(--mid-grey-color);
	font-size: 18px;
	line-height: 28px;
	margin-bottom: 50px;
	max-width: 560px;
}

div.diploma-cards {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

div.diploma-rec-card {
	background: #fff;
	border-radius: 14px;
	padding: 36px 40px;
	display: flex;
	align-items: flex-start;
	gap: 32px;
	border-left: 5px solid var(--primary-color);
	position: relative;
}

div.diploma-rec-card.primary-rec {
	border-left-color: var(--primary-color);
}

div.diploma-rec-card.secondary-rec {
	border-left-color: #ccc;
}

div.diploma-rec-card.rec-business-coaching {
	border-left-color: var(--course-sbd);
}

div.diploma-rec-card.rec-corporate-coaching {
	border-left-color: var(--course-ced);
}

div.diploma-rec-card.rec-coaching-within-education {
	border-left-color: var(--course-cie);
}

div.diploma-rec-card.rec-nlp-diploma {
	border-left-color: var(--course-nlp);
}

div.diploma-rec-badge {
	flex: 0 0 auto;
}

div.diploma-rec-badge span {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 20px;
	background: #FFE9E9;
	color: var(--primary-color);
	white-space: nowrap;
}

div.diploma-rec-card.secondary-rec div.diploma-rec-badge span {
	background: #f0f0f0;
	color: var(--mid-grey-color);
}

div.diploma-rec-body {
	flex: 1;
}

div.diploma-rec-body h3 {
	font-size: 24px;
	line-height: 32px;
	margin-bottom: 10px;
}

div.diploma-rec-body p.diploma-why {
	font-size: 16px;
	line-height: 24px;
	color: var(--mid-grey-color);
	margin-bottom: 20px;
	font-weight: 300;
}

div.diploma-rec-body div.diploma-meta {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

div.diploma-meta span {
	font-size: 14px;
	color: var(--mid-grey-color);
	display: flex;
	align-items: center;
	gap: 6px;
}

div.diploma-meta span strong {
	color: var(--dark-font-color);
	font-weight: 500;
}

/* Payment plan callout */
div.payment-plan-callout {
	background: #fff8f0;
	border: 1px solid #ffd6a0;
	border-radius: 12px;
	padding: 24px 28px;
	margin-top: 32px;
	display: flex;
	align-items: flex-start;
	gap: 18px;
}

div.payment-plan-callout .ppc-icon {
	width: 40px;
	height: 40px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	border: 1px solid #ffd6a0;
}

div.payment-plan-callout h4 {
	font-size: 18px;
	margin-bottom: 6px;
}

div.payment-plan-callout p {
	font-size: 15px;
	color: var(--mid-grey-color);
	margin: 0;
	font-weight: 300;
	line-height: 22px;
}

/* Timeline section */
section.pathway-timeline {
	background: #fff;
	padding: 80px 0;
}

section.pathway-timeline h2 {
	margin-bottom: 12px;
}

section.pathway-timeline p.section-intro {
	color: var(--mid-grey-color);
	font-size: 18px;
	line-height: 28px;
	margin-bottom: 60px;
	max-width: 560px;
}

/* Phase labels */
div.timeline-phase-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mid-grey-color);
	margin-bottom: 28px;
	padding-bottom: 12px;
	border-bottom: 1px solid #eee;
}

div.timeline-phase-label span {
	background: var(--light-grey-color);
	padding: 4px 12px;
	border-radius: 20px;
}

/* The timeline itself */
div.timeline {
	position: relative;
	padding-left: 48px;
	margin-bottom: 48px;
}

div.timeline::before {
	content: '';
	position: absolute;
	left: 15px;
	top: 16px;                /* start at centre of first dot (dot is 32px, so 16px = midpoint) */
	bottom: 16px;             /* stop at centre of last dot — not the bottom of the container */
	width: 2px;
	background: #e5e7eb;
}

div.timeline-item {
	position: relative;
	margin-bottom: 36px;
	min-height: 32px;         /* ensures items shorter than the dot don't collapse */
}

div.timeline-item:last-child {
	margin-bottom: 0;
}

div.timeline-dot {
	position: absolute;
	left: -48px;
	top: 0;                   /* align dot top with content top */
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
	color: var(--mid-grey-color);
	transition: border-color 0.2s ease;
	z-index: 1;
}

div.timeline-item.pre-enrolment div.timeline-dot {
	border-color: var(--primary-color);
	color: var(--primary-color);
}

div.timeline-item.enrolment-step div.timeline-dot {
	background: var(--primary-color);
	border-color: var(--primary-color);
	color: #fff;
}

div.timeline-item.training-step div.timeline-dot {
	border-color: #b0b8c4;
	color: #b0b8c4;
}

div.timeline-item.final-step div.timeline-dot {
	background: #252525;
	border-color: #252525;
	color: #fff;
}

div.timeline-content h4 {
	font-size: 19px;
	line-height: 26px;
	margin-bottom: 6px;
}

div.timeline-content p {
	font-size: 16px;
	line-height: 24px;
	color: var(--mid-grey-color);
	margin: 0;
	font-weight: 300;
}

div.timeline-content a.timeline-cta {
	display: inline-block;
	margin-top: 12px;
	font-size: 14px;
	font-weight: 500;
	color: var(--primary-color);
	text-decoration: none;
}

/* CTA section */
section.pathway-cta {
	background: var(--dark-grey-color);
	padding: 80px 0;
	text-align: center;
}

section.pathway-cta h2 {
	color: #fff;
	margin-bottom: 16px;
}

section.pathway-cta p {
	color: rgba(255,255,255,0.6);
	font-size: 18px;
	max-width: 480px;
	margin: 0 auto 36px;
	font-weight: 300;
}

div.cta-buttons {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 767px) {

	/* Quiz */
	body.pathway-quiz {
		overflow: auto;
		height: auto;
		min-height: 100vh;
	}

	#quiz-viewport {
		height: auto;
		min-height: 100vh;
		padding: 100px 0 80px;
		align-items: flex-start;
	}

	.quiz-step {
		position: relative;
		padding: 0 24px;
		transform: none;
		opacity: 1;
		pointer-events: all;
		display: none;
	}

	.quiz-step.active {
		display: block;
		opacity: 1;
		transform: none;
	}

	.quiz-step.exiting-up {
		display: none;
	}

	.quiz-step h2 {
		font-size: 26px;
		line-height: 34px;
	}

	.quiz-options.two-col {
		grid-template-columns: 1fr;
	}

	#quiz-logo-bar {
		padding: 0 24px;
	}

	.quiz-hint {
		display: none;
	}

	/* Results */
	section.pathway-hero h1 {
		font-size: 34px;
		line-height: 42px;
	}

	div.trait-cards {
		grid-template-columns: 1fr;
	}

	div.diploma-rec-card {
		flex-direction: column;
		gap: 16px;
		padding: 24px;
	}

	div.diploma-meta {
		flex-direction: column;
		gap: 8px;
	}

	div.cta-buttons {
		flex-direction: column;
	}

	div.cta-buttons a.button {
		text-align: center;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	div.trait-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}
