/**
 * Custom valuation calculator styles. Scoped under .ib-valuation so nothing
 * leaks into the rest of the theme. Brand blue #1972b6 (matches the financial
 * charts); Bootstrap 3 grid is available but the layout here is flexbox.
 */

/* full-width soft-gray backdrop behind the calculator box */
.vc-page-bg {
	background: linear-gradient(180deg, #eef2f7 0%, #f4f7fb 100%);
	padding: 56px 0 64px;
}

.ib-valuation {
	--vc-blue: #1972b6;
	--vc-blue-dark: #145a91;
	--vc-ink: #223;
	--vc-muted: #6b7280;
	--vc-border: #dbe2ea;
	--vc-bg-soft: #f5f8fb;
	max-width: 1000px;
	margin: 0 auto;
	color: var(--vc-ink);
	font-family: 'Open Sans', sans-serif;
	text-align: left;
}

.ib-valuation * { box-sizing: border-box; }
/* hidden attribute must win over the display rules below (submit/prev buttons,
   conditional blocks). */
.ib-valuation [hidden] { display: none !important; }

.vc-form {
	background: #fff;
	border: 1px solid var(--vc-border);
	border-radius: 18px;
	padding: 38px 54px 32px;
	box-shadow: 0 18px 50px rgba(20, 60, 100, 0.09);
}

/* progress */
.vc-progress { margin-bottom: 5px; }
.vc-progress__bar {
	height: 6px;
	background: #e9eef4;
	border-radius: 6px;
	overflow: hidden;
}
.vc-progress__bar span {
	display: block;
	height: 100%;
	width: 25%;
	background: var(--vc-blue);
	border-radius: 6px;
	transition: width .35s ease;
}
.vc-progress__label {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--vc-muted);
	text-align: right;
}

/* steps */
.vc-step { animation: vcfade .3s ease; }
.vc-step[hidden] { display: none; }
@keyframes vcfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.vc-step__title {
	font-size: 27px;
	font-weight: 700;
	margin: 0 0 35px;
	padding-bottom: 0;
	color: var(--vc-blue);
	line-height: 1.25;
}
.vc-step__lead {
	font-size: 15px;
	line-height: 1.55;
	color: var(--vc-muted);
	margin: 0 0 24px;
}

