/* SR Calculators – frontend wizard */
:root {
	--sr-navy:      #183166;
	--sr-coral:     #E76B3B;
	--sr-mint:      #CBE8E6;
	--sr-mint-dark: #A8D5D3;
	--sr-white:     #ffffff;
	--sr-gray:      #6B7A99;
	--sr-divider:   #D9DDE8;
	--sr-insight-bg:#EEF7F7;
	--sr-radius:    16px;
	--sr-radius-sm: 8px;
}

.sr-calc {
	font-family: inherit;
	color: var(--sr-navy);
	padding: 48px 24px;
    max-width: var(--frame-width);
	margin: 0 auto;
	opacity: 0;
	animation: srFadeUp .6s ease both;
	scroll-margin-top: var(--sr-scroll-offset, 80px);
}

/* ── Steps ── */
.sr-calc__step--hidden {
	display: none !important;
}

/* ── Waterfall reveal ── */
@keyframes srFadeUp {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

.sr-calc__reveal {
	opacity: 0;
	animation: srFadeUp .5s ease both;
}

@media (prefers-reduced-motion: reduce) {
	.sr-calc,
	.sr-calc__reveal {
		animation: none;
		opacity: 1;
	}
}

/* ── Layout (step 1) ── */
.sr-calc__layout {
	display: flex;
	align-items: center;
	gap: 64px;
}

/* Navy panel behind step 1 — full-bleed, rounded on the left */
.sr-calc__step[data-step="1"] .sr-calc__layout {
	position: relative;
	padding-top: 64px;
	padding-bottom: 64px;
	padding-left: 50rem;
}

.sr-calc__step[data-step="1"] .sr-calc__layout::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
    left: calc((var(--frame-width) - 100vw) / 2 + 80rem);
	right: calc(50% - 50vw);
	background: var(--sr-navy);
	width: 100vw;
	border-radius: 40rem 0 0 40rem;
	z-index: 0;
}

.sr-calc__copy {
	flex: 1;
	position: relative;
	z-index: 1;
}

.sr-calc__card {
	flex: 1;
	position: relative;
	z-index: 1;
	background: var(--sr-mint);
	box-sizing: border-box;
	border-radius: 280px 0 0 280px;
	padding: 100px 48px 100px 80px;
	/* Bleed the panel to the right viewport edge (defining look of the design) */
	margin-right: calc(50% - 50vw);
	padding-right: max(48px, calc(50vw - 50% + 48px));
}

/* ── Typography ── */
.sr-calc__eyebrow {
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .1em;
	color: var(--sr-gray);
	text-transform: uppercase;
	margin: 0 0 12px;
}

.sr-calc__heading {
	font-size: clamp(28px, 4vw, 45px);
	font-weight: 600;
	line-height: 1.17;
	color: var(--sr-coral) !important;
	margin: 0 0 16px;
}

.sr-calc__copy-head {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0 0 16px;
}

.sr-calc__icon {
	flex-shrink: 0;
	width: 90px;
	height: 90px;
	display: block;
}

.sr-calc__copy-head .sr-calc__eyebrow,
.sr-calc__copy-head .sr-calc__heading {
	margin: 0;
}

.sr-calc__copy-head .sr-calc__eyebrow {
	margin-bottom: 8px;
}

/* Step 1 copy sits on the navy panel */
.sr-calc__step[data-step="1"] .sr-calc__heading {
	color: var(--sr-coral);
}

.sr-calc__step[data-step="1"] .sr-calc__desc {
	color: var(--sr-white);
    text-wrap-style: pretty;
}

.sr-calc__busy {
	font-size: 15px;
	line-height: 1.4;
	color: #C9E9E9;
	margin: 24px 0 0;
	max-width: 395px;
}

.sr-calc__busy strong {
	font-weight: 700;
}

.sr-calc__desc {
	font-size: 18px;
	color: #000;
	margin: 0;
	max-width: 395px;
}

.sr-calc__card-label {
	color: var(--sr-coral);
	font-family: "Noto Sans";
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
	text-align: end;
	margin: 0 0 22px;
}

/* ── Form fields (Step 1: inline label + compact input pill) ── */
.sr-calc__field {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.sr-calc__field-label {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
    text-align: end;
	color: var(--sr-navy);
	margin: 0;
	flex: 1 1 auto;
}

.sr-calc__input-wrap {
	position: relative;
	flex: 0 0 130px;
}

.sr-calc__input-wrap--currency .sr-calc__input {
	padding-left: 22px;
}

.sr-calc__currency-sign {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--sr-gray);
	font-size: 16px;
	font-weight: 700;
	pointer-events: none;
}

