/* ==========================================================================
   EV Mobility - Kalkulatory Elektromobilności CSS (Wersja v6 - Redesign 1:1)
   Pełna spójność ze stroną główną i podstronami www.evmobility.pl
   Fonty bazowe: Exo, Exo 2, Montserrat
   Kolory: #029519, #078D1D, #0B6519, #434343, #505050
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero Banner podstrony kalkulatorów (1:1 z szablonem Realizacje)
   -------------------------------------------------------------------------- */
.page-template-template-calculators #hero {
    min-height: 70vh;
}

/* --------------------------------------------------------------------------
   2. Sekcja wstępu i kontener kalkulatorów (struktura #cases)
   Zezwalamy na overflow: visible, aby sticky scroll działał idealnie
   -------------------------------------------------------------------------- */
.page-template-template-calculators,
.page-template-template-calculators body,
.page-template-template-calculators #cases,
.page-template-template-calculators .container-fluid,
.page-template-template-calculators .container-inner,
.page-template-template-calculators .evm-calc-card {
    overflow: visible !important;
}

.page-template-template-calculators #cases {
    padding: 80px 0 60px 0;
    position: relative;
}

/* --------------------------------------------------------------------------
   Dynamiczne znaki wodne i efekt WOW w tle (Wielkie EV logo + ambient glow)
   Rozmieszczone na całej długości podstrony z subtelną animacją oddechu
   -------------------------------------------------------------------------- */
.evm-watermark-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.evm-wm-logo {
    position: absolute;
    user-select: none;
    max-width: none;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 1. Górna sekcja - klasyczne EV w lewym górnym rogu (1:1 ze strony głównej) */
.evm-wm-1 {
    top: 30px;
    left: -40px;
    height: 480px;
    opacity: 0.88;
    animation: evmFloat1 14s ease-in-out infinite alternate;
}

/* 2. Środkowa sekcja (Zasięg) - dynamiczne powiększone EV po prawej z rotacją */
.evm-wm-2 {
    top: 36%;
    right: -70px;
    height: 580px;
    opacity: 0.52;
    transform: scaleX(-1) rotate(-6deg);
    filter: drop-shadow(0 20px 40px rgba(2, 149, 25, 0.08));
    animation: evmFloat2 18s ease-in-out infinite alternate;
}

/* 3. Dolna sekcja (Ładowanie) - zoptymalizowane EV w lewym dolnym rogu z łagodną poświatą */
.evm-wm-3 {
    bottom: 80px;
    left: -30px;
    height: 510px;
    opacity: 0.7;
    animation: evmFloat3 16s ease-in-out infinite alternate;
}

/* Ambient glow - miękkie, szmaragdowe świetlne aury w tle */
.evm-ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: -1;
}

.evm-ambient-glow.glow-1 {
    top: 15%;
    left: 10%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(2, 149, 25, 0.05) 0%, transparent 70%);
}

.evm-ambient-glow.glow-2 {
    top: 48%;
    right: 5%;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(2, 149, 25, 0.06) 0%, transparent 70%);
}

.evm-ambient-glow.glow-3 {
    bottom: 10%;
    left: 8%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(2, 149, 25, 0.05) 0%, transparent 70%);
}

@keyframes evmFloat1 {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-14px) rotate(1deg); }
}

@keyframes evmFloat2 {
    0% { transform: scaleX(-1) rotate(-6deg) translateY(0px); }
    100% { transform: scaleX(-1) rotate(-4deg) translateY(18px); }
}

@keyframes evmFloat3 {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-12px) rotate(-1deg); }
}

.page-template-template-calculators .container-fluid {
    position: relative;
    z-index: 2;
}

.page-template-template-calculators .container-inner {
    padding: 0 50px;
}

.page-template-template-calculators .row_top {
    display: flex;
    gap: 80px;
    margin-bottom: 50px;
}

.page-template-template-calculators .row_top .heading {
    width: 50%;
    margin-bottom: 0;
    font-family: "Exo", sans-serif;
    line-height: 1.1;
    font-weight: 700;
    font-size: 50px;
    color: #434343;
}

.page-template-template-calculators .row_top .heading-3 {
    width: 50%;
    font-family: "Exo", sans-serif;
    font-weight: 300;
    font-size: 26px;
    line-height: 1.4;
    color: #505050;
}

