/* =========================================================================
   ElevatePath — Assessment widget styles
   -------------------------------------------------------------------------
   BRAND TOKENS — VERIFIED against the live site's actual Elementor Global
   Kit settings (extracted directly from the site database, not a visual
   guess): Accent 1 = #1C4B42, Accent 2 = #B4E717, Accent 4 = #92C200,
   Accent 3 (bg) = #F6F5F2, Accent 8 (body text) = #7E7E7E.
   Typography: heading font = Lexend, body font = Poppins (per the Kit's
   system_typography settings for Primary Font / H1 / H2 / H3).
   ========================================================================= */

#elevatepath-assessment {
	--ep-green-dark: #1c4b42;      /* Elementor Kit: Accent 1 */
	--ep-green-darker: #153a33;    /* derived — 15% darker for deep sections */
	--ep-lime: #b4e717;            /* Elementor Kit: Accent 2 */
	--ep-lime-dark: #92c200;       /* Elementor Kit: Accent 4 */
	--ep-grey: #7e7e7e;            /* Elementor Kit: Accent 8 */
	--ep-white: #ffffff;
	--ep-border: #e5e9e3;
	--ep-bg-offwhite: #f6f5f2;     /* Elementor Kit: Accent 3 */
	--ep-radius-pill: 999px;
	--ep-radius-card: 14px;
	--ep-font-heading: 'Lexend', 'Segoe UI', sans-serif;
	--ep-font-body: 'Poppins', 'Segoe UI', sans-serif;

	font-family: var(--ep-font-body);
	max-width: 480px;
	background: var(--ep-white);
	border: 1px solid var(--ep-border);
	border-radius: var(--ep-radius-card);
	padding: 28px 26px;
	box-shadow: 0 10px 30px rgba(21, 58, 51, 0.08);
	box-sizing: border-box;
}

#elevatepath-assessment * {
	box-sizing: border-box;
}

#elevatepath-assessment.ep-assessment--inline {
	max-width: none;
	box-shadow: none;
	border: none;
	padding: 0;
}

.ep-tag {
	display: inline-block;
	background: var(--ep-lime);
	color: var(--ep-green-darker);
	font-family: var(--ep-font-heading);
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: var(--ep-radius-pill);
	margin-bottom: 12px;
}

.ep-assessment__title {
	font-family: var(--ep-font-heading);
	color: var(--ep-green-darker);
	font-size: 22px;
	line-height: 1.3;
	font-weight: 600;
	margin: 0 0 8px;
}

.ep-assessment__lead {
	color: var(--ep-grey);
	font-size: 14.5px;
	line-height: 1.55;
	margin: 0 0 20px;
}

.ep-assessment__disclaimer {
	color: #93a09b;
	font-size: 11.5px;
	margin: 18px 0 0;
	line-height: 1.5;
}

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

.ep-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--ep-font-heading);
	font-weight: 600;
	font-size: 14.5px;
	text-decoration: none;
	border: none;
	border-radius: var(--ep-radius-pill);
	padding: 13px 26px;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease;
	width: 100%;
}

.ep-btn:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

.ep-btn--dark {
	background: var(--ep-green-dark);
	color: var(--ep-white);
}

.ep-btn--lime {
	background: var(--ep-lime);
	color: var(--ep-green-darker);
}

.ep-btn--outline {
	background: transparent;
	color: var(--ep-green-dark);
	border: 1.5px solid var(--ep-green-dark);
}

