/* Elimu Sasa fee calculator.
   Tokens from the active design: ink #1B1642, ember #F15A24, brand #2E2380,
   Archivo headings, Manrope body. */

.esa-fee {
	--esa-ink: #1B1642;
	--esa-accent: #F15A24;
	--esa-accent-hover: #D8480F;
	--esa-border: #E7E4F2;
	--esa-surface: #FBFAFF;
	--esa-muted: #55507E;
	font-family: Manrope, sans-serif;
	width: 100%;
	text-align: left;
}

.esa-fee--dark {
	--esa-fee-panel: rgba(255, 255, 255, 0.06);
	--esa-fee-stroke: #4A3DAE;
	--esa-fee-text: #EDEBFA;
	--esa-fee-heading: #FFFFFF;
	--esa-fee-label: #B6AFEA;
	--esa-fee-figure: #FFC7AC;
	--esa-fee-input-bg: rgba(255, 255, 255, 0.08);
	--esa-fee-input-text: #FFFFFF;
}

.esa-fee--light {
	--esa-fee-panel: #FFFFFF;
	--esa-fee-stroke: #E7E4F2;
	--esa-fee-text: #55507E;
	--esa-fee-heading: #1B1642;
	--esa-fee-label: #7C77A8;
	--esa-fee-figure: #F15A24;
	--esa-fee-input-bg: #FFFFFF;
	--esa-fee-input-text: #1B1642;
}

/* The Elementor kit colours headings at .elementor-kit-N h3, which outranks a
   plain class, so the heading here needs the element qualifier to stay legible
   on the indigo band. */
.esa-fee h3.esa-fee__title {
	font-family: Archivo, sans-serif;
	font-weight: 800;
	font-size: 28px;
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: var(--esa-fee-heading);
	margin: 0 0 6px;
}

.esa-fee p.esa-fee__intro {
	font-family: Manrope, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--esa-fee-text);
	margin: 0 0 22px;
	max-width: 42em;
}

.esa-fee__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: stretch;
}

.esa-fee__controls,
.esa-fee__summary {
	background: var(--esa-fee-panel);
	border: 1px solid var(--esa-fee-stroke);
	border-radius: 16px;
	padding: 24px;
}

.esa-fee__controls {
	flex: 1 1 340px;
	min-width: 280px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.esa-fee__summary {
	flex: 1 1 280px;
	min-width: 260px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.esa-fee__field {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.esa-fee__label {
	font-family: Archivo, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--esa-fee-label);
}

.esa-fee select.esa-fee__select {
	width: 100%;
	min-height: 52px;
	padding: 13px 15px;
	border-radius: 8px;
	border: 1.5px solid var(--esa-fee-stroke);
	background: var(--esa-fee-input-bg);
	color: var(--esa-fee-input-text);
	font-family: Manrope, sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
		linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
}

.esa-fee__select:focus-visible,
.esa-fee__plan:focus-visible,
.esa-fee__cta:focus-visible {
	outline: 2px solid var(--esa-accent);
	outline-offset: 2px;
}

/* The dropdown list itself is painted by the OS, so keep it readable */
.esa-fee__select option {
	color: #1B1642;
	background: #FFFFFF;
}

.esa-fee__plans {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* The theme and the Elementor kit both style bare `button` and `a` elements at a
   higher weight than a single class, so these carry an element qualifier. */
.esa-fee button.esa-fee__plan {
	flex: 1 1 110px;
	min-height: 48px;
	padding: 13px 14px;
	border-radius: 8px;
	border: 1.5px solid var(--esa-fee-stroke);
	background-color: var(--esa-fee-input-bg);
	background-image: none;
	color: var(--esa-fee-text);
	font-family: Manrope, sans-serif;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	box-shadow: none;
	text-shadow: none;
	transition: background-color 180ms ease, border-color 180ms ease,
		color 180ms ease, transform 180ms ease;
}

.esa-fee button.esa-fee__plan:hover {
	transform: translateY(-2px);
	background-color: var(--esa-fee-input-bg);
	color: var(--esa-fee-text);
	border-color: var(--esa-accent);
}

.esa-fee button.esa-fee__plan.is-active,
.esa-fee button.esa-fee__plan.is-active:hover {
	background-color: var(--esa-accent);
	border-color: var(--esa-accent);
	color: #FFFFFF;
}

.esa-fee__schedule {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.esa-fee__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 11px 0;
	border-bottom: 1px solid var(--esa-fee-stroke);
}

.esa-fee__row:last-child { border-bottom: 0; }

.esa-fee__when {
	font-size: 14.5px;
	color: var(--esa-fee-text);
	display: flex;
	align-items: center;
	gap: 9px;
}

.esa-fee__when::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--esa-accent);
	flex-shrink: 0;
}

.esa-fee__amount {
	font-family: Archivo, sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: var(--esa-fee-heading);
	white-space: nowrap;
}

.esa-fee__total {
	font-family: Archivo, sans-serif;
	font-size: 40px;
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--esa-fee-figure);
}

.esa-fee__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 6px;
}

.esa-fee__metarow {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	padding: 9px 0;
	border-bottom: 1px solid var(--esa-fee-stroke);
	font-size: 14px;
	color: var(--esa-fee-text);
}

.esa-fee__metarow:last-child { border-bottom: 0; }

.esa-fee__metarow span:last-child {
	font-weight: 700;
	color: var(--esa-fee-heading);
	text-align: right;
}

.esa-fee p.esa-fee__note {
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--esa-fee-text);
	margin: 4px 0 0;
}

.esa-fee a.esa-fee__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	margin-top: auto;
	min-height: 52px;
	padding: 15px 22px;
	border-radius: 8px;
	background-color: var(--esa-accent);
	color: #FFFFFF;
	font-family: Manrope, sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color 200ms ease, transform 180ms ease;
}

.esa-fee a.esa-fee__cta:hover,
.esa-fee a.esa-fee__cta:focus {
	background-color: var(--esa-accent-hover);
	color: #FFFFFF;
	transform: translateY(-2px);
}

@media (max-width: 782px) {
	.esa-fee__total { font-size: 34px; }
	.esa-fee__controls, .esa-fee__summary { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.esa-fee__plan, .esa-fee__cta { transition: none; }
	.esa-fee__plan:hover, .esa-fee__cta:hover { transform: none; }
}
