/* BnD Kalkulator cene BZR usluga – isti dizajn sistem kao BnD Partneri */
.bnd-kalk {
	--bnd-navy: #0F3B61;
	--bnd-navy-dark: #0A2C4A;
	--bnd-red: #C8232B;
	--bnd-text: #1F2A37;
	--bnd-muted: #4A5868;
	--bnd-soft: #6B7787;
	--bnd-line: #DCE2EA;
	--bnd-bg: #F4F7FA;
	max-width: 1180px;
	margin: 0 auto;
	padding: 24px 16px 48px;
	color: var(--bnd-text);
	font-family: inherit;
	box-sizing: border-box;
}
.bnd-kalk *, .bnd-kalk *::before, .bnd-kalk *::after { box-sizing: border-box; }

/* Zaglavlje */
.bnd-kalk .bnd-kalk-head { max-width: 760px; margin: 0 0 32px; }
.bnd-kalk .bnd-tag { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.4; padding: 6px 12px; border-radius: 999px; color: var(--bnd-navy); background: #E7EEF6; }
.bnd-kalk .bnd-kalk-head h2 { margin: 14px 0 12px; font-size: 36px; line-height: 1.2; font-weight: 700; color: var(--bnd-navy); }
.bnd-kalk .bnd-kalk-head p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--bnd-muted); }

/* Raspored */
.bnd-kalk .bnd-kalk-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px; }
.bnd-kalk .bnd-kalk-form { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; margin: 0; }
.bnd-kalk .bnd-kalk-result { flex: 1 1 340px; min-width: 0; position: sticky; top: 24px; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--bnd-line); box-shadow: 0 8px 24px rgba(15,59,97,.08); }

/* Koraci */
.bnd-kalk .bnd-step { background: #fff; border: 1px solid var(--bnd-line); border-radius: 16px; padding: 28px 32px; box-shadow: 0 8px 24px rgba(15,59,97,.06); display: flex; flex-direction: column; gap: 20px; }
.bnd-kalk .bnd-step-head { display: flex; gap: 16px; align-items: flex-start; }
.bnd-kalk .bnd-step-num { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: var(--bnd-navy); color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.bnd-kalk .bnd-step h3 { margin: 4px 0 4px; font-size: 21px; line-height: 1.3; font-weight: 700; color: var(--bnd-navy); }
.bnd-kalk .bnd-step-head p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--bnd-soft); }
.bnd-kalk .bnd-opt { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--bnd-soft); margin-left: 6px; }

/* Polja */
.bnd-kalk .bnd-field { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.bnd-kalk .bnd-label { font-size: 14px; font-weight: 600; color: var(--bnd-text); }
.bnd-kalk .bnd-label em { font-style: normal; font-weight: 400; color: var(--bnd-soft); }
.bnd-kalk input[type="number"] { width: 100%; height: 48px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--bnd-text); background: var(--bnd-bg); border: 1px solid var(--bnd-line); border-radius: 10px; box-shadow: none; transition: border-color .15s, background .15s; }
.bnd-kalk input[type="number"]:focus { outline: none; background: #fff; border-color: var(--bnd-navy); box-shadow: 0 0 0 3px rgba(15,59,97,.12); }
.bnd-kalk .bnd-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; align-items: end; }