@media (max-width: 1150px) {
    .page-template-template-calculators .row_top {
        flex-direction: column;
        gap: 0;
    }
    .page-template-template-calculators .row_top .heading {
        width: 100%;
    }
    .page-template-template-calculators .row_top .heading-3 {
        width: 100%;
        margin-top: 15px;
    }
    .page-template-template-calculators .container-inner {
        padding: 0;
    }
}

/* --------------------------------------------------------------------------
   3. Pasek zakładek nawigacyjnych kalkulatorów
   -------------------------------------------------------------------------- */
.evm-calc-tabs-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 36px;
    border-bottom: 1px solid #eef2f0;
    padding-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.evm-calc-tabs-bar::-webkit-scrollbar {
    display: none;
}

.evm-calc-tab-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 22px;
    border-radius: 14px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    white-space: nowrap;
}

.evm-calc-tab-btn:hover {
    background: #f8faf9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.evm-calc-tab-btn.active {
    background: #ffffff;
    border: 2px solid #029519;
    box-shadow: 0 4px 20px rgba(2, 149, 25, 0.12);
}

.evm-calc-tab-btn .tab-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f0faf3;
    color: #029519;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.evm-calc-tab-btn.active .tab-icon-wrap {
    background: #029519;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(2, 149, 25, 0.3);
}

.evm-calc-tab-btn .tab-num {
    font-family: "Exo 2", sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #029519;
    background: #eaf7ed;
    padding: 3px 7px;
    border-radius: 5px;
    line-height: 1;
}

.evm-calc-tab-btn .tab-text {
    display: flex;
    flex-direction: column;
}

.evm-calc-tab-btn .tab-title {
    font-family: "Exo", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #333333;
    line-height: 1.2;
}

.evm-calc-tab-btn.active .tab-title {
    color: #029519;
}

.evm-calc-tab-btn .tab-sub {
    font-family: "Exo", sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #718096;
    margin-top: 3px;
}

/* --------------------------------------------------------------------------
   4. Karta pojedynczego kalkulatora
   -------------------------------------------------------------------------- */
.evm-calc-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 90px;
    scroll-margin-top: 100px;
    position: relative;
    overflow: visible !important;
    border-bottom: 1px solid #edf1ef;
    padding-bottom: 75px;
}

.evm-calc-card:last-child {
    border-bottom: none;
    margin-bottom: 40px;
    padding-bottom: 0;
}

/* Sub-heading na kalkulatorach - odporny na kolizje linii i spójny z motywem */
.page-template-template-calculators .sub-heading {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    margin-left: 0 !important;
    margin-bottom: 12px !important;
    font-size: 13px !important;
    letter-spacing: 3px !important;
    color: #029519 !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
}

.page-template-template-calculators .sub-heading::before,
.page-template-template-calculators .sub-heading:before {
    content: '' !important;
    display: inline-block !important;
    position: static !important;
    width: 28px !important;
    height: 2px !important;
    background-color: #029519 !important;
    margin-right: 12px !important;
    vertical-align: middle !important;
    bottom: auto !important;
    left: auto !important;
    flex-shrink: 0 !important;
}

.evm-calc-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 40px;
}

.evm-calc-header .sub-heading {
    margin-left: 0;
    margin-bottom: 14px;
    font-size: 14px;
    letter-spacing: 4px;
    color: #029519;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
}

.evm-calc-header .heading {
    font-size: clamp(32px, 3.4vw, 48px);
    line-height: 1.15;
    font-weight: 700;
    color: #434343;
    margin-bottom: 16px;
}

.evm-calc-header .heading span {
    font-weight: 300;
    color: #434343;
}

.evm-calc-header .description {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #696969;
    line-height: 25px;
    margin-bottom: 0;
    max-width: 860px;
}

/* --------------------------------------------------------------------------
   5. Układ siatki: Konfigurator + Live KPI Sidebar
   -------------------------------------------------------------------------- */
.evm-calc-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 40px;
    align-items: start !important;
    position: relative;
    overflow: visible !important;
}

.evm-calc-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.evm-form-group {
    background: transparent;
    border: none;
    border-bottom: 1px solid #edf1ef;
    border-radius: 0;
    padding: 0 0 28px 0;
    margin-bottom: 28px;
    transition: none;
}

