/* Moodfex Career Timing Calculator — matches the mfx-* design language. */
.mfx-ct {
	--ct-bg: #ffffff;
	--ct-soft: #edf2e9;
	--ct-text: #20241f;
	--ct-muted: #687066;
	--ct-green: #52644d;
	--ct-green-dark: #34412f;
	--ct-gold: #aa8f58;
	--ct-line: #e1e6dd;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	color: var(--ct-text);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	line-height: 1.6;
}

.mfx-ct *,
.mfx-ct *::before,
.mfx-ct *::after {
	box-sizing: border-box;
}

.mfx-ct [hidden] {
	display: none !important;
}

.mfx-ct__card {
	background: var(--ct-bg);
	border: 1px solid var(--ct-line);
	border-radius: 20px;
	padding: 28px;
	box-shadow: 0 12px 32px rgba(40, 50, 38, 0.06);
}

.mfx-ct__title {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 500;
	font-size: clamp(1.5rem, 3.5vw, 2rem);
	line-height: 1.2;
	margin: 0 0 8px;
}

.mfx-ct__lead {
	margin: 0 0 22px;
	color: var(--ct-muted);
	font-size: 1.02rem;
}

.mfx-ct__field {
	margin-bottom: 16px;
	min-width: 0;
}

.mfx-ct__row {
	display: flex;
	gap: 14px;
}

.mfx-ct__row .mfx-ct__field {
	flex: 1 1 0;
}

.mfx-ct__label {
	display: block;
	font-weight: 700;
	font-size: 0.92rem;
	margin-bottom: 8px;
}

.mfx-ct__opt {
	font-weight: 400;
	color: var(--ct-muted);
}

.mfx-ct__input {
	display: block;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	padding: 13px 15px;
	font-size: 16px;
	font-family: inherit;
	text-align: left;
	color: var(--ct-text);
	background: #fbfcfa;
	border: 1px solid #cad5c5;
	border-radius: 12px;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select.mfx-ct__input {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2352644d' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;
}

.mfx-ct__input:focus {
	outline: none;
	border-color: var(--ct-green);
	box-shadow: 0 0 0 3px rgba(82, 100, 77, 0.18);
}

.mfx-ct__input:disabled {
	opacity: 0.5;
	background: #f0f0ec;
}

.mfx-ct__input::-webkit-date-and-time-value {
	text-align: left;
	margin: 0;
}

.mfx-ct__check {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 10px;
	font-size: 0.92rem;
	color: var(--ct-muted);
	cursor: pointer;
	min-height: 44px;
}

.mfx-ct__check input {
	width: 20px;
	height: 20px;
	accent-color: var(--ct-green);
}

.mfx-ct__hint {
	margin: 8px 0 0;
	font-size: 0.86rem;
	color: var(--ct-muted);
}

.mfx-ct__error {
	margin: 4px 0 0;
	min-height: 1.2em;
	color: #a8452f;
	font-size: 0.9rem;
	font-weight: 600;
}

.mfx-ct__error:empty {
	min-height: 0;
	margin: 0;
}

.mfx-ct__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 18px 0 14px;
}

.mfx-ct__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 13px 22px;
	font-size: 0.98rem;
	font-family: inherit;
	font-weight: 800;
	border-radius: 999px;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mfx-ct__btn:focus-visible {
	outline: 3px solid rgba(82, 100, 77, 0.45);
	outline-offset: 2px;
}

.mfx-ct__btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.mfx-ct__btn--primary {
	background: var(--ct-green-dark);
	color: #ffffff;
}

.mfx-ct__btn--primary:hover {
	background: #2a3527;
}

.mfx-ct__btn--ghost {
	background: #ffffff;
	color: var(--ct-green-dark);
	border-color: #cad5c5;
}

.mfx-ct__btn--ghost:hover {
	background: var(--ct-soft);
}

.mfx-ct__privacy {
	margin: 0;
	font-size: 0.84rem;
	color: var(--ct-muted);
}

/* ---- Result ---- */
.mfx-ct__result {
	margin-top: 24px;
}

.mfx-ct__block {
	margin-bottom: 22px;
}

.mfx-ct__block-title {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 500;
	font-size: 1.25rem;
	margin: 0 0 6px;
}

.mfx-ct__block-intro {
	margin: 0 0 14px;
	font-size: 0.92rem;
	color: var(--ct-muted);
}

/* Score hero */
.mfx-ct__score {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 22px;
	border: 1px solid var(--ct-line);
	border-radius: 18px;
	background: linear-gradient(145deg, #fbfcf9, #edf2e9);
}

.mfx-ct__score-num {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(3rem, 12vw, 4.4rem);
	font-weight: 600;
	line-height: 1;
	color: var(--ct-green-dark);
	min-width: 1.6em;
	text-align: center;
}

.mfx-ct__score-meta {
	flex: 1 1 auto;
	min-width: 0;
}

.mfx-ct__score-kicker {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ct-gold);
}

.mfx-ct__score-rec {
	font-size: 1.12rem;
	font-weight: 700;
	margin: 4px 0 12px;
	color: var(--ct-text);
}

.mfx-ct__bar {
	height: 10px;
	border-radius: 999px;
	background: #dbe3d5;
	overflow: hidden;
}