.sr-calc__input {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid transparent;
	border-radius: 50px;
	background: var(--sr-white);
	color: var(--sr-gray);
	font-size: 16px;
	font-weight: 700;
	box-sizing: border-box;
	outline: none;
	transition: border-color .15s;
	-moz-appearance: textfield;
}

.sr-calc__input::-webkit-outer-spin-button,
.sr-calc__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
}

.sr-calc__input:focus {
	border-color: var(--sr-navy);
}

.sr-calc__input--gate {
	background: transparent;
	border: 2px solid #C9E9E9;
	border-radius: 50px;
	padding: 12px 25px;
}
.sr-calc__input--gate::placeholder {
	color: rgba(0, 0, 0, 0.45);
	font-size: 16px;
	font-weight: 400;
	line-height: 2;
}

.sr-calc__input--gate:focus {
	border-color: var(--sr-navy);
}

/* ── Button ── */
.sr-calc__btn {
	display: inline-block;
	padding: 12px 25px;
	border-radius: 50px;
	border: none;
	cursor: pointer;
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
	transition: opacity 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s;
}

.sr-calc__btn--primary {
	background: var(--sr-coral);
	color: var(--sr-white);
}

.sr-calc__btn--primary:hover {
	color: var(--sr-white);
	background: var(--light-orange);
}

.sr-calc__btn--primary:active {
	transform: scale(.98);
}

.sr-calc__btn--primary:disabled {
	opacity: .6;
	cursor: default;
}

/* Gate form (Step 2) keeps the full-width button */
.sr-calc__form[data-form="gate"] .sr-calc__btn {
	width: 100%;
	margin-top: 8px;
}

/* Inputs form (Step 1) uses a compact, centered button */
.sr-calc__form[data-form="inputs"] .sr-calc__btn {
	display: block;
	margin: 28px 0 0 auto;
	padding: 14px 48px;
}

/* ── Step 2: hero (heading left, calls right) ── */
.sr-calc__gate-hero {
	display: flex;
	align-items: flex-start;
	gap: 48px;
	margin-bottom: 40px;
}

.sr-calc__gate-hero-left {
	flex: 1;
}

.sr-calc__gate-hero-right {
	flex: 0 0 420px;
}

.sr-calc__calls-word {
	color: var(--sr-coral);
}

.sr-calc__desc--gate {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 16px;
}

/* ── Step 2/3 shared header ── */
.sr-calc__gate-header {
	text-align: center;
	margin-bottom: 32px;
}

.sr-calc__roi-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	color: var(--sr-gray);
	margin: 0 0 4px;
}

.sr-calc__roi-value {
	font-size: clamp(36px, 6vw, 64px);
	font-weight: 800;
	color: var(--sr-coral);
	margin: 0 0 16px;
	line-height: 1;
}

/* ── Gate form ── */
.sr-calc__gate-form {
	margin: 0 auto;
	padding-bottom: 55px;
	text-align: center;
	border-bottom: 1px solid #C9E9E9;
}

.sr-calc__gate-btn {
	max-width: 560px;
	margin: 0 auto;
}

.sr-calc__gate-fields {
	max-width: 560px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 16px;
}

.sr-calc__gate-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sr-calc__gate-field--full {
	grid-column: span 2;
}

.sr-calc__gate-fields select.sr-calc__input--gate {
	border-radius: 50px;
	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 1l5 5 5-5' stroke='%231B2B4B' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;
	cursor: pointer;
}

/* ── Step 2: blurred results teaser ── */
.sr-calc__preview {
	margin-top: 8px;
	filter: blur(13px);
	opacity: .8;
	pointer-events: none;
	user-select: none;
	-webkit-user-select: none;
}

.sr-calc__input--error {
	border-color: #d63638 !important;
}

.sr-calc__field-error {
	font-size: 12px;
	color: #d63638;
	padding-left: 14px;
}

/* ── Step 3: blurred results teaser ── */
.sr-calc__result-heading {
	max-width: 500px;
}

.sr-calc__result-hero {
	margin-bottom: 50px;
}

/* ── Results ── */
.sr-calc__results-inner {
	display: flex;
	gap: 48px;
	padding-top: 50px;
	margin-top: 36px;
	border-top: 1px solid var(--sr-divider);
}