.evm-form-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.evm-group-title {
    font-family: "Exo", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.evm-group-title span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.evm-step-icon {
    width: 20px;
    height: 20px;
    color: #029519;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.evm-val-badge {
    font-family: "Exo 2", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #029519;
    background: #ffffff;
    border: 1px solid rgba(2, 149, 25, 0.25);
    padding: 4px 12px;
    border-radius: 10px;
}

.evm-select-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.evm-select, .evm-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #ced4da;
    background-color: #ffffff;
    font-family: "Exo", sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #434343;
    transition: all 0.2s;
}

.evm-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23029519' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 15px 15px !important;
    padding-right: 42px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    cursor: pointer !important;
}

.evm-select:focus, .evm-input:focus {
    border-color: #029519 !important;
    box-shadow: 0 0 0 3px rgba(2, 149, 25, 0.15) !important;
    outline: none !important;
}

.evm-car-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.evm-meta-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
}

.evm-meta-pill .label {
    display: block;
    font-family: "Exo", sans-serif;
    font-size: 11px;
    color: #888888;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.evm-meta-pill .value {
    font-family: "Exo 2", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #434343;
}

.evm-custom-car-fields {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #ced4da;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.evm-field-item label {
    display: block;
    font-family: "Exo", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
}

/* Suwaki Range Slider */
.evm-slider-wrap {
    margin-top: 8px;
}

.evm-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    cursor: pointer;
    margin: 12px 0 6px;
}

.evm-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #029519;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease;
}

.evm-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.evm-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #029519;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.evm-slider-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888888;
    font-family: "Exo", sans-serif;
}

/* Kafelki opcji */
.evm-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.evm-tile-btn {
    background: #ffffff;
    border: 1px solid #dcdfe3;
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 52px;
}

.evm-tile-btn .t-title {
    font-family: "Exo", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #434343;
    line-height: 1.2;
}

.evm-tile-btn .t-sub {
    font-family: "Exo", sans-serif;
    font-size: 11px;
    color: #777777;
    margin-top: 3px;
}

.evm-tile-btn:hover {
    border-color: #029519;
    background: #f4faf5;
}

.evm-tile-btn.active {
    border-color: #029519;
    background: rgba(2, 149, 25, 0.08);
    box-shadow: 0 0 0 1px #029519;
}

.evm-tile-btn.active .t-title {
    color: #029519;
    font-weight: 800;
}

/* Przełącznik Toggle */
.evm-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-top: 10px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.evm-toggle-row:hover {
    background: #eef7f0;
    border-color: #bce8c6;
}

.evm-toggle-label {
    font-family: "Exo", sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.35;
    flex: 1;
    padding-right: 12px;
    cursor: pointer;
}

.evm-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}

.evm-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.evm-slider-round {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 34px;
}

.evm-slider-round:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.evm-switch input:checked + .evm-slider-round {
    background-color: #029519;
}

.evm-switch input:checked + .evm-slider-round:before {
    transform: translateX(22px);
}

/* Wskaźnik temperatury baterii */
.range-temp-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 10px;
    margin-top: 14px;
    font-family: "Exo", sans-serif;
    font-size: 13px;
    font-weight: 600;
}

.range-temp-badge.temp-optimal {
    background: #e8f7ec;
    color: #086b16;
    border: 1px solid #b7ebc2;
}

.range-temp-badge.temp-cold {
    background: #eef6fc;
    color: #026aa7;
    border: 1px solid #bae0f5;
}

.range-temp-badge.temp-freezing {
    background: #f0f4ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.range-temp-badge.temp-warm {
    background: #fef8ee;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* --------------------------------------------------------------------------
   6. Prawa kolumna: Live KPI Sidebar (STYL 1:1 ZE STRONĄ EV MOBILITY)
   Jasna, prestiżowa karta z zielonymi akcentami + Płynny Sticky Scroll
   -------------------------------------------------------------------------- */
.evm-kpi-sidebar {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 110px !important;
    align-self: start !important;
    z-index: 10;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 26px;
    color: #212529;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 45px rgba(2, 149, 25, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: top 0.2s ease;
}

.evm-kpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    border-bottom: 1px solid #edf2ef;
    padding-bottom: 16px;
}

.evm-kpi-badge {
    color: #029519;
    font-family: "Exo 2", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.evm-kpi-live-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "Exo", sans-serif;
    font-size: 12px;
    color: #718096;
}

