/*
 * Fizo ROI Calculator
 *
 * Alles is gescoped onder .fizo-roi. Waarden die het theme (GeneratePress) anders zet,
 * zoals box-sizing, line-height, marges en form-styling, worden hier expliciet vastgelegd
 * zodat de calculator er overal hetzelfde uitziet. Lettertype komt bewust van de site (body-font,
 * en voor de koppen h2/h3 het kop-font); lettergroottes zijn afgestemd op fizo.nl.
 */

.fizo-roi {
	--fizo-primary: #1e3a8a;
	--fizo-primary-light: #2563eb;
	--fizo-primary-hover: #1d4ed8;
	--fizo-secondary: #0f172a;
	--fizo-bg: #f8fafc;
	--fizo-card-bg: #ffffff;
	--fizo-text: #334155;
	--fizo-border: #e2e8f0;

	box-sizing: content-box;
	max-width: 850px;
	margin: 0 auto;
	background: var(--fizo-card-bg);
	padding: 36px;
	border-radius: 16px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
	border: 1px solid #f1f5f9;

	/* Lettertype van de site (GeneratePress body-font). */
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: normal;
	letter-spacing: normal;
	color: var(--fizo-text);
	text-align: left;
	text-transform: none;
}

.fizo-roi *,
.fizo-roi *::before,
.fizo-roi *::after {
	box-sizing: content-box;
}

/* Header */

.fizo-roi .fizo-roi__header {
	text-align: center;
	border-bottom: 2px solid var(--fizo-border);
	padding-bottom: 24px;
	margin-bottom: 32px;
}

.fizo-roi .fizo-roi__title {
	color: var(--fizo-primary);
	margin: 0 0 8px 0;
	padding: 0;
	font-size: 36px;
	font-weight: 700;
	line-height: normal;
	letter-spacing: -0.02em;
	text-transform: none;
}

.fizo-roi .fizo-roi__subtitle {
	color: #64748b;
	font-size: 18px;
	line-height: normal;
	margin: 0;
	padding: 0;
}

.fizo-roi .fizo-roi__badge {
	background: #dbeafe;
	color: var(--fizo-primary);
	padding: 10px 24px;
	border-radius: 9999px;
	display: inline-block;
	font-weight: 700;
	margin-top: 18px;
	font-size: 21px;
	line-height: normal;
	border: 1px solid #bfdbfe;
}

/* Layout */

.fizo-roi .fizo-roi__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	margin-bottom: 32px;
}

@media (max-width: 768px) {
	.fizo-roi .fizo-roi__grid {
		grid-template-columns: 1fr;
	}
}

.fizo-roi .fizo-roi__section-title {
	color: var(--fizo-secondary);
	border-left: 4px solid var(--fizo-primary-light);
	padding: 0 0 0 12px;
	/* Bovenmarge = browserstandaard voor een h2 (0.83em), zoals in het origineel. */
	margin: 0.83em 0 20px 0;
	font-size: 22px;
	font-weight: 700;
	line-height: normal;
	letter-spacing: normal;
	text-transform: none;
}

/* Invoer */

.fizo-roi .fizo-roi__input-group {
	margin-bottom: 20px;
}

.fizo-roi .fizo-roi__label {
	display: block;
	margin: 0 0 8px 0;
	padding: 0;
	font-weight: 600;
	font-size: 17px;
	line-height: normal;
	color: #1e293b;
}

.fizo-roi .fizo-roi__range-container {
	display: flex;
	align-items: center;
	gap: 15px;
}

.fizo-roi .fizo-roi__range {
	flex: 1;
	width: auto;
	height: 6px;
	margin: 2px;
	padding: 0;
	border: 0;
	background: #e2e8f0;
	border-radius: 5px;
	accent-color: var(--fizo-primary-light);
	cursor: pointer;
	box-shadow: none;
	font-family: inherit;
	font-size: revert;
	line-height: revert;
}

.fizo-roi .fizo-roi__value-display {
	width: 60px;
	text-align: right;
	font-weight: 700;
	color: var(--fizo-primary);
	font-size: 18px;
}

