/* ════════════════════════════════════════════════
   Kalkulatori — /kalkulatori/*
   Dizajn sustav: ljubičasta #573cf9, žuta #ffbc27
   ════════════════════════════════════════════════ */

.kalk-main {
    background-color: #573cf9;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.kalk-header {
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
    margin-bottom: 40px;
}
.kalk-header h1 {
    font-size: clamp(1.6rem, 5vw, 3rem);
    color: #ffbc27;
    margin-bottom: 25px;
    line-height: 1.15;
}
.kalk-lead {
    font-size: clamp(0.95rem, 2.5vw, 1.3rem);
    opacity: 0.95;
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.6;
}

.year-tag {
    display: inline-block;
    background: #ffbc27;
    color: #573cf9;
    padding: 5px 16px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.trust-badge-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.trust-badge {
    font-size: 0.78rem;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* ── Kartica kalkulatora ── */
.calc-card {
    background: rgba(0, 0, 0, 0.25);
    border: 3px solid #ffbc27;
    border-radius: 30px;
    padding: 35px;
    margin: 40px 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.calc-card h2 {
    margin-top: 0;
    text-align: center;
    color: #ffbc27;
    font-size: clamp(1.4rem, 4vw, 2rem);
}
@media (max-width: 600px) {
    .calc-card { padding: 24px 18px; border-radius: 22px; }
}

.calc-label {
    font-weight: bold;
    color: #ffbc27;
    display: block;
    margin-top: 20px;
    font-size: 1.05rem;
}
.calc-hint {
    display: block;
    font-weight: 500;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-top: 3px;
}
.calc-input {
    width: 100%;
    padding: 16px 18px;
    border-radius: 12px;
    border: 2px solid transparent;
    margin-top: 10px;
    font-size: 1.1rem;
    background: white;
    color: #333;
    box-sizing: border-box;
    font-family: inherit;
}
.calc-input:focus { border: 2px solid #ffbc27; outline: none; }

/* Dvostupčana mreža inputa */
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
}
@media (max-width: 600px) {
    .calc-grid { grid-template-columns: 1fr; }
}

/* ── Segmentirani izbornik (pill toggle) ── */
.calc-seg {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.calc-seg button {
    flex: 1;
    min-width: 110px;
    padding: 13px 10px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}
.calc-seg button:hover { border-color: rgba(255,188,39,0.6); }
.calc-seg button.active {
    background: #ffbc27;
    border-color: #ffbc27;
    color: #1c1533;
}

/* Checkbox red */
.calc-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    cursor: pointer;
    font-size: 0.98rem;
    color: rgba(255,255,255,0.9);
}
.calc-check input {
    width: 22px;
    height: 22px;
    accent-color: #ffbc27;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-saznaj {
    display: inline-block;
    background-color: #2ecc71;
    color: white !important;
    padding: 18px 45px;
    text-decoration: none !important;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.3rem;
    box-shadow: 0 8px 0 #27ae60;
    transition: all 0.1s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    text-align: center;
    font-family: inherit;
}
.btn-saznaj:active { transform: translateY(4px); box-shadow: 0 4px 0 #27ae60; }

.calc-submit-wrap { text-align: center; margin-top: 35px; }
.calc-submit-wrap .btn-saznaj { width: 100%; }

/* ── Rezultat ── */
.calc-result {
    display: none;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px dashed rgba(255,188,39,0.4);
}
.calc-result.show { display: block; animation: calcFade 0.45s ease; }
@keyframes calcFade {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.calc-breakdown {
    background: rgba(0,0,0,0.25);
    border-radius: 16px;
    padding: 8px 22px;
    margin-bottom: 24px;
}
.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.12);
    font-size: 1rem;
}
.calc-row:last-child { border-bottom: none; }
.calc-row .calc-row-label { color: rgba(255,255,255,0.85); }
.calc-row .calc-row-sub {
    display: block;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
}
.calc-row .calc-row-val {
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}
.calc-row.calc-row-good .calc-row-val { color: #2ecc71; }

.calc-total {
    text-align: center;
    margin: 10px 0 6px;
}
.calc-total-label { font-size: 1.25rem; color: white; }
.calc-total-num {
    display: block;
    font-size: clamp(2.8rem, 9vw, 4.5rem);
    font-weight: 900;
    color: #ffbc27;
    line-height: 1.1;
}
.calc-note {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 15px auto;
    max-width: 560px;
    text-align: center;
    line-height: 1.55;
}
.calc-note a { color: #ffbc27; }

/* ── Zelena ponuda nakon izračuna ── */
.smart-offer {
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 3px solid #2ecc71;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.smart-offer strong { color: #ffbc27 !important; font-weight: 900; }
.smart-offer p { color: rgba(255,255,255,0.9); }
.smart-offer h3 {
    margin: 0;
    font-weight: 900;
    font-size: 1.6rem;
    color: #ffbc27;
    text-transform: uppercase;
}

/* ── Tekstualni sadržaj ── */
.post-content h2, .post-content h3 { color: #ffbc27 !important; margin-top: 35px; font-weight: 700; }
.post-content strong { color: #ffbc27 !important; }
.post-content a { color: #ffbc27; }

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 28px;
    font-size: 0.95rem;
}
.post-content th {
    background: rgba(255,188,39,0.2);
    color: #ffbc27;
    font-weight: 700;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid rgba(255,188,39,0.4);
}
.post-content td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.88);
}
@media (max-width: 600px) {
    .post-content table { font-size: 0.82rem; }
    .post-content th, .post-content td { padding: 8px 10px; }
}

.post-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.post-content ul li {
    background: rgba(0,0,0,0.2);
    border-left: 3px solid #ffbc27;
    border-radius: 0 10px 10px 0;
    padding: 12px 16px;
    font-size: 1.02rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.92);
}

.post-content ol {
    padding-left: 0;
    margin: 0 0 24px;
    counter-reset: kalk-steps;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.post-content ol li {
    counter-increment: kalk-steps;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 14px 18px 14px 58px;
    position: relative;
    font-size: 1.02rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.92);
}
.post-content ol li::before {
    content: counter(kalk-steps);
    position: absolute;
    left: 14px;
    top: 12px;
    width: 30px;
    height: 30px;
    background: #ffbc27;
    color: #1c1533;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
}

/* ── FAQ kartice ── */
.tp-faq { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 28px; }
.tp-faq-item {
    background: rgba(0,0,0,0.22);
    border-radius: 14px;
    padding: 18px 20px;
    border-left: 3px solid rgba(255,188,39,0.5);
}
.tp-faq-q {
    font-size: 1rem;
    font-weight: 700;
    color: #ffbc27;
    margin-bottom: 8px;
}
.tp-faq-a {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.65;
    margin: 0;
}
.tp-faq-a a { color: #ffbc27 !important; }

/* ── Žuti nudge banner ── */
.polica-nudge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #ffbc27;
    border-radius: 16px;
    padding: 16px 22px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.polica-nudge-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}
.polica-nudge-icon { font-size: 1.6rem; flex-shrink: 0; }
.polica-nudge-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1c1533;
    line-height: 1.4;
}
.polica-nudge-text span {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #4b3a00;
    margin-top: 2px;
}
.polica-nudge-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #573cf9;
    color: #fff !important;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 11px 20px;
    border-radius: 10px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.15s, transform 0.15s;
    flex-shrink: 0;
}
.polica-nudge-btn:hover { background: #3b20d4; transform: translateY(-1px); }

/* ── Završni CTA blok ── */
.kalk-final-cta {
    margin-top: 70px;
    padding: 55px 35px;
    background: rgba(0,0,0,0.35);
    border-radius: 40px;
    text-align: center;
    border: 4px solid #ffbc27;
}
.kalk-final-cta h2 {
    color: #ffbc27 !important;
    margin-top: 0;
    font-size: clamp(1.6rem, 5vw, 2.6rem);
}
.kalk-final-cta p {
    margin-bottom: 40px;
    font-size: 1.25rem;
    opacity: 0.9;
}
.kalk-final-cta strong { color: #ffbc27; }

/* ── Cross-link kartice ── */
.kalk-others { margin-top: 50px; }
.kalk-others-label {
    font-weight: bold;
    color: #ffbc27;
    margin-bottom: 16px;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.cross-link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffbc27;
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    text-decoration: none !important;
    transition: transform 0.15s;
}
.cross-link-card:hover { transform: translateY(-2px); }
.cross-link-icon { font-size: 1.8rem; flex-shrink: 0; }
.cross-link-body { flex: 1; min-width: 160px; }
.cross-link-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1c1533;
    margin-bottom: 3px;
}
.cross-link-sub { font-size: 0.8rem; color: #4b3a00; }
.cross-link-btn {
    display: inline-block;
    background: #573cf9;
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 9px;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Hub kartice (/kalkulatori/) ── */
.kalk-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin: 40px 0;
}
.kalk-hub-card {
    background: rgba(0,0,0,0.25);
    border: 2px solid rgba(255,188,39,0.45);
    border-radius: 22px;
    padding: 28px 24px;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.15s, border-color 0.15s;
}
.kalk-hub-card:hover { transform: translateY(-4px); border-color: #ffbc27; }
.kalk-hub-icon { font-size: 2.4rem; }
.kalk-hub-title { font-size: 1.2rem; font-weight: 800; color: #ffbc27; }
.kalk-hub-sub { font-size: 0.92rem; color: rgba(255,255,255,0.8); line-height: 1.55; flex: 1; }
.kalk-hub-go { font-size: 0.9rem; font-weight: 800; color: #2ecc71; }

/* ── Sticky bottom bar (mobile) ── */
.sticky-ao-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #ffbc27;
    z-index: 999;
    padding: 12px 20px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.18);
}
.sticky-ao-bar-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1c1533;
    line-height: 1.3;
}
.sticky-ao-bar-text small {
    display: block;
    font-weight: 500;
    font-size: 0.75rem;
    color: #4b3a00;
}
.sticky-ao-bar-btn {
    display: inline-block;
    background: #573cf9;
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 9px 16px;
    border-radius: 9px;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .sticky-ao-bar { display: flex; }
    body { padding-bottom: 64px; }
    #wapp { bottom: 90px !important; }
}