.evm-kpi-live-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    background-color: #029519;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #029519;
    animation: evmPulse 2s infinite;
}

@keyframes evmPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Główny wynik */
.evm-kpi-main-box {
    background: #f0faf3;
    border: 1px solid #bce6c6;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    margin-bottom: 22px;
}

.evm-kpi-label {
    font-family: "Exo", sans-serif;
    font-size: 12px;
    color: #55685b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-weight: 700;
}

.evm-kpi-number {
    font-family: "Exo 2", sans-serif;
    font-size: clamp(34px, 3.5vw, 44px);
    font-weight: 800;
    color: #029519;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(2, 149, 25, 0.18);
}

.evm-kpi-subnote {
    font-family: "Exo", sans-serif;
    font-size: 13px;
    color: #667085;
    margin-top: 8px;
}

/* Kafelki wskaźników */
.evm-kpi-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 22px;
}

.evm-stat-card {
    background: #f8faf9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
}

.evm-stat-card .s-label {
    display: block;
    font-family: "Exo", sans-serif;
    font-size: 11px;
    color: #718096;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.evm-stat-card .s-val {
    font-family: "Exo 2", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
}

/* Porównanie kosztów */
.evm-comparison-bars {
    margin-bottom: 24px;
    padding: 16px;
    background: #f8faf9;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.evm-bar-row {
    margin-bottom: 12px;
}

.evm-bar-row:last-child {
    margin-bottom: 0;
}

.evm-bar-header {
    display: flex;
    justify-content: space-between;
    font-family: "Exo", sans-serif;
    font-size: 13px;
    margin-bottom: 6px;
    color: #434343;
    font-weight: 500;
}

.evm-bar-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.evm-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.evm-bar-fill.green {
    background: #029519;
    box-shadow: 0 0 8px rgba(2, 149, 25, 0.4);
}

.evm-bar-fill.gray {
    background: #94a3b8;
}

/* Czas ładowania */
.evm-charge-kpi-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.evm-charge-kpi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8faf9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.2s;
}

.evm-charge-kpi-item.highlight {
    border-color: #bce6c6;
    background: #f0faf3;
}

.evm-charge-type {
    display: flex;
    align-items: center;
    gap: 12px;
}

.evm-charge-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.evm-charge-icon-wrap.dc {
    background: #eef8f0;
    color: #029519;
}

.evm-charge-icon-wrap.ac {
    background: #029519;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(2, 149, 25, 0.25);
}

.evm-charge-icon-wrap.home {
    background: #f1f5f9;
    color: #64748b;
}

.evm-tip-box {
    background: #f0faf3;
    border: 1px solid #c6ebd0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Exo", sans-serif;
    font-size: 13px;
    color: #35563e;
    line-height: 1.4;
}

.evm-tip-box svg {
    flex-shrink: 0;
}

.evm-charge-type .t-name {
    font-family: "Exo", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
}

.evm-charge-type .t-desc {
    font-family: "Exo", sans-serif;
    font-size: 11px;
    color: #718096;
}

.evm-charge-time {
    font-family: "Exo 2", sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #029519;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    text-align: right;
}