.sr-calc__results-left {
	flex: 1;
}

.sr-calc__results-right {
	flex: 0 0 460px;
}

.sr-calc__plan-name {
	font-size: clamp(24px, 3vw, 38px);
	line-height: 1.2;
	font-weight: 600;
	margin: 0;
	padding: 0;
}

.sr-calc__divider {
	border: none;
	border-top: 1px solid var(--sr-divider);
	margin: 40px 0;
}

.sr-calc__income-label {
	font-family: "Outfit";
	font-size: clamp(24px, 2.5vw, 34px);
	font-weight: 600;
	color: var(--sr-navy);
	line-height: 1.05;
	margin: 0 0 34px;
}

.sr-calc__plan-desc {
	font-size: 18px;
	color: #000;
	margin: 8px 0 0;
}

.sr-calc__result-label {
	font-size: 11px;
	font-weight: 600;
	color: var(--sr-gray);
	margin: 0 0 4px;
}

.sr-calc__result-label:not(:first-child) {
	margin-top: 50px;
}

.sr-calc__calls {
	font-family: "Outfit";
	font-size: clamp(48px, 7vw, 65px);
	font-weight: 600;
	line-height: .7;
	margin: 0 0 4px;
}

.sr-calc__calls-value {
	color: var(--sr-coral);
}

.sr-calc__calls-total {
	font-size: 25px;
	color: var(--sr-coral);
	font-weight: 600;
}

.sr-calc__income {
	font-family: "Outfit";
	font-size: clamp(48px, 5vw, 90px);
	font-weight: 600;
	line-height: .9;
	color: var(--sr-coral);
	margin: 0;
}

/* ── Industry Insights ── */
.sr-calc__insights-title {
	font-size: 25px;
	font-weight: 600;
	margin: 0 0 16px;
	line-height: 1.8;
}

.sr-calc__insights {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.sr-calc__insight {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--sr-insight-bg);
	border-radius: var(--sr-radius-sm);
	padding: 20px;
	gap: 85px;
}

.sr-calc__insight p {
	font-size: 16px;
	font-weight: 600;
	color: var(--sr-navy);
	margin: 0;
	text-transform: uppercase;
}

.sr-calc__insight strong {
	font-family: "Outfit";
	font-size: clamp(48px, 5vw, 65px);
	font-weight: 600;
	color: var(--sr-navy);
	white-space: nowrap;
	line-height: .8;
}

/* ── CTA wrap ── */
.sr-calc__cta-wrap {
	text-align: center;
	margin-top: 40px;
}

/* ── Secondary "Go Back" link ── */
.sr-calc__back-wrap {
	text-align: center;
	margin-top: 16px;
}

.sr-calc__back {
	display: inline-block;
	padding: 4px 8px;
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	color: var(--sr-navy);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color .2s;
}

.sr-calc__back:hover {
	color: var(--sr-coral);
}

/* ── Responsive ── */

@media (max-width: 959px) {
	.sr-calc__layout {
		flex-direction: column;
	}

	.sr-calc__step[data-step="1"] .sr-calc__layout {
		padding-top: 40px;
		padding-bottom: 40px;
		padding-left: 24px;
		gap: 32px;
	}

	.sr-calc__step[data-step="1"] .sr-calc__layout::before {
		left: calc((var(--frame-width) - 100vw) / 2 + 15rem);
	}

	.sr-calc__card {
		flex: none;
		width: 100%;
		border-radius: var(--sr-radius);
		padding: 36px 28px 40px;
		margin-right: 0;
	}

	.sr-calc__results-inner {
		flex-direction: column;
	}

	.sr-calc__results-right {
		flex: none;
		width: 100%;
	}

	.sr-calc__insight {
		gap: 20px;
	}

	.sr-calc__gate-hero {
		flex-direction: column;
		gap: 16px;
	}

	.sr-calc__gate-hero-right {
		flex: none;
		width: 100%;
	}

	.sr-calc__desc--gate {
		text-align: start;
	}

	.sr-calc__gate-fields {
		grid-template-columns: 1fr;
		
	}

	.sr-calc__gate-field--full {
		grid-column: span 1;
	}
}

@media (max-width: 500px) {
	.sr-calc__step[data-step="1"] .sr-calc__layout {
		padding-left: 24px;
	}
	.sr-calc__step[data-step="1"] .sr-calc__layout::before {
		left: 0;
	}
}