/**
 * Senior Lawyer earnings calculator — premium financial-planner styling.
 *
 * Layout:
 *   [intro]
 *   [white wrapper card · inputs]    [dark Arbor Green results card]
 *                                    [light off-white holiday callout]
 *
 * Each field on the left is a soft off-white mini-panel inside the white
 * wrapper; each result row in the dark card is a translucent inset row.
 * Sliders are 8px thick with a green-filled progress track and a white
 * thumb ringed in Arbor Green.
 */

.al-calc {
	max-width: 1140px;
	margin: 0 auto;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
	grid-template-areas:
		"intro   intro"
		"inputs  results";
	column-gap: 40px;
	row-gap: 40px;
	align-items: start;
}
@media (max-width: 1024px) {
	.al-calc {
		grid-template-columns: 1fr;
		grid-template-areas:
			"intro"
			"inputs"
			"results";
		column-gap: 0;
	}
}

.al-calc *, .al-calc *::before, .al-calc *::after { box-sizing: border-box; }

/* --- Intro spans the full width above the side-by-side grid --- */
.al-calc__intro {
	grid-area: intro;
	margin: 0;
	text-align: left;
	position: relative;
}
.al-calc__intro::before {
	content: "";
	display: block;
	width: 40px;
	height: 2px;
	background: #10555A;
	margin-bottom: 20px;
}
.al-calc__intro-eyebrow {
	font-family: 'Satoshi', sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 1.3;
	color: #10555A;
	margin: 0 0 12px;
}
.al-calc__intro-text {
	font-family: 'Lato', sans-serif;
	font-weight: 400;
	font-size: 17px;
	line-height: 1.6;
	color: var(--e-global-color-secondary, #1F2328);
	margin: 0;
	max-width: 720px;
}

/* =============================================================
 * LEFT — white wrapper card containing all inputs.
 * ============================================================= */
.al-calc__columns {
	grid-area: inputs;
	display: flex;
	flex-direction: column;
	gap: 32px;
	margin: 0;
	background: #FFFFFF;
	border: 1px solid rgba(16, 85, 90, 0.10);
	border-radius: 28px;
	box-shadow: 0 24px 70px rgba(31, 35, 40, 0.08);
	padding: 40px;
}
@media (max-width: 767px) {
	.al-calc__columns { padding: 28px 24px; gap: 28px; }
}

.al-calc__col {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* Section heading row — green rounded pill accent + bold label */
.al-calc__col-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: 'Satoshi', sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.3;
	color: var(--e-global-color-secondary, #1F2328);
	margin: 0 0 6px;
	padding: 0;
}
.al-calc__col-title::before {
	content: "";
	width: 6px;
	height: 28px;
	border-radius: 999px;
	background: #10555A;
	flex: 0 0 auto;
}

/* Each field is a mini-panel inside the white wrapper. */
.al-calc__field {
	display: flex;
	flex-direction: column;
	gap: 14px;
	background: rgba(242, 241, 237, 0.55);
	border: 1px solid rgba(16, 85, 90, 0.08);
	border-radius: 18px;
	padding: 20px 22px;
}
@media (max-width: 480px) {
	.al-calc__field { padding: 16px 18px; gap: 12px; }
}

.al-calc__field-head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.al-calc__field-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(16, 85, 90, 0.10);
	color: #10555A;
	font-size: 13px;
	flex: 0 0 auto;
}

.al-calc__label-wrap {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.al-calc__label {
	font-family: 'Lato', sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.4;
	color: var(--e-global-color-secondary, #1F2328);
}

.al-calc__sublabel {
	font-family: 'Lato', sans-serif;
	font-weight: 400;
	font-size: 12.5px;
	line-height: 1.4;
	color: rgba(31, 35, 40, 0.55);
}

.al-calc__field-row {
	display: grid;
	grid-template-columns: 1fr 170px;
	align-items: center;
	gap: 18px;
}
@media (max-width: 480px) {
	.al-calc__field-row {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}

/* --- Range slider — 8px track, green fill, white thumb ringed in green --- */
.al-calc__slider {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 8px;
	background: linear-gradient(
		to right,
		#10555A 0%,
		#10555A var(--al-calc-fill, 50%),
		rgba(111, 140, 134, 0.22) var(--al-calc-fill, 50%),
		rgba(111, 140, 134, 0.22) 100%
	);
	border-radius: 999px;
	outline: none;
	margin: 0;
	cursor: pointer;
}
.al-calc__slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #FFFFFF;
	border: 4px solid #10555A;
	box-shadow: 0 6px 16px rgba(16, 85, 90, 0.28);
	cursor: grab;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.al-calc__slider::-webkit-slider-thumb:hover {
	transform: scale(1.05);
	box-shadow: 0 8px 20px rgba(16, 85, 90, 0.35);
}
.al-calc__slider::-webkit-slider-thumb:active {
	cursor: grabbing;
	transform: scale(1.1);
	box-shadow: 0 10px 24px rgba(16, 85, 90, 0.42);
}
.al-calc__slider::-moz-range-thumb {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #FFFFFF;
	border: 4px solid #10555A;
	box-shadow: 0 6px 16px rgba(16, 85, 90, 0.28);
	cursor: grab;
}
.al-calc__slider:focus-visible {
	outline: 2px solid #10555A;
	outline-offset: 4px;
}

/* --- Numeric input — white box with subtle border + inset shadow --- */
.al-calc__number-wrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
}

.al-calc__prefix,
.al-calc__suffix {
	font-family: 'Satoshi', sans-serif;
	font-weight: 500;
	font-size: 15px;
	color: rgba(16, 85, 90, 0.6);
}

.al-calc__number {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	background: #FFFFFF;
	border: 1px solid rgba(31, 35, 40, 0.14);
	border-radius: 12px;
	font-family: 'Satoshi', sans-serif;
	font-weight: 600;
	font-size: 17px;
	line-height: 1.2;
	color: var(--e-global-color-secondary, #1F2328);
	padding: 12px 14px;
	box-shadow: inset 0 1px 2px rgba(31, 35, 40, 0.04);
	-moz-appearance: textfield;
	appearance: textfield;
	font-variant-numeric: tabular-nums;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.al-calc__number::-webkit-outer-spin-button,
.al-calc__number::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.al-calc__number:focus {
	border-color: #10555A;
	box-shadow: inset 0 1px 2px rgba(31, 35, 40, 0.04), 0 0 0 4px rgba(16, 85, 90, 0.12);
}

/* =============================================================
 * RIGHT — dark Arbor Green results card. Sticky on desktop so it
 * stays in view while users drag sliders.
 * ============================================================= */
.al-calc__results {
	grid-area: results;
	position: sticky;
	top: 40px;
}
@media (max-width: 1024px) {
	.al-calc__results { position: static; }
}

.al-calc__results-panel {
	background: #10555A;
	color: #FFFFFF;
	padding: 40px;
	border-radius: 32px;
	box-shadow: 0 28px 80px rgba(16, 85, 90, 0.24);
	position: relative;
	overflow: hidden;
}
@media (max-width: 767px) {
	.al-calc__results-panel { padding: 32px 24px; border-radius: 24px; }
}

/* Removed: the small Arbor Green top-left accent rule (no longer needed
   on the dark panel — the colour itself is the brand mark). */
.al-calc__results-panel::before { content: none; }

.al-calc__results-overline {
	font-family: 'Satoshi', sans-serif;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.72);
	margin: 0 0 8px;
}

.al-calc__results-hero {
	font-family: 'Satoshi', sans-serif;
	font-weight: 700;
	font-size: 44px;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: #FFFFFF;
	margin: 0 0 14px;
	font-variant-numeric: tabular-nums;
}
@media (max-width: 768px)  { .al-calc__results-hero { font-size: 34px; } }
@media (max-width: 480px)  { .al-calc__results-hero { font-size: 28px; } }

.al-calc__results-hero-caption {
	font-family: 'Lato', sans-serif;
	font-weight: 400;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.65);
	margin: 0 0 32px;
	max-width: 60ch;
}

.al-calc__results-rule { display: none; }

.al-calc__results-grid {
	display: grid;
	grid-template-columns: 1fr;
	row-gap: 12px;
	padding-top: 0;
	border-top: 0;
}

/* Each result row is an inset translucent-white card on the green panel,
   laid out as a flex row: small icon badge on the left, label + value on
   the right. */
.al-calc__results-item {
	display: flex;
	align-items: center;
	gap: 14px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 16px;
	padding: 16px 20px;
}

.al-calc__results-item-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.10);
	color: #FFFFFF;
	font-size: 13px;
	flex: 0 0 auto;
}

.al-calc__results-item-text {
	flex: 1 1 auto;
	min-width: 0;
}

.al-calc__results-label {
	font-family: 'Lato', sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.7);
	margin: 0 0 4px;
}