.fizo-roi .fizo-roi__number {
	box-sizing: border-box;
	display: inline-block;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--fizo-border);
	border-radius: 8px;
	background: #ffffff;
	color: #000000;
	/* Lettertype van de site, ook in formuliervelden. */
	font-family: inherit;
	font-size: 18px;
	font-weight: 400;
	line-height: normal;
	box-shadow: none;
	outline: none;
	transition: border-color 0.2s;
}

.fizo-roi .fizo-roi__number:focus {
	background: #ffffff;
	color: #000000;
	border-color: var(--fizo-primary-light);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
	outline: none;
}

.fizo-roi .fizo-roi__static-value {
	padding: 10px 12px;
	background-color: #f8fafc;
	border: 1px solid var(--fizo-border);
	border-radius: 8px;
	font-weight: 600;
	color: var(--fizo-secondary);
	font-size: 18px;
	line-height: normal;
}

.fizo-roi .fizo-roi__hint {
	color: #64748b;
	font-size: 14px;
	line-height: normal;
	margin-top: 4px;
	display: block;
}

/* Resultaten */

.fizo-roi .fizo-roi__results-panel {
	background: var(--fizo-bg);
	padding: 24px;
	border-radius: 12px;
	border: 1px solid var(--fizo-border);
	height: fit-content;
}

.fizo-roi .fizo-roi__result-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
	padding: 11px 0;
	border-bottom: 1px solid var(--fizo-border);
	font-size: 17px;
}

.fizo-roi .fizo-roi__result-row:last-child {
	border-bottom: none;
}

.fizo-roi .fizo-roi__result-val {
	/* Bedragen nooit afbreken; op smalle schermen breekt de omschrijving ernaast af. */
	white-space: nowrap;
	font-weight: 700;
	font-size: 19px;
	color: #0f172a;
}

.fizo-roi .fizo-roi__result-val--highlight {
	color: #16a34a;
	font-size: 24px;
}

/* Knop */

.fizo-roi .fizo-roi__btn-container {
	text-align: right;
	/* Knop op dezelfde hoogte als het label van de verzuimreductie-slider in de linkerkolom
	   (afgestemd op het lettertype van fizo.nl, Encode Sans Condensed). */
	margin-top: 43px;
}

.fizo-roi .fizo-roi__btn {
	display: inline-block;
	box-sizing: border-box;
	width: auto;
	margin: 0;
	background-color: var(--fizo-primary);
	color: #ffffff;
	border: none;
	padding: 12px 24px;
	font-family: inherit;
	font-size: 17px;
	font-weight: 600;
	line-height: normal;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.1s;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fizo-roi .fizo-roi__btn:hover,
.fizo-roi .fizo-roi__btn:focus {
	background-color: var(--fizo-primary-hover);
	color: #ffffff;
}

.fizo-roi .fizo-roi__btn:focus:not(:hover) {
	background-color: var(--fizo-primary);
}

.fizo-roi .fizo-roi__btn:active {
	transform: scale(0.98);
}

/* Footer */

.fizo-roi .fizo-roi__footer {
	margin-top: 40px;
	text-align: center;
	font-size: 14px;
	line-height: normal;
	color: #94a3b8;
	border-top: 1px solid var(--fizo-border);
	padding-top: 16px;
}

/* Print / PDF: alleen de calculator (kloon in .fizo-roi-print-root) wordt geprint. */

.fizo-roi-print-root {
	display: none;
}

@media print {
	html.fizo-roi-printing {
		margin-top: 0 !important;
	}

	html.fizo-roi-printing body {
		background: white;
		margin: 0;
		padding: 0;
	}

	html.fizo-roi-printing body > *:not(.fizo-roi-print-root) {
		display: none !important;
	}

	html.fizo-roi-printing .fizo-roi-print-root {
		display: block;
	}

	.fizo-roi {
		box-shadow: none;
		border: none;
		padding: 0;
	}

	.fizo-roi .fizo-roi__btn-container,
	.fizo-roi .fizo-roi__range {
		display: none;
	}

	.fizo-roi .fizo-roi__value-display {
		width: auto;
	}

	.fizo-roi .fizo-roi__input-group {
		border-bottom: 1px solid #eee;
		padding-bottom: 5px;
	}

	.fizo-roi .fizo-roi__number {
		border: none;
		padding: 0;
		font-weight: bold;
		text-align: right;
	}
}