/* CTA */
.evm-kpi-cta {
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.evm-cta-lead-text {
    font-family: "Exo", sans-serif;
    font-size: 13px;
    color: #4a5568;
    margin-bottom: 12px;
    font-weight: 500;
}

.evm-btn-cta {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: #029519;
    color: #ffffff;
    font-family: "Exo", sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(2, 149, 25, 0.35);
    text-align: center;
}

.evm-btn-cta:hover {
    background: #017814;
    box-shadow: 0 6px 20px rgba(2, 149, 25, 0.5);
    transform: translateY(-2px);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
/* --------------------------------------------------------------------------
   7. Responsywność dla urządzeń mobilnych (Smartfony i Tablety)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .evm-calc-card {
        padding: 36px 28px;
    }
    .evm-calc-grid {
        gap: 32px;
    }
}

@media (max-width: 991px) {
    /* 1. Ukrycie ciemnych znaków wodnych EV za tekstem - 100% czytelności */
    .evm-watermark-layer .evm-wm-logo {
        display: none !important;
    }
    .evm-ambient-glow {
        opacity: 0.25 !important;
    }

    .evm-calc-grid {
        grid-template-columns: 1fr;
    }
    .evm-kpi-sidebar {
        position: static !important;
        margin-top: 24px;
    }
    .evm-select-row {
        grid-template-columns: 1fr;
    }
    .evm-custom-car-fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* 2. Dopasowanie Hero i sekcji wstępu na telefonie */
    .page-template-template-calculators #hero {
        min-height: 240px !important;
        height: 35vh !important;
    }
    .page-template-template-calculators #hero h1 {
        font-size: 28px !important;
    }
    .page-template-template-calculators #cases {
        padding: 28px 0 45px 0 !important;
    }
    .page-template-template-calculators .container-fluid {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .page-template-template-calculators .container-inner {
        padding: 0 !important;
    }
    .page-template-template-calculators .sub-heading {
        font-size: 11.5px !important;
        letter-spacing: 2px !important;
        margin-bottom: 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        position: static !important;
    }
    .page-template-template-calculators .sub-heading::before,
    .page-template-template-calculators .sub-heading:before {
        content: '' !important;
        position: static !important;
        display: inline-block !important;
        width: 22px !important;
        height: 2px !important;
        background-color: #029519 !important;
        margin-right: 8px !important;
        bottom: auto !important;
        left: auto !important;
        flex-shrink: 0 !important;
    }
    .page-template-template-calculators .row_top .heading {
        font-size: 22px !important;
        line-height: 1.25 !important;
        margin-bottom: 8px !important;
        font-weight: 800 !important;
        width: 100% !important;
    }
    .page-template-template-calculators .row_top .heading-3 {
        font-size: 13.5px !important;
        line-height: 1.45 !important;
        margin-bottom: 18px !important;
        color: #555555 !important;
        width: 100% !important;
    }

    /* 3. Pasek zakładek kalkulatorów - 3 równe kolumny w jednym rzędzie */
    .evm-calc-tabs-bar {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        padding-bottom: 12px !important;
        margin-bottom: 20px !important;
        overflow-x: visible !important;
        border-bottom: 1px solid #e2e8f0;
    }
    .evm-calc-tab-btn {
        padding: 10px 4px !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        border-radius: 10px !important;
        min-width: 0 !important;
        gap: 4px !important;
        border-width: 1.5px !important;
    }
    .evm-calc-tab-btn.active {
        border-color: #029519 !important;
        background: rgba(2, 149, 25, 0.08) !important;
        box-shadow: 0 2px 8px rgba(2, 149, 25, 0.15) !important;
    }
    .evm-calc-tab-btn .tab-icon-wrap {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
        margin: 0 auto !important;
    }
    .evm-calc-tab-btn .tab-icon-wrap svg {
        width: 17px !important;
        height: 17px !important;
    }
    .evm-calc-tab-btn .tab-text {
        width: 100%;
        text-align: center;
    }
    .evm-calc-tab-btn .tab-text .d-flex {
        flex-direction: column !important;
        align-items: center !important;
        gap: 2px !important;
    }
    .evm-calc-tab-btn .tab-num {
        font-size: 9px !important;
        padding: 1px 5px !important;
        line-height: 1.2 !important;
        margin: 0 auto;
    }
    .evm-calc-tab-btn .tab-title {
        font-size: 11px !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        font-weight: 700 !important;
        text-align: center !important;
    }
    .evm-calc-tab-btn .tab-sub {
        display: none !important;
    }

    /* 4. Karty kalkulatorów i nagłówki kroków */
    .evm-calc-card {
        padding: 18px 12px !important;
        border-radius: 14px !important;
        margin-bottom: 24px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    }
    .evm-calc-header {
        margin-bottom: 18px !important;
        padding-bottom: 14px !important;
    }
    .evm-calc-header .sub-heading {
        font-size: 11px !important;
        letter-spacing: 2px !important;
        margin-bottom: 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        position: static !important;
    }
    .evm-calc-header .sub-heading::before,
    .evm-calc-header .sub-heading:before {
        content: '' !important;
        position: static !important;
        display: inline-block !important;
        width: 18px !important;
        height: 2px !important;
        background-color: #029519 !important;
        margin-right: 8px !important;
        bottom: auto !important;
        left: auto !important;
        flex-shrink: 0 !important;
    }
    .evm-calc-header .heading {
        font-size: 19px !important;
        line-height: 1.25 !important;
        margin-bottom: 6px !important;
        font-weight: 800 !important;
    }
    .evm-calc-header .description {
        font-size: 12.5px !important;
        line-height: 1.45 !important;
        color: #64748b !important;
    }

    .evm-form-group {
        padding: 14px 12px !important;
        border-radius: 12px !important;
        margin-bottom: 12px !important;
    }
    .evm-group-title {
        font-size: 13.5px !important;
        margin-bottom: 10px !important;
        line-height: 1.35 !important;
        font-weight: 700 !important;
    }
    .evm-group-title .evm-step-icon {
        width: 17px !important;
        height: 17px !important;
    }

    /* 5. Pola wyboru i inputy (rozmiar 14.5px / 15px zapobiega kolizjom i ładnie mieści tekst) */
    .evm-input,
    input[type="number"],
    input[type="text"] {
        font-size: 15px !important;
        height: 48px !important;
        padding: 10px 14px !important;
        border-radius: 10px !important;
    }
    .evm-select {
        font-size: 14px !important;
        height: 48px !important;
        padding: 10px 42px 10px 14px !important;
        border-radius: 10px !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }

    /* 6. Dotykowe suwaki (łatwe przeciąganie kciukiem) */
    .evm-range {
        height: 8px !important;
        margin: 14px 0 6px !important;
        border-radius: 4px !important;
        touch-action: pan-y !important;
    }
    .evm-range::-webkit-slider-thumb {
        width: 26px !important;
        height: 26px !important;
        border-width: 3.5px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    }
    .evm-range::-moz-range-thumb {
        width: 26px !important;
        height: 26px !important;
        border-width: 3.5px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    }
    .evm-val-badge {
        font-size: 12px !important;
        padding: 3px 8px !important;
    }
    .evm-slider-ticks {
        font-size: 10px !important;
    }

    /* 7. Kafelki opcji (taryfy, trasy, napęd) - estetyczna symetria */
    .evm-tiles-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-top: 8px !important;
    }
    .evm-tiles-grid > :nth-child(odd):last-child {
        grid-column: 1 / -1 !important;
    }
    .evm-tile-btn {
        min-height: 52px !important;
        padding: 8px 6px !important;
        border-radius: 8px !important;
    }
    .evm-tile-btn .t-title {
        font-size: 12px !important;
        line-height: 1.2 !important;
    }
    .evm-tile-btn .t-sub {
        font-size: 10px !important;
        margin-top: 2px !important;
    }

    /* 8. Kafelki specyfikacji pojazdu (Krok 1) */
    .evm-car-meta-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
        margin-top: 10px !important;
    }
    .evm-meta-pill {
        padding: 6px 8px !important;
        border-radius: 8px !important;
        min-height: 56px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    .evm-meta-pill .label {
        font-size: 9px !important;
        margin-bottom: 2px !important;
    }
    .evm-meta-pill .value {
        font-size: 11.5px !important;
        line-height: 1.2 !important;
    }

    /* 9. Podsumowanie KPI na telefonie */
    .evm-kpi-sidebar {
        padding: 18px 14px !important;
        border-radius: 14px !important;
        margin-top: 18px !important;
        border: 1.5px solid #029519 !important;
        background: #ffffff !important;
        box-shadow: 0 4px 20px rgba(2, 149, 25, 0.08) !important;
    }
    .evm-kpi-header {
        margin-bottom: 14px !important;
    }
    .evm-kpi-main-box {
        padding: 16px 12px !important;
        border-radius: 12px !important;
        margin-bottom: 16px !important;
        text-align: center;
        background: linear-gradient(135deg, #f0f9f3 0%, #e6f6eb 100%) !important;
        border: 1px solid #bce8c6 !important;
    }
    .evm-kpi-main-box .evm-kpi-label {
        font-size: 11px !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #4a5568 !important;
        margin-bottom: 4px !important;
    }
    .evm-kpi-number {
        font-size: 32px !important;
        line-height: 1.1 !important;
        font-weight: 800 !important;
    }
    .evm-kpi-subnote {
        font-size: 10.5px !important;
        margin-top: 4px !important;
    }
    .evm-kpi-stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-bottom: 16px !important;
    }
    .evm-stat-card {
        padding: 10px 8px !important;
        border-radius: 8px !important;
        text-align: center;
    }
    .evm-stat-card .s-label {
        font-size: 9.5px !important;
        margin-bottom: 2px !important;
    }
    .evm-stat-card .s-val {
        font-size: 15px !important;
    }
    .evm-cta-btn {
        width: 100% !important;
        padding: 15px 16px !important;
        font-size: 13.5px !important;
        border-radius: 10px !important;
        letter-spacing: 0.5px !important;
        font-weight: 800 !important;
    }

    /* 10. Czas ładowania na telefonie - ochrona przed łamaniem 'MIN' na kolejną linię */
    .evm-charge-time {
        font-size: clamp(14px, 3.8vw, 17px) !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        text-align: right !important;
    }
    .evm-charge-kpi-item {
        padding: 12px 12px !important;
        gap: 8px !important;
    }
    .evm-kpi-card .label {
        font-size: 10px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* Ukrycie pływającego badge reCAPTCHA na podstronie kalkulatorów, by nie zasłaniał widoku */
.page-template-template-calculators .grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -999 !important;
}
@media (max-width: 768px) {
    .grecaptcha-badge {
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        z-index: -999 !important;
    }
}



/* --------------------------------------------------------------------------
   Poprawka i lifting modala kontaktowego (#contact_modal)
   Nowoczesny, 2-kolumnowy layout na desktopie (mieści się na każdym ekranie)
   W pełni responsywny na tabletach i smartfonach
   -------------------------------------------------------------------------- */
#contact_modal .modal-dialog {
    max-width: 660px !important;
    margin: 1.5rem auto !important;
}