.al-calc__results-value {
	font-family: 'Satoshi', sans-serif;
	font-weight: 700;
	font-size: 22px;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: #FFFFFF;
	margin: 0;
	font-variant-numeric: tabular-nums;
}

.al-calc__results-sublabel {
	font-family: 'Lato', sans-serif;
	font-weight: 400;
	font-size: 12px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.55);
	margin: 6px 0 0;
}

/* "Want more holiday?" callout — sits at the bottom of the results
   panel as a separate light box, contrasting with the dark inset rows.
   Stacks the icon centred on top, then the label and value below. */
.al-calc__results-item--full {
	flex-direction: column;
	align-items: center;
	background: var(--e-global-color-al_off_white, #F2F1ED);
	border: 0;
	border-radius: 20px;
	padding: 22px 24px;
	margin-top: 16px;
	text-align: center;
	gap: 10px;
}
.al-calc__results-item--full .al-calc__results-item-icon {
	background: rgba(16, 85, 90, 0.10);
	color: #10555A;
	width: 44px;
	height: 44px;
	font-size: 16px;
}
.al-calc__results-item--full .al-calc__results-item-text {
	width: 100%;
}
.al-calc__results-item--full .al-calc__results-label {
	color: var(--e-global-color-secondary, #1F2328);
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 8px;
}
.al-calc__results-item--full .al-calc__results-value {
	color: #10555A;
	font-size: 30px;
	font-weight: 700;
}
.al-calc__results-item--full .al-calc__results-sublabel {
	color: rgba(31, 35, 40, 0.65);
	max-width: 56ch;
	margin-left: auto;
	margin-right: auto;
}