/* Izbor (radio kartice) */
.bnd-kalk .bnd-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bnd-kalk .bnd-choice label, .bnd-kalk .bnd-service { position: relative; display: block; cursor: pointer; margin: 0; }
.bnd-kalk .bnd-choice input, .bnd-kalk .bnd-service input { position: absolute; opacity: 0; pointer-events: none; }
.bnd-kalk .bnd-choice span, .bnd-kalk .bnd-service span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; border: 1px solid var(--bnd-line); border-radius: 12px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.bnd-kalk .bnd-choice strong, .bnd-kalk .bnd-service strong { font-size: 15px; font-weight: 600; color: var(--bnd-navy); }
.bnd-kalk .bnd-choice small, .bnd-kalk .bnd-service small { font-size: 13px; line-height: 1.45; color: var(--bnd-soft); }
.bnd-kalk .bnd-choice label:hover span, .bnd-kalk .bnd-service:hover span { border-color: #B9C6D6; }
.bnd-kalk .bnd-choice input:checked + span { border-color: var(--bnd-navy); background: #E7EEF6; box-shadow: inset 0 0 0 1px var(--bnd-navy); }
.bnd-kalk .bnd-choice input:focus-visible + span, .bnd-kalk .bnd-service input:focus-visible + span, .bnd-kalk .bnd-check input:focus-visible { outline: 3px solid rgba(15,59,97,.35); outline-offset: 2px; }
.bnd-kalk .bnd-choice--compact span { align-items: center; text-align: center; padding: 12px; }

/* Trakice za nivo rizika */
.bnd-kalk .bnd-risk span { position: relative; overflow: hidden; padding-left: 24px; }
.bnd-kalk .bnd-risk span::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--bnd-risk); }
.bnd-kalk .bnd-risk--nizak { --bnd-risk: #2E9E5B; }
.bnd-kalk .bnd-risk--srednji { --bnd-risk: #F08C1A; }
.bnd-kalk .bnd-risk--visok { --bnd-risk: var(--bnd-red); }

/* Usluge */
.bnd-kalk .bnd-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bnd-kalk .bnd-service span { padding: 16px 16px 16px 52px; }
.bnd-kalk .bnd-service span::before { content: ""; position: absolute; left: 16px; top: 17px; width: 22px; height: 22px; border-radius: 6px; border: 2px solid #B9C6D6; background: #fff; transition: all .15s; }
.bnd-kalk .bnd-service input:checked + span { border-color: var(--bnd-navy); background: #E7EEF6; box-shadow: inset 0 0 0 1px var(--bnd-navy); }
.bnd-kalk .bnd-service input:checked + span::before { border-color: var(--bnd-navy); background: var(--bnd-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Checkbox redovi */
.bnd-kalk .bnd-checks { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.bnd-kalk .bnd-check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--bnd-text); cursor: pointer; margin: 0; }
.bnd-kalk .bnd-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--bnd-navy); }

/* Rezultat */
.bnd-kalk .bnd-result-top { background: var(--bnd-navy); color: #fff; padding: 28px 28px 24px; position: relative; }
.bnd-kalk .bnd-result-top::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--bnd-red); }
.bnd-kalk .bnd-result-label { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #BFD0E2; }
.bnd-kalk .bnd-result-big { margin: 0; font-size: 38px; line-height: 1.15; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.bnd-kalk .bnd-result-sub { margin: 10px 0 0; font-size: 14px; color: #D5E1EE; }
.bnd-kalk .bnd-result-sub strong { color: #fff; font-weight: 600; }
.bnd-kalk .bnd-result-body { padding: 20px 28px 26px; display: flex; flex-direction: column; gap: 0; }
.bnd-kalk .bnd-result-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EDF1F5; font-size: 15px; color: var(--bnd-muted); }
.bnd-kalk .bnd-result-row strong { color: var(--bnd-text); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bnd-kalk .bnd-result-row--total { border-bottom: 0; padding-top: 14px; }
.bnd-kalk .bnd-result-row--total span { font-weight: 600; color: var(--bnd-navy); }
.bnd-kalk .bnd-result-row--total strong { font-size: 18px; color: var(--bnd-navy); }

/* Upozorenja */
.bnd-kalk .bnd-alert { margin: 14px 0 4px; padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.55; }
.bnd-kalk .bnd-alert[hidden] { display: none; }
.bnd-kalk .bnd-alert strong { display: block; margin-bottom: 2px; }
.bnd-kalk .bnd-alert--red { background: #FFF6F6; border: 1px solid #F3D4D6; color: #8A1A20; }
.bnd-kalk .bnd-alert--amber { background: #FFF8EC; border: 1px solid #F2DDB4; color: #7A4B00; }
.bnd-kalk .bnd-alert--green { background: #EEF8F2; border: 1px solid #CBE7D6; color: #1D5E3A; }

/* Obračun */
.bnd-kalk .bnd-breakdown { margin-top: 14px; background: var(--bnd-bg); border-radius: 12px; padding: 0 16px; }
.bnd-kalk .bnd-breakdown summary { cursor: pointer; padding: 14px 0; font-size: 14px; font-weight: 600; color: var(--bnd-navy); list-style: none; }
.bnd-kalk .bnd-breakdown summary::-webkit-details-marker { display: none; }
.bnd-kalk .bnd-breakdown summary::after { content: "+"; float: right; font-size: 18px; line-height: 1; }
.bnd-kalk .bnd-breakdown[open] summary::after { content: "–"; }
.bnd-kalk .bnd-breakdown table { width: 100%; border-collapse: collapse; margin: 0 0 10px; font-size: 13px; border: 0; }
.bnd-kalk .bnd-breakdown th, .bnd-kalk .bnd-breakdown td { padding: 8px 0; text-align: left; border: 0; border-bottom: 1px solid var(--bnd-line); background: transparent; }
.bnd-kalk .bnd-breakdown th { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--bnd-soft); }
.bnd-kalk .bnd-breakdown th:not(:first-child), .bnd-kalk .bnd-breakdown td:not(:first-child) { text-align: right; padding-left: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bnd-kalk .bnd-breakdown-note { margin: 0 0 14px; font-size: 12px; line-height: 1.55; color: var(--bnd-soft); }
.bnd-kalk .bnd-disclaimer { margin: 16px 0 0; font-size: 12px; line-height: 1.55; color: var(--bnd-soft); }

/* Mobilna traka sa cenom */
.bnd-kalk .bnd-kalk-mini { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 999; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border: 0; border-radius: 14px; background: var(--bnd-navy); color: #fff; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 10px 30px rgba(15,59,97,.35); border-bottom: 4px solid var(--bnd-red); }
.bnd-kalk .bnd-kalk-mini[hidden] { display: none; }
.bnd-kalk .bnd-kalk-mini span { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: #BFD0E2; }
.bnd-kalk .bnd-kalk-mini strong { font-size: 19px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Mobilni */
@media (max-width: 900px) {
	.bnd-kalk .bnd-kalk-result { position: static; }
}
@media (max-width: 640px) {
	.bnd-kalk { padding: 16px 16px 40px; }
	.bnd-kalk .bnd-kalk-head h2 { font-size: 28px; }
	.bnd-kalk .bnd-kalk-head p { font-size: 16px; }
	.bnd-kalk .bnd-step { padding: 22px 18px; }
	.bnd-kalk .bnd-choice, .bnd-kalk .bnd-services { grid-template-columns: 1fr; }
	.bnd-kalk .bnd-choice--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.bnd-kalk .bnd-choice--compact span { padding: 12px 6px; }
	.bnd-kalk .bnd-choice--compact strong { font-size: 14px; white-space: nowrap; }
	.bnd-kalk .bnd-grid-2 { gap: 14px; }
	.bnd-kalk .bnd-result-top { padding: 24px 20px 20px; }
	.bnd-kalk .bnd-result-big { font-size: 32px; }
	.bnd-kalk .bnd-result-body { padding: 16px 20px 22px; }
}