/* fields */
.vc-field { margin-bottom: 20px; }
.vc-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 7px;
}
.vc-req { color: #d6336c; }
.vc-opt { color: var(--vc-muted); font-weight: 400; font-size: 13px; }

.vc-input {
	width: 100%;
	padding: 11px 14px;
	font-size: 15px;
	border: 1px solid var(--vc-border);
	border-radius: 10px;
	background: #fff;
	color: var(--vc-ink);
	transition: border-color .15s, box-shadow .15s;
	font-family: inherit;
}
.vc-input:focus {
	outline: none;
	border-color: var(--vc-blue);
	box-shadow: 0 0 0 3px rgba(25, 114, 182, 0.12);
}
.vc-input--error { border-color: #d6336c; background: #fff5f8; }

/* selects - chip-like control */
.vc-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
	font-weight: 500;
	padding: 13px 42px 13px 16px;
	background-color: var(--vc-bg-soft);
	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 1.5L6 6.5L11 1.5' stroke='%231972b6' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
}
.vc-select:hover { border-color: var(--vc-blue); }
.vc-select:focus { background-color: #fff; }
/* narrower select that keeps exactly the same height as .vc-input fields */
.vc-select--sm { padding: 11px 36px 11px 12px; font-size: 15px; background-position: right 12px center; }

.vc-help { font-size: 12.5px; color: var(--vc-muted); margin: 6px 0 0; line-height: 1.45; }

/* money input - amounts entered in thousands of Kč. The value is live-grouped
   while typing, the unit floats right behind the number (JS positions it via
   the hidden mirror span) and a subtle "≈ 12,7 mil. Kč" equivalence sits at
   the right edge. Zero layout shift. */
.vc-money { position: relative; }
.vc-money .vc-input--money { padding-right: 112px; }
.vc-money__mirror {
	position: absolute;
	left: 14px; top: 0;
	visibility: hidden;
	white-space: pre;
	font-size: 15px;
	font-family: inherit;
	pointer-events: none;
}
.vc-money__unit {
	position: absolute;
	right: 14px;
	/* same font as the input + top anchored to the input text line so the
	   baseline lines up with the typed number exactly */
	top: calc(50% - 1px);
	transform: translateY(-50%);
	color: var(--vc-muted);
	font-size: 15px;
	font-weight: 500;
	line-height: normal;
	pointer-events: none;
}
.vc-money__eq {
	position: absolute;
	right: 14px; top: 50%;
	transform: translateY(-50%);
	color: var(--vc-blue);
	font-size: 12.5px;
	font-weight: 600;
	pointer-events: none;
}

/* units-note callout (step 2) */
.vc-callout {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 26px;
	padding: 14px 16px;
	background: #eef5fb;
	border: 1px solid #cfe1f1;
	border-radius: 11px;
	font-size: 15px;
	line-height: 1.55;
	color: #1c4e75;
}
.vc-callout svg { flex: 0 0 auto; margin-top: 2px; color: var(--vc-blue); }
.vc-callout strong { color: var(--vc-blue-dark); }

/* animated reveal for conditional blocks (bank loan, property, owner pay) */
.vc-reveal {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .35s ease;
}
.vc-reveal__inner {
	overflow: hidden;
	min-height: 0;
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity .3s ease .05s, transform .3s ease .05s;
}
.vc-reveal.is-open { grid-template-rows: 1fr; }
.vc-reveal.is-open .vc-reveal__inner { opacity: 1; transform: none; }
.vc-reveal:not(.is-open) .vc-reveal__inner { visibility: hidden; }
.vc-reveal.is-open .vc-reveal__inner { visibility: visible; }

/* two-column layout */
.vc-cols { display: flex; gap: 30px; flex-wrap: wrap; }
.vc-col { flex: 1 1 250px; min-width: 250px; }
.vc-col--grow { flex: 2 1 320px; }
.vc-col--year { flex: 1 1 170px; min-width: 170px; max-width: 240px; margin-left: auto; }
/* period column header: small caption + the year big and unmissable */
.vc-col__title {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--vc-border);
}
.vc-col__title-sub {
	font-size: 13px;
	font-weight: 600;
	color: var(--vc-muted);
}
.vc-col__year {
	font-size: 25px;
	font-weight: 800;
	color: var(--vc-blue);
	line-height: 1.15;
}
.vc-divider { height: 1px; background: var(--vc-border); margin: 8px 0 24px; }

/* selectable cards */
.vc-cards { display: flex; gap: 10px; flex-wrap: wrap; }
.vc-cards--inline .vc-card { flex: 0 0 auto; min-width: 90px; }
/* compact vertical stack */
.vc-cards--stack { flex-direction: column; gap: 8px; }
.vc-cards--stack .vc-card { min-width: 0; text-align: left; padding: 11px 14px; }
/* single-row equal-width cards (revenue size next to the industry select);
   the whole row shares ONE fixed control height (.vc-cols--controls), so the
   cards are never taller than the select - longer labels wrap to two lines
   INSIDE that height */
.vc-cards--row { flex-wrap: nowrap; gap: 8px; }
.vc-cards--row .vc-card {
	flex: 1 1 0;
	min-width: 0;
	padding: 3px 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 12.5px;
	line-height: 1.2;
}
.vc-cols--controls .vc-select,
.vc-cols--controls .vc-cards--row .vc-card { height: 48px; box-sizing: border-box; }
.vc-cols--controls .vc-select { padding-top: 0; padding-bottom: 0; }
.vc-card {
	flex: 1 1 auto;
	min-width: 130px;
	padding: 13px 14px;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	background: var(--vc-bg-soft);
	border: 1.5px solid var(--vc-border);
	border-radius: 11px;
	cursor: pointer;
	color: var(--vc-ink);
	transition: all .15s;
	font-family: inherit;
}
.vc-card:hover { border-color: var(--vc-blue); }
.vc-card.is-selected {
	background: var(--vc-blue);
	border-color: var(--vc-blue);
	color: #fff;
}
.vc-cards--error { outline: 2px solid #f4c2d3; outline-offset: 4px; border-radius: 12px; }

/* discrete slider - dots sit on the rail, aligned with thumb positions;
   each slider lives in its own subtle rounded box. Both boxes share the
   same height (min-height + the help text pinned to the bottom). */
.vc-field--slider {
	display: flex;
	flex-direction: column;
	margin-bottom: 22px;
	padding: 20px 22px 16px;
	background: none;
	border: 1px solid var(--vc-border);
	border-radius: 14px;
	min-height: 200px;
}
.vc-field--slider .vc-label { margin-bottom: 12px; }
.vc-slider__help {
	margin-top: auto;
	padding-top: 12px;
}
/* extra breathing room above the slider section */
.vc-field--slider-gap { margin-top: 40px; }
/* question left, current value big top-right */
.vc-slider-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}
.vc-slider-head .vc-label { margin-bottom: 12px; flex: 1 1 auto; }
.vc-slider-head__value {
	font-size: 19px;
	font-weight: 800;
	color: var(--vc-blue);
	white-space: nowrap;
}
.vc-slider__rail { position: relative; height: 30px; }
.vc-slider__input {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	z-index: 2;
	width: 100%;
	height: 30px;
	margin: 0;
	padding: 0;
	background: transparent;
	outline: none;
	cursor: pointer;
}
.vc-slider__input::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 6px;
	background: linear-gradient(90deg,
		var(--vc-blue) 0%,
		var(--vc-blue) var(--vc-fill, 0%),
		#dfe7ef var(--vc-fill, 0%),
		#dfe7ef 100%);
}
.vc-slider__input::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 26px; height: 26px;
	margin-top: -10px;
	border-radius: 50%;
	background: #fff;
	border: 4px solid var(--vc-blue);
	box-shadow: 0 2px 8px rgba(20, 60, 100, 0.28);
	cursor: pointer;
	transition: transform .1s;
}
.vc-slider__input::-webkit-slider-thumb:active { transform: scale(1.1); }
.vc-slider__input::-moz-range-track {
	height: 6px;
	border-radius: 6px;
	background: #dfe7ef;
}
.vc-slider__input::-moz-range-progress {
	height: 6px;
	border-radius: 6px;
	background: var(--vc-blue);
}
.vc-slider__input::-moz-range-thumb {
	width: 18px; height: 18px;
	border-radius: 50%;
	background: #fff;
	border: 4px solid var(--vc-blue);
	box-shadow: 0 2px 8px rgba(20, 60, 100, 0.28);
	cursor: pointer;
}
/* tick dots: inset by the thumb radius so they line up with thumb centers */
.vc-slider__ticks {
	position: absolute;
	left: 13px; right: 13px;
	top: 0; height: 30px;
	pointer-events: none;
	z-index: 1;
}
.vc-slider__dot {
	position: absolute;
	top: 50%;
	width: 10px; height: 10px;
	border-radius: 50%;
	background: #c9d5e2;
	transform: translate(-50%, -50%);
	transition: background .15s;
}
.vc-slider__dot.is-passed { background: var(--vc-blue-dark); }
.vc-slider__labels {
	position: relative;
	margin: 4px 13px 0;
	height: 18px;
	font-size: 12px;
	color: var(--vc-muted);
}
.vc-slider__labels span { position: absolute; transform: translateX(-50%); }
.vc-slider__value {
	display: inline-block;
	margin: 14px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--vc-blue-dark);
	background: #eef5fb;
	border: 1px solid #cfe1f1;
	border-radius: 9px;
	padding: 9px 14px;
	line-height: 1.4;
}

