/* Embedded training and career plan builder.
   Loaded by ssi/ctas/callouts/lead-form.ssi. Everything is scoped to .plan-embed
   so it holds up inside articles, program pages, and narrow columns. Layout
   follows the component's own width, not the viewport. */

.plan-embed {
	--pe-navy: #012e5c;
	--pe-blue: #1c5c9b;
	--pe-mid: #7fa8d6;
	--pe-pale: #d6e6f5;
	--pe-ink: #212529;
	--pe-body: #495057;
	--pe-muted: #6c757d;
	--pe-line: rgba(1, 46, 92, .1);
	--pe-ease: cubic-bezier(.25, .46, .15, .94);

	color: var(--pe-ink);
	container: plan-embed / inline-size;
	font-size: 1rem;
	letter-spacing: normal;
	line-height: 1.4;
	margin-left: auto;
	margin-right: auto;
	max-width: 50rem;
	text-align: left;
	width: 100%;
}

.plan-embed *,
.plan-embed *:before,
.plan-embed *:after {
	box-sizing: border-box;
}

.plan-embed .plan-embed__sr {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.plan-embed [hidden] {
	display: none !important;
}

.plan-embed__card {
	background: #fff;
	border: 1px solid var(--pe-line);
	border-radius: 1.125rem;
	box-shadow: 0 12px 40px rgba(1, 46, 92, .07);
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	overflow: hidden;
}

/* Offer: headline, subtitle, and the plan preview carousel. */
.plan-embed__offer {
	background: linear-gradient(160deg, #fff 0%, #f5faff 46%, #eaf3fc 100%);
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 1.125rem;
}

.plan-embed .plan-embed__headline {
	color: var(--pe-navy);
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -.01em;
	line-height: 1.1;
	margin: 0 0 .5rem;
}

.plan-embed__headline span {
	display: block;
}

.plan-embed .plan-embed__subhead {
	color: #343a40;
	font-size: .9375rem;
	line-height: 1.4;
	margin: .375rem 0 0;
}

.plan-embed .plan-embed__includes {
	color: var(--pe-navy);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	margin: .5rem 0 .5rem;
}

.plan-embed__viewport {
	margin: 0 0 -6px;
	overflow: hidden;
	padding: 0 0 6px;
	touch-action: pan-y;
}

.plan-embed__track {
	display: flex;
	transition: transform .45s var(--pe-ease);
	will-change: transform;
}

.plan-embed__track.is-dragging {
	transition: none;
}

.plan-embed__slide {
	display: flex;
	flex: 0 0 100%;
	min-width: 0;
	padding: 0 1px;
}

.plan-embed__slide-card {
	background: #fff;
	border: 1px solid var(--pe-line);
	border-radius: .75rem;
	box-shadow: 0 1px 3px rgba(1, 46, 92, .05);
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: .25rem;
	min-height: 7.5rem;
	min-width: 0;
	padding: .75rem .875rem;
}

.plan-embed .plan-embed__slide-title {
	color: var(--pe-navy);
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: -.01em;
	line-height: 1.25;
	margin: 0;
}

.plan-embed .plan-embed__slide-text {
	color: var(--pe-muted);
	font-size: .8125rem;
	line-height: 1.35;
	margin: 0;
}

.plan-embed__art {
	align-items: center;
	display: flex;
	flex: 1;
	justify-content: center;
	margin-top: .375rem;
	min-height: 3rem;
	width: 100%;
}

/* Carousel controls use the topic showcase arrow treatment at a smaller
   visible size. The button stays 44px; the circle inside it is 30px. */
.plan-embed__controls {
	align-items: center;
	display: flex;
	gap: .25rem;
	justify-content: center;
	margin-top: .375rem;
}

.plan-embed .plan-embed__arrow {
	align-items: center;
	background: transparent;
	border: 0;
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 2.75rem;
	height: 2.75rem;
	justify-content: center;
	margin: 0;
	padding: 0;
	width: 2.75rem;
}

.plan-embed__arrow-circle {
	align-items: center;
	background: #fff;
	border: 1px solid rgba(1, 46, 92, .12);
	border-radius: 50%;
	box-shadow: 0 4px 16px rgba(1, 46, 92, .06);
	color: var(--pe-blue);
	display: inline-flex;
	font-size: 1rem;
	height: 1.875rem;
	justify-content: center;
	line-height: 1;
	transition: background .2s var(--pe-ease), border-color .2s var(--pe-ease), color .2s var(--pe-ease), opacity .2s var(--pe-ease);
	width: 1.875rem;
}

.plan-embed .plan-embed__arrow:focus {
	outline: 0;
}

.plan-embed__arrow:hover .plan-embed__arrow-circle,
.plan-embed__arrow:focus .plan-embed__arrow-circle {
	background: var(--pe-blue);
	border-color: var(--pe-blue);
	color: #fff;
}

.plan-embed__arrow:focus-visible .plan-embed__arrow-circle {
	outline: 2px solid var(--pe-navy);
	outline-offset: 2px;
}

.plan-embed .plan-embed__arrow[aria-disabled="true"] {
	pointer-events: none;
	visibility: hidden;
}

.plan-embed__dots {
	align-items: center;
	display: flex;
	gap: .3125rem;
	justify-content: center;
	padding: 0 .25rem;
}

.plan-embed__dot {
	background: rgba(1, 46, 92, .16);
	border-radius: 999px;
	display: block;
	height: .375rem;
	overflow: hidden;
	position: relative;
	transition: width .35s var(--pe-ease);
	width: .375rem;
}

.plan-embed__dot.is-active {
	width: 1.75rem;
}

.plan-embed__dot-fill {
	background: var(--pe-blue);
	border-radius: inherit;
	display: block;
	height: 100%;
	transform: scaleX(0);
	transform-origin: left center;
	width: 100%;
}

.plan-embed__dot.is-settled .plan-embed__dot-fill {
	transform: scaleX(1);
}

@keyframes pe-dot-fill {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

/* Builder: heading, count, progress, one question at a time. */
.plan-embed__builder {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 1.125rem;
}

.plan-embed__form {
	display: flex;
	flex: 1;
	flex-direction: column;
	margin: 0;
}

.plan-embed__head {
	align-items: baseline;
	display: flex;
	gap: .75rem;
	justify-content: space-between;
}

.plan-embed .plan-embed__title {
	color: var(--pe-navy);
	font-size: 1.3rem;
	font-weight: 500;
	letter-spacing: -.02em;
	line-height: 1.15;
	margin: 0;
}

.plan-embed .plan-embed__count {
	color: var(--pe-muted);
	flex: 0 0 auto;
	font-size: .8125rem;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	line-height: 1.3;
	margin: 0;
	white-space: nowrap;
}

.plan-embed__bars {
	display: flex;
	gap: .375rem;
	margin: .5rem 0 .5rem;
}

.plan-embed__bars span {
	background: #e3e8ee;
	border-radius: 2px;
	flex: 1;
	height: 3px;
	transition: background .3s ease;
}

.plan-embed__bars span.is-done {
	background: var(--pe-blue);
}

.plan-embed .plan-embed__error {
	background: #fff5f5;
	border-radius: .5rem;
	color: #9b2332;
	font-size: .875rem;
	line-height: 1.4;
	margin: 0 0 .875rem;
	padding: .5rem .75rem;
}

.plan-embed__steps {
	min-height: 0;
}

.plan-embed__steps > .plan-embed__step {
	padding-top: .75rem;
}

.plan-embed .plan-embed__fieldset {
	border: 0;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	margin: 0;
	min-width: 0;
	padding: 0;
}

.plan-embed .plan-embed__question {
	color: var(--pe-ink);
	display: block;
	float: none;
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.3;
	margin: 0 0 .75rem;
	max-width: 100%;
	padding: 0;
	white-space: normal;
	width: auto;
}

.plan-embed .plan-embed__helper {
	color: var(--pe-muted);
	font-size: .875rem;
	line-height: 1.45;
	margin: 0 0 .25rem;
}

.plan-embed .plan-embed__choice {
	align-items: center;
	background: #fff;
	border: 1px solid #ced4da;
	border-radius: .625rem;
	cursor: pointer;
	display: flex;
	gap: .75rem;
	margin: 0;
	min-height: 2.75rem;
	padding: .625rem .875rem;
	transition: border-color .2s ease, background .2s ease;
}

.plan-embed .plan-embed__choice:hover {
	border-color: #8fa9c4;
}

.plan-embed .plan-embed__choice:has(input:checked) {
	background: #f5f9fd;
	border-color: var(--pe-blue);
	box-shadow: inset 0 0 0 1px var(--pe-blue);
}

.plan-embed .plan-embed__choice input {
	accent-color: var(--pe-blue);
	flex: 0 0 auto;
	height: 1.125rem;
	margin: 0;
	width: 1.125rem;
}

.plan-embed .plan-embed__choice span {
	color: #343a40;
	font-size: .9375rem;
	line-height: 1.35;
}

.plan-embed .plan-embed__field {
	display: block;
	margin: 0;
}

.plan-embed .plan-embed__field input,
.plan-embed .plan-embed__field select {
	background-color: #fff;
	border: 1px solid #ced4da;
	border-radius: .625rem;
	color: var(--pe-ink);
	display: block;
	font-size: 1rem;
	height: auto;
	line-height: 1.4;
	margin: 0;
	min-height: 2.875rem;
	padding: .625rem .875rem;
	width: 100%;
}

.plan-embed .plan-embed__field select {
	appearance: none;
	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 d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23012e5c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-position: right .875rem center;
	background-repeat: no-repeat;
	padding-right: 2.5rem;
}

.plan-embed .plan-embed__field input:focus,
.plan-embed .plan-embed__field select:focus {
	border-color: var(--pe-blue);
	outline: 2px solid var(--pe-blue);
	outline-offset: 2px;
}

.plan-embed .plan-embed__choice.plan-embed__consent,
.plan-embed .plan-embed__choice.plan-embed__consent:has(input:checked) {
	align-items: flex-start;
	background: none;
	border: 0;
	box-shadow: none;
	margin-top: .375rem;
	min-height: 0;
	padding: 0;
}

.plan-embed .plan-embed__consent input {
	margin-top: .125rem;
}

.plan-embed .plan-embed__consent span {
	color: var(--pe-body);
	font-size: .8125rem;
	line-height: 1.5;
}

.plan-embed .plan-embed__consent a {
	color: var(--pe-blue);
	display: inline;
	text-decoration: underline;
}

.plan-embed__actions {
	align-items: stretch;
	display: flex;
	gap: .625rem;
	margin-top: auto;
	padding-top: .75rem;
}

.plan-embed .plan-embed__next {
	align-items: center;
	border-radius: .625rem;
	cursor: pointer;
	display: inline-flex;
	font-size: 1rem;
	font-weight: 600;
	justify-content: center;
	letter-spacing: -.01em;
	line-height: 1.2;
	margin: 0;
	min-height: 2.875rem;
	transition: background .25s ease, border-color .25s ease, color .25s ease;
	white-space: normal;
}

.plan-embed .plan-embed__next {
	background: var(--pe-navy);
	border: 0;
	color: #fff;
	flex: 1 1 auto;
	padding: .75rem 1.25rem;
}

.plan-embed .plan-embed__next:hover,
.plan-embed .plan-embed__next:focus-visible {
	background: #014888;
	color: #fff;
}

.plan-embed .plan-embed__next-arrow {
	display: inline-block;
	margin-left: .5rem;
	transition: transform .25s ease;
}

.plan-embed__next:hover .plan-embed__next-arrow,
.plan-embed__next:focus-visible .plan-embed__next-arrow {
	transform: translateX(.25rem);
}

.plan-embed .plan-embed__next:disabled {
	cursor: wait;
	opacity: .72;
}

.plan-embed__form :focus-visible {
	outline: 2px solid var(--pe-navy);
	outline-offset: 2px;
}

.plan-embed .plan-embed__preview-note {
	background: #f5f9fd;
	border-radius: .5rem;
	color: var(--pe-navy);
	font-size: .875rem;
	line-height: 1.45;
	margin: 1rem 0 0;
	overflow-wrap: anywhere;
	padding: .75rem;
}

.plan-embed__step.is-out {
	opacity: 0;
	transform: translateX(-1rem);
	transition: opacity .2s ease, transform .2s ease;
}

.plan-embed__step.is-in {
	opacity: 0;
	transform: translateX(1.25rem);
}

.plan-embed__step.is-in.is-shown {
	opacity: 1;
	transform: none;
	transition: opacity .34s var(--pe-ease), transform .34s var(--pe-ease);
}

/* Plan preview illustrations, adapted from the landing page's mobile cards.
   Conceptual only: no prices, payments, terms, or locations. */
.plan-embed__programs,
.plan-embed__schedule,
.plan-embed__stages,
.plan-embed__reqs,
.plan-embed__checks {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
}

.plan-embed__programs {
	display: grid;
	gap: .5rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-embed .plan-embed__programs li {
	align-items: center;
	border-radius: .5rem;
	color: var(--pe-blue);
	display: flex;
	height: 2.25rem;
	justify-content: center;
	margin: 0;
}

.plan-embed .plan-embed__programs li.is-emphasis {
	background: #fff;
	box-shadow: inset 0 0 0 1px rgba(28, 92, 155, .45);
	color: var(--pe-navy);
}

.plan-embed__programs svg {
	display: block;
	height: 1.125rem;
	width: 1.125rem;
}

.plan-embed__estimate {
	width: 100%;
}

.plan-embed__estimate-row {
	align-items: center;
	color: var(--pe-navy);
	display: grid;
	font-size: .75rem;
	font-weight: 600;
	gap: .5rem;
	grid-template-columns: 3.5rem minmax(0, 1fr);
	line-height: 1.3;
	padding: .3rem 0;
}

.plan-embed__estimate-row i {
	background: var(--pe-pale);
	border-radius: 999px;
	display: block;
	height: .375rem;
	width: 62%;
}

.plan-embed__estimate-row.is-total {
	border-top: 1px solid rgba(1, 46, 92, .16);
}

.plan-embed__estimate-row.is-total i {
	background: var(--pe-blue);
	width: 100%;
}

.plan-embed__pay {
	display: grid;
	padding: 4px 6px 6px;
	place-items: center;
	width: 100%;
}

.plan-embed__pay-stack {
	isolation: isolate;
	position: relative;
	transform: rotate(-2deg);
	width: min(100%, 150px);
}

.plan-embed__pay-stack:before {
	background: var(--pe-pale);
	border-radius: 10px;
	content: "";
	inset: 6px -4px -4px 4px;
	position: absolute;
	z-index: -1;
}

.plan-embed__pay-sheet {
	background: #fff;
	border: 1px solid #d5e0ec;
	border-radius: 10px;
	box-shadow: 0 5px 12px rgb(8 51 96 / 6%);
	color: var(--pe-navy);
	padding: 9px 10px;
}

.plan-embed__pay-amount {
	align-items: baseline;
	display: flex;
	gap: 6px;
	justify-content: center;
}

.plan-embed__pay-currency {
	font-size: 26px;
	font-weight: 300;
	line-height: 1;
}

.plan-embed__pay-bar {
	align-self: center;
	background: var(--pe-pale);
	border-radius: 999px;
	display: block;
	flex-shrink: 1;
	height: 9px;
	width: 40px;
}

.plan-embed__pay-period {
	color: var(--pe-muted);
	font-size: 13px;
	line-height: 1;
}

.plan-embed__schedule {
	display: grid;
	gap: .25rem;
}

.plan-embed .plan-embed__schedule li {
	margin: 0;
}

.plan-embed__schedule span {
	color: var(--pe-navy);
	display: block;
	font-size: .625rem;
	font-weight: 600;
	line-height: 1.2;
	margin-bottom: .125rem;
}

.plan-embed__schedule li:nth-child(2) span { margin-left: 28%; }

.plan-embed__schedule li:nth-child(3) span {
	margin-left: 55%;
	white-space: nowrap;
}

.plan-embed__schedule li:after {
	background: var(--pe-pale);
	border-radius: 999px;
	content: "";
	display: block;
	height: .3rem;
	width: 45%;
}

.plan-embed__schedule li:nth-child(2):after { background: var(--pe-mid); margin-left: 28%; }
.plan-embed__schedule li:nth-child(3):after { background: var(--pe-blue); margin-left: 55%; }

.plan-embed__stages {
	align-items: end;
	display: grid;
	gap: .375rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	height: 2.75rem;
	max-width: 12rem;
}

.plan-embed .plan-embed__stages li {
	align-items: end;
	display: flex;
	height: 100%;
	margin: 0;
}

.plan-embed__stages-bar {
	align-items: center;
	background: var(--pe-pale);
	border-radius: .3rem .3rem 0 0;
	color: var(--pe-navy);
	display: flex;
	font-size: .625rem;
	font-weight: 700;
	justify-content: center;
	letter-spacing: .04em;
	width: 100%;
}

.plan-embed__stages li:nth-child(1) .plan-embed__stages-bar { height: 1.15rem; }
.plan-embed__stages li:nth-child(2) .plan-embed__stages-bar { background: var(--pe-mid); height: 1.85rem; }
.plan-embed__stages li:nth-child(3) .plan-embed__stages-bar { background: var(--pe-blue); color: #fff; height: 2.55rem; }

.plan-embed__map {
	display: block;
	height: auto;
	max-height: 3.5rem;
	-webkit-mask-image: radial-gradient(58% 58% at 50% 48%, #000 46%, transparent 100%);
	mask-image: radial-gradient(58% 58% at 50% 48%, #000 46%, transparent 100%);
	width: 100%;
}

.plan-embed__reqs {
	display: flex;
	flex-wrap: wrap;
	gap: .375rem .75rem;
	justify-content: center;
}

.plan-embed .plan-embed__reqs li {
	align-items: center;
	display: flex;
	gap: .375rem;
	margin: 0;
}

.plan-embed__reqs .icon {
	align-items: center;
	background: #fff;
	border: 1px solid rgba(1, 46, 92, .12);
	border-radius: 999px;
	color: var(--pe-blue);
	display: flex;
	font-size: .75rem;
	height: 1.5rem;
	justify-content: center;
	width: 1.5rem;
}

.plan-embed__reqs span {
	color: var(--pe-navy);
	font-size: .75rem;
	font-weight: 600;
	line-height: 1.2;
}

.plan-embed__checks {
	display: grid;
	gap: .375rem;
}

.plan-embed .plan-embed__checks li {
	align-items: center;
	display: flex;
	gap: .5rem;
	margin: 0;
}

.plan-embed__checks span {
	border: 1.5px solid var(--pe-blue);
	border-radius: .2rem;
	flex: 0 0 .75rem;
	height: .75rem;
}

.plan-embed__checks i {
	background: var(--pe-pale);
	border-radius: 999px;
	display: block;
	height: .3rem;
	width: 78%;
}

.plan-embed__checks i.is-short { width: 52%; }
.plan-embed__checks li:nth-child(3) i { background: var(--pe-mid); width: 64%; }

/* Two columns once the component itself is wide enough: about 40% offer,
   60% questionnaire. Narrower embeds stack, and the offer collapses once the
   questionnaire is underway so the current question stays in view. */
@container plan-embed (min-width: 38rem) {
	.plan-embed__card {
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	}

	.plan-embed__steps {
		min-height: 0;
	}
}

@container plan-embed (max-width: 37.99rem) {
	.plan-embed__offer {
		padding-bottom: .75rem;
	}
}

@container plan-embed (max-width: 21rem) {
	.plan-embed__offer,
	.plan-embed__builder {
		padding: 1rem;
	}

	.plan-embed .plan-embed__headline {
		font-size: 1.5rem;
	}

	.plan-embed .plan-embed__title {
		font-size: 1.3rem;
	}
}

/* Hash links land on #cta-mobile-lead-form. Keep the top of that card below the
   sticky header, and keep the plan at the top of an overview lead card instead
   of centered in the frame. */
#cta-mobile-lead-form {
	scroll-margin-top: 4rem;
}

.program-overview-scroll.is-enhanced .program-overview-scroll__card--lead .program-overview-scroll__body > .plan-embed {
	margin-bottom: 0;
	margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
	.plan-embed__track,
	.plan-embed__dot,
	.plan-embed__arrow-circle,
	.plan-embed__next-arrow,
	.plan-embed__step.is-out,
	.plan-embed__step.is-in.is-shown {
		transition: none;
	}

	.plan-embed__step.is-out,
	.plan-embed__step.is-in {
		transform: none;
	}

	.plan-embed__dot-fill {
		animation: none !important;
	}

	.plan-embed__dot.is-active .plan-embed__dot-fill {
		transform: scaleX(1);
	}
}