#contact_modal .modal-content {
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.22) !important;
    overflow: hidden;
    background: #ffffff !important;
}

#contact_modal .modal-body {
    padding: 34px 38px 30px 38px !important;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

/* Zielona pigułka nad tytułem modala */
.evm-modal-badge {
    display: inline-block;
    background: rgba(2, 149, 25, 0.1);
    color: #029519;
    font-family: "Exo", sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
}

#contact_modal .heading-4 {
    font-family: "Exo", sans-serif !important;
    font-weight: 800 !important;
    font-size: 22px !important;
    color: #1a202c !important;
    margin-bottom: 20px !important;
    line-height: 1.35 !important;
    padding-right: 36px;
}

#contact_modal .btn-close {
    position: absolute;
    top: 24px;
    right: 24px;
    opacity: 0.55;
    transition: opacity 0.2s;
}

#contact_modal .btn-close:hover {
    opacity: 1;
}

/* 2-kolumnowy układ pól formularza na desktopie */
#contact_modal .contact_form form {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px 16px !important;
}

#contact_modal .contact_form form input[name="name"] {
    grid-column: 1 / 2 !important;
}

#contact_modal .contact_form form input[name="phone"] {
    grid-column: 2 / 3 !important;
}

#contact_modal .contact_form form input[name="email"] {
    grid-column: 1 / -1 !important;
}

