/**
 * FVE Kalkulačka - Styly
 * Design dle screenfve.png
 */

.fve-calculator-wrapper {
	--fve-yellow: #004db4;
	--fve-black: #0b0b0b;
	--fve-white: #ffffff;
	--fve-grey: #e9e9e9;
	--fve-mid: #b9b9b9;
	--fve-green: #19d600;
	--fve-red: #e11931;
	--fve-shadow: 2px 6px 9px #00000029;
	--fve-radius: 0;
	box-sizing: border-box;
	margin: 0;
	background: #dee4e8;
	color: var(--fve-black);
	font-family: "Roboto Condensed", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.35;
}

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

.fve-container {
	max-width: 1250px;
	margin: 26px auto;
	padding: 0 16px;
}

.fve-grid {
	display: grid;
	gap: 18px;
}

@media (min-width: 980px) {
	.fve-grid {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

.fve-card {
	background: var(--fve-white);
	border: none;
	border-radius: var(--fve-radius);
	box-shadow: var(--fve-shadow);
	margin-bottom: 20px;
}

.fve-body {
	padding: 0px 18px 18px 16px;
}

.fve-cardHead {
	display: inline-block;
	background: var(--fve-black);
	color: var(--fve-white);
	padding: 5px 16px;
	font-weight: 500;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	font-size: 1.4rem;
	transform: translateY(-20px);
	margin-left: 16px;
}

.fve-calculator-wrapper label {
	font-size: 0.82rem;
	color: #111;
	display: block;
	margin: 10px 0 6px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.fve-calculator-wrapper input[type="text"],
.fve-calculator-wrapper input[type="email"],
.fve-calculator-wrapper input[type="tel"],
.fve-calculator-wrapper input[type="number"],
.fve-calculator-wrapper select {
	width: 100%;
	padding: 10px 12px;
	border-radius: 0;
	border: none;
	background: var(--fve-white);
	color: var(--fve-black);
	font-weight: 700;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fve-calculator-wrapper input[type="range"] {
	padding: 0;
	height: 36px;
	background: transparent;
	border: none;
	width: 100%;
}

.fve-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 6px 0;
	flex-wrap: wrap;
	gap: 8px;
}

.fve-muted {
	color: #222;
	opacity: 0.75;
}

.fve-bold {
	font-weight: 600;
}

.fve-mini {
	font-size: 0.82rem;
}

.fve-badge {
	background: #f8f8f8;
	border: none;
	padding: 4px 10px;
	border-radius: 0;
	font-size: 0.82rem;
	font-weight: 900;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	margin-left: 10px;
}

.fve-sep {
	height: 2px;
	background: var(--fve-black);
	margin: 12px 0;
}

.fve-switch {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 10px 0;
}

.fve-switch label {
	margin: 0;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 600;
}

.fve-note {
	font-size: 0.82rem;
	color: #222;
	opacity: 0.85;
}

.fve-sectionTitle {
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin: 6px 0 10px;
}

.fve-variant {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-top: 6px;
	align-items: start;
}

@media (max-width: 820px) {
	.fve-variant {
		grid-template-columns: 1fr;
	}
}

.fve-chip {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 10px;
	padding: 14px 10px;
	border: 1px solid #b7c1c9;
	background: var(--fve-white);
	cursor: pointer;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	user-select: none;
	transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

/* Typ zákazníka – žlutý border, bílé pozadí, hover #e11931 */
#clientTypeButtons .fve-chip {
	border-color: #b7c1c9;
	background: var(--fve-white);
}

#clientTypeButtons .fve-chip:hover {
	border-color: #e11931;
}

#clientTypeButtons .fve-chip[data-active="true"] {
	border-color: #e11931;
	background-color: #e11931;
	color: white;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fve-chip:hover {
	border-color: var(--fve-black);
}

.fve-chip[data-active="true"] {
	border-color: #e11931;
	background-color: #e11931;
	color: white;
}

/* Přepsání pro Typ zákazníka – hover má přednost před obecným active */
#clientTypeButtons .fve-chip[data-active="true"]:hover {
	border-color: #e11931;
	background-color: #e11931;
	color: white;
}

.fve-profile-chip {
	text-align: center;
}

/* Profilové chipy – bílé pozadí, bez borderu */
.fve-profile-chips .fve-profile-chip {
	background: var(--fve-white);
	border: none;
	box-shadow: none;
}

.fve-profile-chips .fve-profile-chip:hover {
	border: none;
	background: var(--fve-white);
}

.fve-profile-chips .fve-profile-chip[data-active="true"] {
	border: none;
	background: var(--fve-white);
	box-shadow: none;
}

.fve-profile-chips .fve-profile-chip[data-active="true"]:hover {
	border: none;
	background: var(--fve-white);
}

.fve-profile-icon {
	display: inline-block;
	width: 50px;
	height: 50px;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.fve-profile-icon-light {
	background-image: url(../img/light_pasive.svg);
}

.fve-profile-chip:hover .fve-profile-icon-light {
	background-image: url(../img/light_active.svg);
}

.fve-profile-chip[data-active="true"] .fve-profile-icon-light {
	background-image: url(../img/light_active.svg);
}

.fve-light[data-active="true"] span,
.fve-light:hover span {
	color: #efc805;
}

.fve-fire[data-active="true"] span,
.fve-fire:hover span {
	color: #e99e1d;
}

.fve-shower[data-active="true"] span,
.fve-shower:hover span {
	color: #ff3b3b;
}

.fve-profile-icon-fire {
	background-image: url(../img/tc_pasive.svg);
}

.fve-profile-chip:hover .fve-profile-icon-fire {
	background-image: url(../img/tc_active.svg);
}

.fve-profile-chip[data-active="true"] .fve-profile-icon-fire {
	background-image: url(../img/tc_active.svg);
}

.fve-profile-icon-shower {
	background-image: url(../img/w_pasive.svg);
}

.fve-profile-chip:hover .fve-profile-icon-shower {
	background-image: url(../img/w_active.svg);
}

.fve-profile-chip[data-active="true"] .fve-profile-icon-shower {
	background-image: url(../img/w_active.svg);
}


/* Slider styling - červená aktivní část (#e11931), černý jezdec */
.fve-calculator-wrapper input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	--range-percent: 50%;
}

.fve-calculator-wrapper input[type="range"]::-webkit-slider-runnable-track {
	height: 6px;
	background: linear-gradient(to right, #e11931 0%, #e11931 var(--range-percent, 50%), #cfcfcf var(--range-percent, 50%));
	border-radius: 0;
}

.fve-calculator-wrapper input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 8px;
	height: 30px;
	background: var(--fve-black);
	margin-top: -12px;
	cursor: pointer;
}

.fve-calculator-wrapper input[type="range"]::-moz-range-track {
	height: 6px;
	background: linear-gradient(to right, #e11931 0%, #e11931 var(--range-percent, 50%), #cfcfcf var(--range-percent, 50%));
	border-radius: 0;
}

.fve-calculator-wrapper input[type="range"]::-moz-range-thumb {
	width: 12px;
	height: 26px;
	background: var(--fve-black);
	border: none;
	cursor: pointer;
}

.fve-currentBar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border: none;
	background: #004db4;
	color: white;
	padding: 10px 12px;
	margin-top: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.font_black {
	color: black !important;
}

.fve-switch-ttl {
	background: var(--fve-yellow);
	padding: 15px 0px 15px 20px;
	margin-left: -16px;
	margin-bottom: 20px;
	color: white;
}

.fve-switch-ttl h2 {
	margin: 0;
	text-transform: uppercase;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.fve-switch-range {
	border: solid 2px gray !important;
	padding: 5px !important;
	width: 70px !important;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	opacity: 1 !important;
	margin: 0;
}

.fve-proposal {
	border: none;
	padding: 14px 14px 5px;
	position: relative;

}

.fve_colorwhite {
	color: white !important;
}

.fve-proposal .fve-ttl {
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin-bottom: 10px;
	background: var(--fve-yellow);
	color: white;
	padding: 20px 20px;
	margin-left: -14px;
}

.fve-valueBox {
	position: absolute;
	right: 12px;
	top: 2px;
	background: var(--fve-black);
	color: var(--fve-white);
	width: 120px;
	height: 90px;
	display: flex;
	flex-direction: column;

	justify-content: flex-end;
	font-weight: 900;
}

#variantBlock {
	padding: 14px;
}

.fve-valueBox .fve-num {
	font-size: 2.2rem;
	line-height: 1;
	text-align: center;
	padding-bottom: 4px;
}

.fve-valueBox .fve-unit {
	font-size: 1rem;
	font-weight: 100;
	opacity: 1;
	text-align: left;
	padding-left: 8px;
	padding-bottom: 5px;
}

.fve-kpi {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
	margin-bottom: 20px;
}

/* prvé dva boxy cez celý riadok */
.fve-kpi .fve-box:nth-child(-n+2) {
	grid-column: 1 / -1;
}

.fve-kpi .fve-box {
	display: grid;
	border: none;
	min-height: 50px;
	padding: 10px 5px 0 10px;
	background: var(--fve-grey);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	align-content: space-between;
}

.fve-kpi .fve-ttl {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.fve-kpi .fve-val {
	font-size: 1.50rem;
	font-weight: 600;
	text-align: right;
}

.fve-kpi .fve-box:nth-child(2),
.fve-kpi .fve-box:nth-child(4) {
	background: var(--fve-green);
	color: var(--fve-white);
}

.fve-kpi .fve-box:nth-child(5) {
	background: var(--fve-black);
	color: var(--fve-white);
}

.fve-kpi .fve-box:nth-child(6) {
	background: var(--fve-yellow);
	color: var(--fve-black);
}

.fve-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--fve-red);
	color: var(--fve-white);
	border: none;
	padding: 14px 16px;
	font-weight: 900;
	cursor: pointer;
	width: 100%;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 1rem;
	transition: filter 0.2s;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.fve-btn:hover {
	filter: brightness(1.04);
}

.fve-hidden {
	display: none !important;
}

.fve-chartCard {
	margin-top: 40px;
	background: var(--fve-white);
	border: none;
	box-shadow: var(--fve-shadow);
}

.fve-chartCard .fve-body {
	padding: 0 18px 18px 18px;
}

.fve-chartCard h2 {
	margin: 0 0 14px;
	font-size: clamp(1.1rem, 2vw, 1.5rem);
}

#chart {
	width: 100%;
	height: 460px;
	background: var(--fve-white);
	min-height: 300px;
}

@media (max-width: 600px) {
	#chart {
		height: 300px;
	}

	.fve-proposal .fve-ttl {
		font-size: 14px;
	}

	.fve-cardHead {
		font-size: 20px;
	}
}