.mfx-ct__bar span {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--ct-green), var(--ct-gold));
	transition: width 0.6s ease;
}

.mfx-ct__subscores {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-top: 14px;
}

.mfx-ct__sub {
	text-align: center;
	padding: 14px 10px;
	border: 1px solid var(--ct-line);
	border-radius: 14px;
	background: #fff;
}

.mfx-ct__sub b {
	display: block;
	font-size: 1.4rem;
	color: var(--ct-green-dark);
}

.mfx-ct__sub span {
	font-size: 0.82rem;
	color: var(--ct-muted);
}

/* Windows */
.mfx-ct__windows {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.mfx-ct__win {
	padding: 16px 18px;
	border-radius: 14px;
	border: 1px solid var(--ct-line);
	background: #fff;
}

.mfx-ct__win--best {
	border-left: 4px solid var(--ct-green);
}

.mfx-ct__win--care {
	border-left: 4px solid var(--ct-gold);
}

.mfx-ct__win--empty {
	opacity: 0.75;
}

.mfx-ct__win-label {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ct-muted);
	margin-bottom: 6px;
}

.mfx-ct__win-value {
	font-size: 1.02rem;
	font-weight: 700;
	color: var(--ct-text);
}

/* Indicators */
.mfx-ct__indicators {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mfx-ct__indicator {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 13px 16px;
	border: 1px solid var(--ct-line);
	border-radius: 12px;
	background: #fbfcfa;
}

.mfx-ct__indicator--supportive {
	border-left: 4px solid var(--ct-green);
}

.mfx-ct__indicator--challenging {
	border-left: 4px solid #c08a3e;
}

.mfx-ct__indicator-text {
	font-weight: 700;
}

.mfx-ct__indicator-period {
	font-size: 0.86rem;
	color: var(--ct-muted);
	white-space: nowrap;
}

/* Timeline */
.mfx-ct__timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.mfx-ct__phase {
	padding: 14px 16px;
	border: 1px solid var(--ct-line);
	border-radius: 12px;
	background: #fff;
}

.mfx-ct__phase b {
	display: block;
	color: var(--ct-green-dark);
}

.mfx-ct__phase span {
	font-size: 0.86rem;
	color: var(--ct-muted);
}

/* Share card */
.mfx-ct__preview {
	width: 100%;
	max-width: 340px;
	margin: 6px auto 0;
	text-align: center;
}

.mfx-ct__preview-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 9 / 16;
	border: 1px solid var(--ct-line);
	border-radius: 18px;
	background: var(--ct-soft);
	color: var(--ct-muted);
	font-size: 0.92rem;
}

.mfx-ct__card-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 18px;
	border: 1px solid var(--ct-line);
	box-shadow: 0 14px 36px rgba(40, 50, 38, 0.12);
}

.mfx-ct__share {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 18px;
}

.mfx-ct__share .mfx-ct__btn {
	min-width: 170px;
}

.mfx-ct__share-status {
	flex-basis: 100%;
	margin: 4px 0 0;
	min-height: 1.1em;
	font-size: 0.88rem;
	color: var(--ct-muted);
}

.mfx-ct__share-status:empty {
	min-height: 0;
}

/* CTA */
.mfx-ct__cta {
	margin-top: 20px;
	padding: 24px;
	border-radius: 18px;
	background: var(--ct-green-dark);
	color: #fff;
	text-align: center;
}

.mfx-ct__cta-title {
	margin: 0 0 8px;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 500;
	color: #fff;
}

.mfx-ct__cta-text {
	margin: 0 auto 16px;
	max-width: 520px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.96rem;
}

.mfx-ct__cta .mfx-ct__btn--primary {
	background: #fff;
	color: var(--ct-green-dark);
}

.mfx-ct__method {
	margin: 6px 0 0;
	font-size: 0.82rem;
	color: var(--ct-muted);
}

/* ---- Embedded into the page's calculator box ---- */
.mfx-calculator.mfx-calc-hydrated {
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	display: block;
	place-items: initial;
	text-align: left;
}

.mfx-ct--embedded {
	max-width: none;
}

.mfx-ct--embedded .mfx-ct__card {
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: none;
}

.mfx-ct--embedded .mfx-ct__title {
	display: none;
}

/* ---- Fix the page's calculator grid overflow on tablet/mobile ---- */
@media ( max-width: 800px ) {
	.mfx-grid {
		grid-template-columns: 1fr !important;
	}
	.mfx-grid > .mfx-box {
		min-width: 0 !important;
		max-width: 100% !important;
		width: auto !important;
	}
}

@media ( max-width: 600px ) {
	.mfx-ct__card {
		padding: 20px;
	}
	.mfx-ct--embedded .mfx-ct__card {
		padding: 0;
	}
	.mfx-ct__row {
		flex-direction: column;
		gap: 0;
	}
	.mfx-ct__score {
		flex-direction: column;
		text-align: center;
		gap: 12px;
	}
	.mfx-ct__windows {
		grid-template-columns: 1fr;
	}
	.mfx-ct__timeline {
		grid-template-columns: 1fr;
	}
	.mfx-ct__btn {
		width: 100%;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.mfx-ct *,
	.mfx-ct *::before,
	.mfx-ct *::after {
		transition: none !important;
	}
}