#contact_modal .contact_form form textarea[name="content"] {
    grid-column: 1 / -1 !important;
    min-height: 135px !important;
    max-height: 220px !important;
    resize: vertical;
    font-family: "Exo", sans-serif !important;
    font-size: 13.5px !important;
    line-height: 1.45 !important;
}

#contact_modal .contact_form form input,
#contact_modal .contact_form form textarea {
    width: 100%;
    color: #1a202c !important;
    background: #f8faf9 !important;
    font-family: "Exo", sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    padding: 12px 16px !important;
    border: 1.5px solid #d1d9d4 !important;
    border-radius: 10px !important;
    margin-bottom: 0 !important;
    transition: all 0.2s ease !important;
}

#contact_modal .contact_form form input:focus,
#contact_modal .contact_form form textarea:focus {
    background: #ffffff !important;
    border-color: #029519 !important;
    box-shadow: 0 0 0 3px rgba(2, 149, 25, 0.15) !important;
    outline: none !important;
}

#contact_modal .contact_form form input::placeholder,
#contact_modal .contact_form form textarea::placeholder {
    color: #718096 !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

/* Elegancki przewijany boks RODO (zamiast 15 linijek rozpychających okno) */
#contact_modal .contact_form .policy {
    grid-column: 1 / -1 !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 10.5px !important;
    color: #64748b !important;
    line-height: 1.45 !important;
    background: #f8faf9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    max-height: 65px !important;
    overflow-y: auto !important;
    margin: 2px 0 2px 0 !important;
    scrollbar-width: thin;
}