.fve-legend {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.fve-lg {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
}

.fve-dot {
	width: 14px;
	height: 14px;
	border-radius: 0;
	display: inline-block;
	border: none;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.fve-c-prod {
	background: #ff566b;
}

.fve-c-cons {
	background: #9aa2ad;
}

.fve-c-self {
	background: #27c187;
}

/* Tooltips */
.fve-elv-i {
	text-transform: lowercase;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin-left: 0.35rem;
	background: var(--fve-yellow);
	border: none;
	color: var(--fve-white);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
	font-size: 12px;
	font-weight: 900;
	border-radius: 50%;
	cursor: help;
	vertical-align: middle;
}

.fve-elv-i::selection {
	background: transparent;
}

.fve-elv-i[data-tip] {
	position: relative;
}

.fve-elv-i:hover::after,
.fve-elv-i:focus::after {
	text-transform: uppercase;
	content: attr(data-tip);
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 135%;
	min-width: 220px;
	max-width: 360px;
	background: #707070;
	color: #fff;
	padding: 0.55rem 0.65rem;
	border-radius: 0;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
	z-index: 9999;
	font: 400 11px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	pointer-events: none;
}

.fve-elv-i:hover::before,
.fve-elv-i:focus::before {
	content: "";
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 125%;
	border: 7px solid transparent;
	border-top-color: #111;
}

/* Pokročilé nastavení */
.fve-adv summary {
	cursor: pointer;
	font-weight: 600;
	padding: 12px 0;
	user-select: none;
}

.fve-advBody {
	padding-top: 8px;
}

/* Popup */
.fve-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 20px;
}

.fve-popup-overlay.is-open {
	display: flex;
}

.fve-popup {
	background: var(--fve-white);
	border: none;
	box-shadow: var(--fve-shadow);
	max-width: 480px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 24px;
	position: relative;
}

.fve-popup-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	line-height: 1;
	color: var(--fve-black);
	padding: 0;
	width: 36px;
	height: 36px;
}

.fve-popup-close:hover {
	color: var(--fve-red);
}

.fve-popup h3 {
	margin: 0 0 20px;
	font-size: 1.25rem;
}

.fve-request-form .fve-form-row {
	margin-bottom: 16px;
}

.fve-request-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 500;
}

.fve-request-form input {
	width: 100%;
}

.fve-required {
	color: var(--fve-red);
}

.fve-gdpr-row .fve-gdpr-label {
	font-weight: 500;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	text-transform: none;
	letter-spacing: 0;
}

.fve-gdpr-row .fve-gdpr-label input[type="checkbox"] {
	width: auto;
	flex-shrink: 0;
	margin-top: 2px;
}

.fve-gdpr-row .fve-gdpr-label a {
	color: var(--fve-black);
	text-decoration: underline;
}

.fve-gdpr-row .fve-gdpr-label a:hover {
	color: var(--fve-red);
}

.fve-form-actions {
	margin-top: 20px;
}

.fve-popup-success,
.fve-popup-error {
	padding: 16px;
	margin-top: 16px;
}

.fve-popup-success {
	background: var(--fve-green);
	color: var(--fve-white);
}

.fve-popup-error {
	background: var(--fve-red);
	color: var(--fve-white);
}