/* ═══════════════════════════════════════════════════
   LEASING PAGE — LIGHT THEME (usklađena sa dizajnom sajta)
   Varijable sajta: --primary: #6A142C, font: Inter
   ═══════════════════════════════════════════════════ */

/* ── CSS VARIJABLE ZA KALKULATOR (light override) ── */
.lk-scope {
    --acc: #6A142C;
    --acc2: #8B1A37;
    --acc-light: rgba(106,20,44,0.08);
    --acc-mid: rgba(106,20,44,0.18);
    --green: #16A34A;
    --green-light: rgba(22,163,74,0.12);
    --blue: #1D4ED8;
    --blue-light: rgba(29,78,216,0.1);
    --org: #D97706;
    --cyan: #0369A1;
    --bg: #F5F6FA;
    --bg2: #FFFFFF;
    --bg3: #F0F1F6;
    --glass: rgba(255,255,255,0.9);
    --glassb: rgba(106,20,44,0.05);
    --txt: #101828;
    --muted: #6B7280;
    --bdr: #E5E7EB;
    --bdr-acc: rgba(106,20,44,0.2);
    --r: 14px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
}

/* ── TOP BLACK BANNER (kao top reklama) ── */
.leasing-top-banner {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #111827;
    border-bottom: 1px solid #222;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.leasing-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.leasing-banner-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    cursor: pointer;
    user-select: none;
}

.leasing-banner-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    opacity: 0.85;
}

.leasing-banner-text {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255,255,255,0.75);
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}

.leasing-banner-text strong {
    color: #fff;
    font-weight: 600;
}

.leasing-banner-cta {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    background: #6A142C;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.15s;
    font-family: 'Inter', sans-serif;
}

.leasing-banner-cta:hover {
    background: #8B1A37;
}

.leasing-banner-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
    font-size: 0.65rem;
    opacity: 0.7;
}

.leasing-top-banner.open .leasing-banner-arrow {
    transform: rotate(180deg);
}

/* ── DROPDOWN CONTACT FORM ── */
.leasing-banner-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    opacity: 0;
    background: #0F172A;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.leasing-top-banner.open .leasing-banner-dropdown {
    max-height: 400px;
    opacity: 1;
}

.leasing-dropdown-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px 22px;
}

.leasing-dropdown-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    font-family: 'Inter', sans-serif;
}

.leasing-dropdown-sub {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 14px;
    font-family: 'Inter', sans-serif;
}

.leasing-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

@media (max-width: 640px) {
    .leasing-dropdown-grid { grid-template-columns: 1fr; }
}

.leasing-dropdown-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.leasing-dropdown-field label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: 'Inter', sans-serif;
}

.leasing-dropdown-field input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 8px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.84rem;
    color: #fff;
    outline: none;
    transition: border-color 0.15s;
}

.leasing-dropdown-field input:focus {
    border-color: rgba(106,20,44,0.7);
}

.leasing-dropdown-field input::placeholder {
    color: rgba(255,255,255,0.2);
}

.leasing-dropdown-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2px;
}

.leasing-dropdown-submit {
    padding: 9px 20px;
    background: #6A142C;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.12s;
}

.leasing-dropdown-submit:hover:not(:disabled) {
    background: #8B1A37;
    transform: translateY(-1px);
}

.leasing-dropdown-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.leasing-dropdown-alert {
    font-size: 0.79rem;
    padding: 5px 10px;
    border-radius: 5px;
    display: none;
    font-family: 'Inter', sans-serif;
}
.leasing-dropdown-alert.show { display: block; }
.leasing-dropdown-alert.success { background: rgba(22,163,74,.15); border: 1px solid rgba(22,163,74,.3); color: #4ade80; }
.leasing-dropdown-alert.error { background: rgba(220,38,38,.15); border: 1px solid rgba(220,38,38,.3); color: #f87171; }

/* ── MODEL INFO BAR ── */
.leasing-model-bar {
    background: #fff;
    border-bottom: 1px solid #E5E7EB;
    padding: 10px 0;
}

.leasing-model-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.leasing-model-bar__back {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6A142C;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.15s;
}
.leasing-model-bar__back:hover { opacity: 0.7; }

.leasing-model-bar__sep {
    color: #D1D5DB;
}

.leasing-model-bar__name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #101828;
    font-family: 'Inter', sans-serif;
}

.leasing-model-bar__label {
    font-size: 0.7rem;
    color: #9CA3AF;
    font-family: 'Inter', sans-serif;
}

.leasing-model-bar__price {
    font-size: 1rem;
    font-weight: 800;
    color: #6A142C;
    font-family: 'Inter', sans-serif;
}

/* ── LIGHT PAGE BODY ── */
.leasing-page {
    min-height: 100vh;
    background: #F5F6FA;
    font-family: 'Inter', sans-serif;
}

/* ── KALKULATOR WRAPPER (max-width kontejner) ── */
.leasing-calc-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}