.ep-btn[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.ep-btn__spinner {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	animation: ep-spin 0.7s linear infinite;
}

@keyframes ep-spin {
	to { transform: rotate(360deg); }
}

/* Form fields -------------------------------------------------------- */

.ep-field {
	display: block;
	margin-bottom: 16px;
}

.ep-field span {
	display: block;
	font-family: var(--ep-font-heading);
	font-weight: 600;
	font-size: 13px;
	color: var(--ep-green-darker);
	margin-bottom: 6px;
}

.ep-field input {
	width: 100%;
	font-family: var(--ep-font-body);
	font-size: 15px;
	padding: 11px 14px;
	border: 1.5px solid var(--ep-border);
	border-radius: 10px;
	background: #fafcfa;
	color: #1a1a2e;
}

.ep-field textarea {
	width: 100%;
	font-family: var(--ep-font-body);
	font-size: 14.5px;
	padding: 11px 14px;
	border: 1.5px solid var(--ep-border);
	border-radius: 10px;
	background: #fafcfa;
	color: #1a1a2e;
	resize: vertical;
	min-height: 54px;
}

.ep-field textarea:focus {
	outline: none;
	border-color: var(--ep-green-dark);
	background: #fff;
}

.ep-loading {
	text-align: center;
	color: var(--ep-grey);
	font-size: 13.5px;
	padding: 30px 0;
}

.ep-field input:focus {
	outline: none;
	border-color: var(--ep-green-dark);
	background: #fff;
}

.ep-assessment__error {
	color: #b3261e;
	font-size: 13px;
	margin: -6px 0 14px;
}

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

.ep-progress {
	height: 6px;
	background: #eef1ec;
	border-radius: var(--ep-radius-pill);
	overflow: hidden;
	margin-bottom: 8px;
}

.ep-progress__bar {
	height: 100%;
	background: var(--ep-lime);
	border-radius: var(--ep-radius-pill);
	transition: width 0.25s ease;
	width: 0%;
}

.ep-progress__label {
	font-size: 12px;
	color: var(--ep-grey);
	margin: 0 0 18px;
}

/* Question card (rendered by JS) --------------------------------------- */

.ep-question__text {
	font-family: var(--ep-font-heading);
	font-weight: 600;
	font-size: 17px;
	color: var(--ep-green-darker);
	margin: 0 0 16px;
	line-height: 1.4;
}

.ep-question__options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 20px;
}

.ep-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1.5px solid var(--ep-border);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
	font-size: 14.5px;
	color: #1a1a2e;
}

.ep-option:hover {
	border-color: var(--ep-lime-dark);
	background: #fbfdf6;
}

.ep-option.is-selected {
	border-color: var(--ep-green-dark);
	background: #f1f7f4;
}

.ep-option input {
	accent-color: var(--ep-green-dark);
}

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

.ep-results__eyebrow {
	font-family: var(--ep-font-heading);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ep-lime-dark);
	margin: 0 0 6px;
}

.ep-results__type {
	font-family: var(--ep-font-heading);
	font-size: 24px;
	font-weight: 700;
	color: var(--ep-green-darker);
	margin: 0 0 12px;
}

.ep-results__desc {
	color: var(--ep-grey);
	font-size: 14.5px;
	line-height: 1.6;
	margin: 0 0 16px;
}

.ep-results__strengths {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.ep-results__strengths li {
	background: #f1f7f4;
	color: var(--ep-green-dark);
	font-size: 12.5px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: var(--ep-radius-pill);
}

.ep-results__ctas {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ep-results__retake {
	text-align: center;
	margin-top: 14px;
}

.ep-results__retake button {
	background: none;
	border: none;
	color: var(--ep-grey);
	font-size: 12.5px;
	text-decoration: underline;
	cursor: pointer;
	font-family: var(--ep-font-body);
}

@media (max-width: 480px) {
	#elevatepath-assessment {
		padding: 22px 18px;
	}
}

/* =========================================================================
   Rich results: blend bars, SWOT grid, gap analysis, job match, transition
   ========================================================================= */

#elevatepath-assessment.ep-assessment--card,
#elevatepath-assessment.ep-assessment--inline {
	max-width: 640px; /* results content needs more room than the intake forms */
}

.ep-results__zodiac {
	background: #fbfaf4;
	border-left: 3px solid var(--ep-lime-dark);
	padding: 10px 14px;
	font-size: 13px;
	color: var(--ep-grey);
	line-height: 1.5;
	margin: 0 0 20px;
	border-radius: 0 8px 8px 0;
}

/* Blend bars ----------------------------------------------------------- */

.ep-blend {
	margin: 0 0 18px;
}

.ep-blend__row {
	display: grid;
	grid-template-columns: 130px 1fr 44px;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.ep-blend__label {
	font-family: var(--ep-font-heading);
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ep-green-darker);
}

.ep-blend__label em {
	font-style: normal;
	color: var(--ep-grey);
	font-weight: 400;
	font-size: 11px;
}

.ep-blend__track {
	height: 8px;
	background: #eef1ec;
	border-radius: var(--ep-radius-pill);
	overflow: hidden;
}

.ep-blend__fill {
	height: 100%;
	background: linear-gradient(90deg, var(--ep-green-dark), var(--ep-lime));
	border-radius: var(--ep-radius-pill);
}

.ep-blend__pct {
	font-size: 12px;
	font-weight: 600;
	color: var(--ep-green-darker);
	text-align: right;
}

/* SWOT quadrants ---------------------------------------------------------- */

.ep-swot {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 20px 0;
}

.ep-swot__block {
	border-radius: 10px;
	padding: 14px 16px;
	border: 1px solid var(--ep-border);
}