/* consent */
.vc-field--consent { margin-top: 14px; }
.vc-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; font-weight: 400; }
.vc-consent input { margin-top: 3px; width: 17px; height: 17px; flex: 0 0 auto; }
.vc-consent a { color: var(--vc-blue); text-decoration: underline; }

/* nav */
.vc-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid var(--vc-border);
}
.vc-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 700;
	border-radius: 10px;
	border: 1.5px solid transparent;
	cursor: pointer;
	font-family: inherit;
	transition: all .15s;
}
.vc-btn--primary { background: var(--vc-blue); color: #fff; margin-left: auto; }
.vc-btn--primary:hover { background: var(--vc-blue-dark); }
.vc-btn--primary:disabled { opacity: .6; cursor: default; }
.vc-btn--ghost { background: #fff; border-color: var(--vc-border); color: var(--vc-muted); }
.vc-btn--ghost:hover { border-color: var(--vc-blue); color: var(--vc-blue); }
.vc-chevron { display: inline-block; vertical-align: middle; flex: 0 0 auto; }

/* error */
.vc-error {
	margin: 16px 0 0;
	padding: 11px 14px;
	background: #fff5f8;
	border: 1px solid #f4c2d3;
	border-radius: 9px;
	color: #b02a5b;
	font-size: 14px;
}

/* result report (after submit) */
.vc-report { padding: 14px 2px 4px; }
.vc-report__title {
	font-size: 38px;
	font-weight: 800;
	color: var(--vc-blue);
	margin: 0 0 10px;
	line-height: 1.2;
}
.vc-report__date { font-size: 13.5px; color: var(--vc-muted); margin: 0 0 40px; }
.vc-report__section { margin: 0 0 40px; }
.vc-report__heading {
	font-size: 17px;
	font-weight: 700;
	color: var(--vc-ink);
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--vc-border);
}
.vc-report__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.vc-report__table td {
	padding: 12px 2px;
	border-bottom: 1px solid #edf1f6;
	vertical-align: top;
	line-height: 1.5;
}
.vc-report__table td:first-child { color: var(--vc-muted); width: 46%; padding-right: 20px; }
.vc-report__table td:last-child { font-weight: 600; }
.vc-report__table tr:last-child td { border-bottom: 0; }
.vc-report__method {
	font-size: 15px;
	line-height: 1.75;
	color: #3c4453;
	margin: 0;
}
.vc-report__estimate {
	margin: 48px 0 20px;
	padding: 40px 34px;
	background: #f3f5f8;
	border: 1px solid #e2e7ee;
	border-radius: 16px;
	text-align: left;
}
.vc-report__estimate-label {
	font-size: 19px;
	color: var(--vc-muted);
	margin: 0 0 18px;
	font-weight: 600;
}
.vc-report__estimate-value {
	font-size: 42px;
	font-weight: 800;
	color: var(--vc-blue);
	margin: 0;
	line-height: 1.1;
}
.vc-report__estimate-sub {
	margin: 16px 0 0;
	max-width: 640px;
	font-size: 14px;
	color: var(--vc-muted);
	line-height: 1.55;
}
/* second variant (firm without the property): still a real estimate, a touch
   smaller and lighter so the headline stays dominant */
.vc-report__estimate--alt {
	margin: 0 0 30px;
	padding: 26px 34px;
	background: #f7f9fb;
}
.vc-report__estimate--alt .vc-report__estimate-label { font-size: 15px; margin-bottom: 10px; }
.vc-report__estimate--alt .vc-report__estimate-value { font-size: 26px; }
.vc-report__estimate--alt .vc-report__estimate-sub { font-size: 13px; margin-top: 12px; }

/* assumptions list ("Předpoklady ocenění") - left aligned, full width */
.vc-report__notes {
	margin: 0;
	padding: 0;
	list-style: none;
}
.vc-report__notes li {
	position: relative;
	padding: 0 0 0 26px;
	margin: 0 0 14px;
	font-size: 14.5px;
	line-height: 1.6;
	color: #3c4453;
}
.vc-report__notes li:last-child { margin-bottom: 0; }
.vc-report__notes li::before {
	content: '';
	position: absolute;
	left: 4px; top: 9px;
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--vc-blue);
}
/* subtle CTA rows at the very bottom of the report */
.vc-report__ctas {
	margin-top: 32px;
	border-top: 1px solid var(--vc-border);
	padding-top: 8px;
}
.vc-report__cta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	padding: 14px 0;
}
.vc-report__cta-lead {
	margin: 0;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--vc-ink);
	flex: 1 1 320px;
	line-height: 1.5;
}
.vc-btn--sm {
	padding: 9px 18px;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	margin-left: 0;
	flex: 0 0 auto;
}
a.vc-btn--sm:hover { text-decoration: none; }
.vc-report__disclaimer { font-size: 13px; color: var(--vc-muted); line-height: 1.6; margin: 0 0 10px; }
.vc-report__email { font-size: 14.5px; font-weight: 600; color: var(--vc-ink); margin: 0; }