#contact_modal .contact_form .policy::-webkit-scrollbar {
    width: 4px;
}
#contact_modal .contact_form .policy::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

/* Zgoda i regulamin */
#contact_modal .contact_form .regulamin {
    grid-column: 1 / -1 !important;
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 8px 0 !important;
}

#contact_modal .contact_form .regulamin input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin-top: 2px !important;
    accent-color: #029519 !important;
    cursor: pointer;
    flex-shrink: 0;
}

#contact_modal .contact_form .regulamin label {
    color: #334155 !important;
    font-family: "Montserrat", sans-serif !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    cursor: pointer;
    margin: 0 !important;
}

/* Przycisk wysyłki (CTA) */
#contact_modal .contact_form .btn_submit {
    grid-column: 1 / -1 !important;
    width: 100%;
    background: linear-gradient(135deg, #029519 0%, #017814 100%) !important;
    color: #ffffff !important;
    font-family: "Exo", sans-serif !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 24px !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(2, 149, 25, 0.35) !important;
    margin-top: 4px;
}

#contact_modal .contact_form .btn_submit:hover {
    background: linear-gradient(135deg, #017814 0%, #015c0f 100%) !important;
    box-shadow: 0 6px 22px rgba(2, 149, 25, 0.5) !important;
    transform: translateY(-1px);
}

/* Komunikaty AJAX po wysłaniu formularza */
#formMessagePopup .notice {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-family: "Exo", sans-serif;
    font-size: 14px;
    font-weight: 600;
}
#formMessagePopup .notice-success {
    background: #e8f5ec;
    border: 1.5px solid #029519;
    color: #0b6519;
}
#formMessagePopup .notice-error {
    background: #fdf2f2;
    border: 1.5px solid #e53e3e;
    color: #c53030;
}

/* --------------------------------------------------------------------------
   Dopasowanie modala kontaktowego na ekranach smartfonów (< 650px)
   -------------------------------------------------------------------------- */
@media (max-width: 650px) {
    #contact_modal .modal-dialog {
        margin: 10px auto !important;
        max-width: calc(100% - 20px) !important;
    }
    #contact_modal .modal-body {
        padding: 22px 16px 18px 16px !important;
        max-height: 88vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    #contact_modal .contact_form form {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    #contact_modal .contact_form form input[name="name"],
    #contact_modal .contact_form form input[name="phone"] {
        grid-column: 1 / -1 !important;
    }
    #contact_modal .heading-4 {
        font-size: 17px !important;
        margin-bottom: 12px !important;
        line-height: 1.3 !important;
        padding-right: 26px !important;
    }
    #contact_modal .btn-close {
        top: 14px !important;
        right: 14px !important;
    }
    #contact_modal .contact_form form input,
    #contact_modal .contact_form form textarea {
        font-size: 16px !important; /* zapobiega zoomowaniu na iOS */
        padding: 10px 12px !important;
        border-radius: 8px !important;
    }
    #contact_modal .contact_form form textarea {
        min-height: 135px !important;
        max-height: 220px !important;
        line-height: 1.45 !important;
    }
    #contact_modal .contact_form .policy {
        font-size: 10px !important;
        max-height: 60px !important;
        padding: 6px 8px !important;
        margin: 0 !important;
        line-height: 1.35 !important;
    }
    #contact_modal .contact_form .regulamin {
        margin: 2px 0 6px 0 !important;
        gap: 8px !important;
    }
    #contact_modal .contact_form .regulamin label {
        font-size: 11px !important;
        line-height: 1.35 !important;
    }
    #contact_modal .contact_form .btn_submit {
        padding: 14px 16px !important;
        font-size: 13.5px !important;
        margin-top: 4px !important;
        border-radius: 8px !important;
    }
}

/* Przesunięcie i subtelne wygaszenie odznaki reCAPTCHA */
.grecaptcha-badge {
    z-index: 99 !important;
    bottom: 85px !important;
}
@media (max-width: 768px) {
    .grecaptcha-badge {
        bottom: 80px !important;
        opacity: 0.25 !important;
        transition: opacity 0.2s ease !important;
    }
    .grecaptcha-badge:hover,
    .grecaptcha-badge:focus {
        opacity: 1 !important;
    }
}