.ep-swot__block h5 {
	font-family: var(--ep-font-heading);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.ep-swot__block ul {
	margin: 0;
	padding-left: 16px;
	font-size: 12.5px;
	color: #1a1a2e;
	line-height: 1.6;
}

.ep-swot__block--good { background: #f1f7f4; }
.ep-swot__block--good h5 { color: var(--ep-green-dark); }

.ep-swot__block--dev { background: #fbf6ec; }
.ep-swot__block--dev h5 { color: #a3781f; }

.ep-swot__block--opp { background: #eef4fb; }
.ep-swot__block--opp h5 { color: #29587e; }

.ep-swot__block--watch { background: #fbf0ee; }
.ep-swot__block--watch h5 { color: #a3432f; }

@media (max-width: 480px) {
	.ep-swot { grid-template-columns: 1fr; }
	.ep-blend__row { grid-template-columns: 100px 1fr 38px; }
}

/* Gap analysis --------------------------------------------------------- */

.ep-gap {
	background: var(--ep-green-darker);
	border-radius: 12px;
	padding: 18px 20px;
	margin: 4px 0 20px;
}

.ep-gap__title {
	font-family: var(--ep-font-heading);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 12px;
}

.ep-gap__row {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 12.5px;
	color: #dce8e3;
	line-height: 1.5;
}

.ep-gap__row:last-child {
	border-bottom: none;
}

.ep-gap__row--cta span:last-child {
	color: var(--ep-lime);
	font-weight: 600;
}

.ep-gap__label {
	font-family: var(--ep-font-heading);
	font-weight: 600;
	color: #fff;
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

@media (max-width: 480px) {
	.ep-gap__row { grid-template-columns: 1fr; gap: 3px; }
}

/* Job match teaser ------------------------------------------------------ */

.ep-jobmatch {
	border: 1px solid var(--ep-border);
	border-radius: 10px;
	padding: 14px 16px;
	margin: 0 0 20px;
}

.ep-jobmatch__title {
	font-family: var(--ep-font-heading);
	font-size: 13px;
	font-weight: 600;
	color: var(--ep-green-darker);
	margin: 0 0 10px;
}

.ep-jobmatch__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 0;
	border-bottom: 1px solid #f0f2ef;
	text-decoration: none;
}

.ep-jobmatch__row:last-child {
	border-bottom: none;
}

.ep-jobmatch__job {
	font-size: 13px;
	color: #1a1a2e;
	font-weight: 500;
}

.ep-jobmatch__tag {
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--ep-green-dark);
	background: #f1f7f4;
	padding: 3px 8px;
	border-radius: var(--ep-radius-pill);
	white-space: nowrap;
}

/* Commercial transition block -------------------------------------------- */

.ep-transition {
	text-align: center;
	padding: 18px 10px 6px;
	border-top: 1px dashed var(--ep-border);
	margin-top: 6px;
}

.ep-transition h4 {
	font-family: var(--ep-font-heading);
	color: var(--ep-green-darker);
	font-size: 15px;
	margin: 14px 0 6px;
}

.ep-transition p {
	color: var(--ep-grey);
	font-size: 13px;
	line-height: 1.55;
	margin: 0 0 4px;
}

/* Post-assessment playbook popup ----------------------------------------- */

.ep-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(21, 58, 51, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 100000; /* sit above Elementor/theme headers and sticky bars */
}

.ep-modal {
	position: relative;
	background: #ffffff;
	border-radius: 16px;
	max-width: 440px;
	width: 100%;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 32px 28px 28px;
	box-sizing: border-box;
	font-family: var(--ep-font-body, 'Poppins', sans-serif);
	animation: ep-modal-in 0.2s ease;
}

.ep-modal__image {
	display: block;
	max-width: 160px;
	width: 100%;
	height: auto;
	margin: 4px auto 16px;
	border-radius: 6px;
	box-shadow: 0 6px 18px rgba(21, 58, 51, 0.18);
}

@media (max-width: 480px) {
	.ep-modal__image {
		max-width: 130px;
	}
}

@keyframes ep-modal-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.ep-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: #f1f7f4;
	color: #153a33;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ep-modal__close:hover {
	background: #e5e9e3;
}

.ep-modal__title {
	font-family: var(--ep-font-heading, 'Lexend', sans-serif);
	color: #153a33;
	font-size: 19px;
	font-weight: 600;
	margin: 4px 30px 10px 0;
	line-height: 1.3;
}

.ep-modal__body {
	color: #7e7e7e;
	font-size: 13.5px;
	line-height: 1.6;
	margin: 0 0 20px;
}

.ep-modal__ctas {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

@media (max-width: 480px) {
	.ep-modal {
		padding: 26px 20px 22px;
	}
}