/* report footer: e-mail confirmation left, print button right */
.vc-report__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 18px;
	flex-wrap: wrap;
	margin: 4px 0 0;
}
.vc-report__foot .vc-report__email { flex: 1 1 260px; }
.vc-report__foot .vc-print-btn { margin-left: auto; flex: 0 0 auto; }

/* print button + printable report */
.vc-print-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 11px 22px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	color: var(--vc-blue);
	background: #fff;
	border: 1.5px solid var(--vc-border);
	border-radius: 10px;
	cursor: pointer;
	transition: all .15s;
}
.vc-print-btn:hover { border-color: var(--vc-blue); background: var(--vc-bg-soft); }

@media print {
	/* print only the calculator report; hide the rest of the page chrome */
	body * { visibility: hidden !important; }
	.ib-valuation, .ib-valuation * { visibility: visible !important; }
	.ib-valuation {
		position: absolute;
		left: 0; top: 0;
		width: 100%;
		max-width: none;
		margin: 0;
		padding: 0;
	}
	/* the page jumbotron must not reserve space above the report */
	.section-jumbo-prodat-koupit-page.section-oceneni { display: none !important; }
	.vc-page-bg { background: #fff !important; padding: 0 !important; }
	.vc-form { box-shadow: none !important; border: 0 !important; padding: 0 !important; }
	.vc-progress, .vc-nav, .vc-report__ctas, .vc-print-btn { display: none !important; }
	.vc-report__estimate, .vc-report__estimate--alt { break-inside: avoid; }
}

/* mobile */
@media (max-width: 600px) {
	.vc-page-bg { padding: 28px 0 36px; }
	.vc-form { padding: 24px 18px 22px; border-radius: 14px; }
	.vc-cards--row { flex-wrap: wrap; }
	.vc-cards--row .vc-card { flex: 1 1 100%; height: auto; justify-content: flex-start; text-align: left; padding: 11px 14px; font-size: 13.5px; }
	.vc-field--slider { min-height: 0; }
	.vc-step__title { font-size: 19px; }
	.vc-cols { gap: 0; }
	.vc-col--year { margin-left: 0; max-width: none; }
	.vc-slider__labels span:nth-child(even) { display: none; }
	.vc-report__title { font-size: 22px; }
	.vc-report__estimate-value { font-size: 30px; }
	.vc-report__table td:first-child { width: 50%; }
	.vc-nav { flex-wrap: wrap; }
	.vc-btn { flex: 1 1 auto; text-align: center; justify-content: center; }
}
