/*
 * All text/background colors below are marked !important on purpose.
 * Many WordPress themes set global colors on p, h2, h3, and button
 * elements with higher CSS specificity than a simple .roiest class,
 * which silently washes out this widget's text and buttons. !important
 * guarantees this widget always renders in its own colors regardless
 * of the theme it's embedded in.
 */

.roiest {
	--roiest-bg: #1E4FD8;
	--roiest-accent: #CFEF3E;
	--roiest-cta: #CFEF3E;
	--roiest-ink: #FFFFFF;
	--roiest-line: rgba(255, 255, 255, 0.35);
	--roiest-field-ink: #000000;
	--roiest-field-line: #E5E7EB;

	max-width: 640px;
	margin: 2rem auto;
	padding: 2.25rem 2rem 2rem;
	background: var(--roiest-bg) !important;
	border: 1px solid var(--roiest-line);
	border-radius: 6px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #FFFFFF !important;
	line-height: 1.5;
	box-sizing: border-box;
}
.roiest *, .roiest *::before, .roiest *::after { box-sizing: inherit; }

.roiest-progress {
	height: 4px;
	background: var(--roiest-line) !important;
	border-radius: 2px;
	margin-bottom: 2rem;
	overflow: hidden;
}
.roiest-progress-bar span {
	display: block;
	height: 100%;
	width: 0%;
	background: var(--roiest-accent) !important;
	transition: width .35s ease;
}

.roiest-step { display: none; }
.roiest-step.is-active { display: block; animation: roiest-fade .25s ease; }
@keyframes roiest-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* All copy that sits on the blue panel: pure white, forced. */
.roiest-eyebrow,
.roiest-step-label,
.roiest h2,
.roiest h3,
.roiest-lede,
.roiest-help,
.roiest-field label,
.roiest-result-label,
.roiest-result-sub,
.roiest-result-sub span,
.roiest-result-figure,
.roiest-breakdown li span,
.roiest-breakdown li strong,
.roiest-range-out,
.roiest-fineprint {
	color: #FFFFFF !important;
}

.roiest-eyebrow {
	font-size: .8125rem;
	font-weight: 700;
	margin: 0 0 .5rem;
	opacity: .85;
}
.roiest-step-label {
	font-size: .8125rem;
	font-weight: 700;
	margin: 0 0 .5rem;
	opacity: .85;
}
.roiest h2 {
	font-size: 1.55rem;
	line-height: 1.3;
	margin: 0 0 .75rem;
	max-width: 34ch;
}
.roiest h3 {
	font-size: 1.25rem;
	line-height: 1.35;
	margin: 0 0 .5rem;
	max-width: 38ch;
}
.roiest-lede, .roiest-help {
	font-size: .95rem;
	max-width: 46ch;
	margin: 0 0 1.5rem;
	opacity: .9;
}

.roiest-field { margin-bottom: 1.25rem; }
.roiest-field label {
	display: block;
	font-size: .875rem;
	font-weight: 600;
	margin-bottom: .375rem;
}

/* Inputs stay on solid white "cards" so they're always readable regardless
   of the panel color — text and symbols here are forced to black. */
.roiest-field input[type="number"],
.roiest-field input[type="text"],
.roiest-field input[type="email"],
.roiest-field input[type="tel"],
.roiest-field select {
	width: 100%;
	padding: .65rem .75rem;
	border: 1px solid var(--roiest-field-line);
	border-radius: 4px;
	font-size: 1rem;
	background: #FFFFFF !important;
	color: #000000 !important;
}
.roiest-field input:focus, .roiest-field select:focus {
	outline: 2px solid var(--roiest-accent);
	outline-offset: 1px;
}
.roiest-prefixed {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--roiest-field-line);
	border-radius: 4px;
	overflow: hidden;
	background: #FFFFFF !important;
}
.roiest-prefixed span {
	display: flex;
	align-items: center;
	padding: 0 .75rem;
	background: var(--roiest-field-line) !important;
	font-weight: 700;
	color: #000000 !important;
}
.roiest-prefixed input { border: none; border-radius: 0; }
.roiest-prefixed input:focus { outline: none; }

input[type="range"] { width: 100%; accent-color: var(--roiest-accent); }

.roiest-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 1.75rem;
}

/* Start / Next / final CTA buttons: lime green, forced, with black text. */
.roiest-btn, .roiest-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--roiest-accent) !important;
	background-color: var(--roiest-accent) !important;
	color: #000000 !important;
	border: none;
	padding: .8rem 1.5rem;
	font-size: .95rem;
	font-weight: 700;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	transition: opacity .15s ease;
}
.roiest-btn:hover, .roiest-btn:focus,
.roiest-cta-btn:hover, .roiest-cta-btn:focus {
	opacity: .88;
	color: #000000 !important;
}

.roiest-cta-btn {
	background: var(--roiest-cta) !important;
	background-color: var(--roiest-cta) !important;
	padding: 1rem 2rem;
	font-size: 1rem;
}

.roiest-btn-outline {
	background: transparent !important;
	color: #FFFFFF !important;
	border: 1px solid var(--roiest-line);
	padding: .8rem 1.25rem;
	font-size: .95rem;
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
}
.roiest-btn-outline:hover { border-color: #FFFFFF; }

.roiest-error {
	color: #FFD9D4 !important;
	font-size: .875rem;
	margin: -.5rem 0 1rem;
	font-weight: 600;
}

/* Results panel sits directly on the blue background — white text throughout,
   the two headline numbers are the only green ("highlight") elements. */
.roiest-result-hero {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	background: rgba(255, 255, 255, 0.08) !important;
	border: 1px solid var(--roiest-line);
	border-radius: 6px;
	padding: 1.5rem;
	margin: 1rem 0 1.5rem;
}
.roiest-result-label {
	font-size: .8125rem;
	font-weight: 600;
	margin-bottom: .35rem;
	opacity: .85;
}
.roiest-result-figure {
	font-size: 2.75rem;
	font-weight: 800;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}
.roiest-result-sub {
	margin-top: .35rem;
	font-size: .9rem;
	opacity: .85;
}
.roiest-result-sub span { font-weight: 700; }

.roiest-breakdown {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	border-top: 1px solid var(--roiest-line);
}
.roiest-breakdown li {
	display: flex;
	justify-content: space-between;
	padding: .7rem 0;
	border-bottom: 1px solid var(--roiest-line);
	font-size: .95rem;
}
.roiest-breakdown li span { opacity: .85; font-weight: 500; }
.roiest-breakdown li strong { font-variant-numeric: tabular-nums; }

.roiest-fineprint {
	font-size: .8125rem;
	max-width: 52ch;
	margin: 0 0 1.5rem;
	opacity: .8;
}

.roiest-cta { text-align: left; }

@media (max-width: 480px) {
	.roiest { padding: 1.5rem 1.25rem; margin: 1rem auto; }
	.roiest-result-figure { font-size: 2.1rem; }
	.roiest-nav { flex-wrap: wrap; gap: .75rem; }
}
