/**
 * FFL Wellness Payback Calculator
 * Todos os seletores têm o prefixo .ffl-calculator para não afetar o restante do site.
 */

.ffl-calculator {
	background: #fff;
	padding: 40px;
	border-radius: 20px;
	max-width: 1180px;
	margin: 40px auto;
	font-family: "Work Sans", sans-serif;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	color: #111827;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}

.ffl-calculator *,
.ffl-calculator *::before,
.ffl-calculator *::after {
	box-sizing: border-box;
}

/* TÍTULO */
.ffl-calculator .ffl-calc-title {
	color: #1f3755 !important;
	display: block;
	font-family: "Work Sans", sans-serif !important;
	font-weight: 700 !important;
	line-height: 1.1 !important;
	margin: 0 0 10px 0 !important;
	padding: 0 !important;
	text-align: start;
	background: transparent !important;
	font-size: 41px;
}

.ffl-calculator .ffl-calc-subtitle {
	text-align: start;
	font-size: 17px;
	color: #374151 !important;
	margin: 0 0 40px 0;
	font-weight: 500;
	background: transparent !important;
}

/* CAMPOS */
.ffl-calculator .ffl-calc-field {
	margin-bottom: 35px;
}

.ffl-calculator .ffl-calc-field label {
	font-weight: 700;
	font-size: 20px;
	display: block;
	margin-bottom: 8px;
	color: #1f3755 !important;
	background: transparent !important;
}

.ffl-calculator .ffl-calc-description {
	font-size: 16px;
	color: #374151 !important;
	margin: 0 0 12px 0;
	background: transparent !important;
}

/* SLIDERS */
.ffl-calculator input[type="range"] {
	width: 100%;
	height: 8px;
	margin: 0;
	padding: 0;
	background: #d1d5db;
	border: 0;
	border-radius: 10px;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	outline: none;
}

.ffl-calculator input[type="range"]:focus-visible {
	box-shadow: 0 0 0 3px rgba(103, 150, 96, 0.35);
}

.ffl-calculator input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #679660;
	border: 3px solid #fff;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
	cursor: pointer;
}

.ffl-calculator input[type="range"]::-moz-range-thumb {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #679660;
	border: 3px solid #fff;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
	cursor: pointer;
}

.ffl-calculator input[type="range"]::-moz-range-track {
	background: #d1d5db;
	height: 8px;
	border-radius: 10px;
}

.ffl-calculator .ffl-calc-range-labels {
	display: flex;
	justify-content: space-between;
	font-size: 15px;
	margin-top: 10px;
	color: #1f3755 !important;
	font-weight: 600;
	background: transparent !important;
}

/* GRID DE RESULTADOS */
.ffl-calculator .ffl-calc-results {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-top: 40px;
}

.ffl-calculator .ffl-calc-box {
	background: #f3f4f6 !important;
	padding: 25px 10px;
	border-radius: 12px;
	text-align: center;
	border: 1px solid #d1d5db;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: border-color 0.2s ease, opacity 0.2s ease;
}

.ffl-calculator .ffl-calc-label {
	font-size: 19px;
	font-weight: 700 !important;
	color: #111827 !important;
	white-space: nowrap;
	margin-bottom: 15px;
	min-height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent !important;
}

.ffl-calculator .ffl-calc-value {
	font-size: 30px;
	font-weight: 800 !important;
	color: #1f3755 !important;
	margin-bottom: 5px;
	background: transparent !important;
}

.ffl-calculator .ffl-calc-sub,
.ffl-calculator .ffl-calc-sub span {
	font-size: 14px;
	color: #374151 !important;
	font-weight: 500;
	background: transparent !important;
}

/* DESTAQUE DA ECONOMIA */
.ffl-calculator .ffl-calc-savings {
	border: 3px solid #679660 !important;
	background: #ffffff !important;
	box-shadow: 0 8px 24px rgba(103, 150, 96, 0.15);
}

.ffl-calculator .ffl-calc-savings .ffl-calc-label,
.ffl-calculator .ffl-calc-savings .ffl-calc-value {
	color: #679660 !important;
	background: transparent !important;
}

/* Sem economia (economia = 0): visual neutro, controlado por classe em vez de style inline */
.ffl-calculator .ffl-calc-savings.is-zero {
	opacity: 0.8;
	border-color: #d1d5db !important;
	box-shadow: none;
}

.ffl-calculator .ffl-calc-savings.is-zero .ffl-calc-label,
.ffl-calculator .ffl-calc-savings.is-zero .ffl-calc-value {
	color: #374151 !important;
}

.ffl-calculator .ffl-calc-note {
	text-align: center;
	margin: 40px 0 0 0;
	font-size: 17px;
	color: #1f3755 !important;
	font-style: italic;
	font-weight: 500;
	background: transparent !important;
}

/* RESPONSIVO */
@media (max-width: 1100px) {
	.ffl-calculator .ffl-calc-label {
		white-space: normal;
		font-size: 18px;
	}
}

@media (max-width: 992px) {
	.ffl-calculator .ffl-calc-results {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.ffl-calculator {
		padding: 24px 18px;
		margin: 24px auto;
	}

	.ffl-calculator .ffl-calc-title {
		font-size: 23px !important;
		text-align: center;
	}

	.ffl-calculator .ffl-calc-subtitle {
		text-align: center;
	}

	.ffl-calculator .ffl-calc-results {
		grid-template-columns: 1fr;
	}

	.ffl-calculator .ffl-calc-range-labels {
		font-size: 13px;
	}
}