/* ── COMPANY HEADER (logo + naziv) ── */
.leasing-company-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E5E7EB;
}

.leasing-company-logo-wrap {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 0 0 1px #E5E7EB;
}

.leasing-company-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.leasing-company-title h1 {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: #101828;
    line-height: 1.25;
    font-family: 'Inter', sans-serif;
}

.leasing-company-title h1 span {
    color: #6A142C;
}

.leasing-company-title p {
    font-size: 0.84rem;
    color: #6B7280;
    margin-top: 3px;
    font-family: 'Inter', sans-serif;
}

/* ═══ KALKULATOR STILOVI — LIGHT OVERRIDE ═══
   Ovi stilovi overriduju tamnu temu originalnog kalkulatora.
   Koristimo !important samo tamo gde specifičnost originalnog CSS-a pobedi.
*/

.lk-scope {
    background: transparent;
}

/* Ukloni tamne pozadine iz originalnog */
.lk-scope body { background: transparent !important; color: #101828 !important; }

.lk-scope .card,
.lk-scope [class*="card"] {
    background: #fff !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04) !important;
    color: #101828 !important;
}

/* Glass cards (stats grid) */
.lk-scope .cc,
.lk-scope [class*="cc"] {
    background: #fff !important;
    border: 1px solid #E5E7EB !important;
    color: #101828 !important;
}

.lk-scope .cc h3 { color: #9CA3AF !important; }
.lk-scope .cc .val { color: #101828 !important; }
.lk-scope .cc .val.a { color: #6A142C !important; }
.lk-scope .cc .sub { color: #9CA3AF !important; }
.lk-scope .cc:hover { border-color: #6A142C !important; box-shadow: 0 4px 16px rgba(106,20,44,0.1) !important; }

/* Naslovi sekcija */
.lk-scope h2 { color: #6B7280 !important; }
.lk-scope .card h2 { color: #6B7280 !important; }

/* Labels i muted tekst */
.lk-scope .field label,
.lk-scope .rl,
.lk-scope .muted,
.lk-scope [class*="muted"] { color: #6B7280 !important; }

/* Vrednosti */
.lk-scope .v,
.lk-scope .rv,
.lk-scope [class*="rv"] { color: #101828 !important; }

/* Naslovi vrednosti u zelenom/cyan/orange — zadržimo boje ali adapt */
.lk-scope .rv.g { color: #16A34A !important; }
.lk-scope .rv.c { color: #1D4ED8 !important; }
.lk-scope .rv.o { color: #D97706 !important; }
.lk-scope .rv.a { color: #6A142C !important; }

/* Range inputi */
.lk-scope input[type=range] {
    background: #E5E7EB !important;
}

.lk-scope input[type=range]::-webkit-slider-thumb {
    background: #6A142C !important;
    box-shadow: 0 0 8px rgba(106,20,44,0.3) !important;
}

/* Text input grupe */
.lk-scope .igrp {
    background: #F9FAFB !important;
    border: 1px solid #E5E7EB !important;
}

.lk-scope .igrp:focus-within {
    border-color: #6A142C !important;
}

.lk-scope .igrp input {
    color: #101828 !important;
    background: transparent !important;
}

.lk-scope .sfx {
    background: #F0F1F6 !important;
    color: #6B7280 !important;
    border-left: 1px solid #E5E7EB !important;
}

/* Select */
.lk-scope select {
    background-color: #F9FAFB !important;
    border: 1px solid #E5E7EB !important;
    color: #101828 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%236B7280' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
}

.lk-scope select:focus { border-color: #6A142C !important; }

/* Toggle buttons */
.lk-scope .tbtn {
    background: #F9FAFB !important;
    border: 1px solid #E5E7EB !important;
    color: #6B7280 !important;
}

.lk-scope .tbtn.on {
    border-color: #6A142C !important;
    background: rgba(106,20,44,0.06) !important;
    color: #6A142C !important;
    font-weight: 600 !important;
}

/* Mesečna rata card (plavi box -> crveni) */
.lk-scope .mrate {
    background: linear-gradient(135deg, #6A142C, #8B1A37) !important;
    box-shadow: 0 8px 32px rgba(106,20,44,0.3) !important;
}

/* Row divider */
.lk-scope .rrow {
    border-bottom: 1px solid #F3F4F6 !important;
}

/* Zadnja row (ukupna mesečna obaveza) */
.lk-scope .rrow:last-child {
    background: rgba(106,20,44,0.04) !important;
    margin: 0 -28px -28px !important;
    padding: 14px 28px !important;
    border-radius: 0 0 14px 14px !important;
}

/* EKS bar */
.lk-scope .eksv {
    background: #F9FAFB !important;
    border: 1px solid #E5E7EB !important;
}

.lk-scope .ekst { color: #6B7280 !important; }
.lk-scope .eksn { color: #101828 !important; }
.lk-scope .eksbg { background: #E5E7EB !important; }

/* Reprezentativni primer box */
.lk-scope .rbox {
    background: #fff !important;
    border: 1px solid #E5E7EB !important;
}

.lk-scope .ri {
    background: #F9FAFB !important;
    border: 1px solid #F0F1F6 !important;
}

.lk-scope .ri .ril { color: #9CA3AF !important; }
.lk-scope .ri .riv { color: #101828 !important; }
.lk-scope .ri .riv.a { color: #6A142C !important; }

/* Plan otplate tabela */
.lk-scope thead th {
    background: #F9FAFB !important;
    color: #6B7280 !important;
    border-bottom: 1px solid #E5E7EB !important;
}

.lk-scope tbody tr:hover { background: rgba(106,20,44,0.03) !important; }
.lk-scope tbody td { color: #101828 !important; border-bottom: 1px solid #F3F4F6 !important; }
.lk-scope tbody td:first-child { color: #9CA3AF !important; }

/* Table wrapper */
.lk-scope .twrap {
    border: 1px solid #E5E7EB !important;
}

/* .pc (cyan -> plava) i .ic (green) */
.lk-scope .pc { color: #1D4ED8 !important; }
.lk-scope .ic { color: #16A34A !important; }

/* Show all button */
.lk-scope .sab {
    background: #F9FAFB !important;
    border: 1px solid #E5E7EB !important;
    color: #6B7280 !important;
}

.lk-scope .sab:hover {
    border-color: #6A142C !important;
    color: #6A142C !important;
    background: rgba(106,20,44,0.04) !important;
}

/* Napomena box */
.lk-scope .nb {
    background: rgba(106,20,44,0.04) !important;
    border: 1px solid rgba(106,20,44,0.15) !important;
    color: #6B7280 !important;
}

.lk-scope .nb strong { color: #6A142C !important; }
.lk-scope .nb a { color: #6A142C !important; }

/* Range track fill (JS postavlja background via inline style — override ne radi, ali JS će koristiti naše boje) */
.lk-scope .marks { color: #9CA3AF !important; }
.lk-scope .div { background: #E5E7EB !important; }

/* Footer kalkulatora — sakrivamo */
.lk-scope footer,
.lk-scope .calc-footer {
    display: none !important;
}

/* body::before glassmorphism bg iz originalnog — uklanjamo*/
.lk-scope .wrap::before { display: none !important; }

/* Animacije — zadrži */
.lk-scope .card,
.lk-scope .mrate,
.lk-scope .cc,
.lk-scope .rbox {
    animation: lkFadeIn 0.35s ease both;
}

@keyframes lkFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── SPINNER (za submit dugme) ── */
.ld-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.35);
    border-radius: 50%;
    border-top-color: #fff;
    animation: ldSpin 0.7s linear infinite;
    vertical-align: middle;
}
@keyframes ldSpin { to { transform: rotate(360deg); } }

/* ── MODEL-DETAILS LEASING GRID — u model-details.css ── */
