/* =========================
   FUEL PAGE — isolated styles
========================= */

.fuel-page {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6fb;
    color: #222;
    line-height: 1.55;
    min-height: 100vh;
}

/* HEADER */
.fuel-page .fuel-header {
    background: #283b69;
    color: #fff;
    padding: 18px 0;
}

.fuel-page .fuel-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fuel-page .fuel-title {
    font-size: 22px;
    margin: 0;
}

.fuel-page .fuel-back {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 12px;
}

/* MAIN */
.fuel-page .fuel-main {
    padding: 30px 0;
}

.fuel-page .fuel-shell {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* TOP BAR */
.fuel-page .fuel-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.fuel-page .mode-switch {
    display: flex;
    gap: 10px;
}

/* PILLS */
.fuel-page .pill {
    border: 1px solid rgba(40, 59, 105, .3);
    background: #fff;
    color: #283b69;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
    transition: transform .12s ease, box-shadow .12s ease;
}

.fuel-page .pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
}

.fuel-page .pill.active,
.fuel-page .pill.primary {
    background: #283b69;
    color: #fff;
}

/* TOGGLE */
.fuel-page .auto-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.fuel-page .auto-toggle input {
    display: none;
}

.fuel-page .auto-ui {
    width: 42px;
    height: 24px;
    background: #ccc;
    border-radius: 999px;
    position: relative;
}

.fuel-page .auto-ui::after {
    content: "";
    width: 18px;
    height: 18px;
    background: #fff;
    position: absolute;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    transition: left .18s ease;
}

.fuel-page .auto-toggle input:checked+.auto-ui {
    background: #283b69;
}

.fuel-page .auto-toggle input:checked+.auto-ui::after {
    left: 21px;
}

/* CARDS */
.fuel-page .global-card,
.fuel-page .car-card,
.fuel-page .compare-card {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
    margin-bottom: 18px;
}

.fuel-page .global-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.fuel-page .cars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* INPUTS */
.fuel-page .field {
    margin-top: 10px;
}

.fuel-page .field label {
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 4px;
    display: block;
}

.fuel-page .hint {
    font-size: 12px;
    opacity: .75;
    font-weight: 600;
}

.fuel-page .field input,
.fuel-page .field select {
    width: 100%;
    max-width: 420px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, .2);
    font-size: 14px;
}

/* RESULT */
.fuel-page .result {
    margin-top: 14px;
}

.fuel-page .result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.fuel-page .result-item {
    background: #f1f3f8;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    min-height: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fuel-page .result-label {
    font-size: 12px;
    opacity: .75;
    margin-bottom: 6px;
}

.fuel-page .result-value {
    font-size: 17px;
    font-weight: 900;
    color: #283b69;
}

.fuel-page .result-grid .result-total {
    grid-column: 1 / -1;
}

/* COMPARE */
.fuel-page .compare-title {
    font-weight: 900;
    color: #283b69;
    margin-bottom: 10px;
}

.fuel-page .compare-card .result-item {
    min-height: 56px;
    padding: 10px;
}

/* ACTIONS */
.fuel-page .fuel-actions {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fuel-page .fuel-actions .pill {
    min-width: 160px;
}

/* WINNER */
.fuel-page .car-card.is-winner {
    border: 2px solid #283b69;
    box-shadow: 0 15px 40px rgba(40, 59, 105, .35);
    transform: scale(1.02);
}

.fuel-page .car-card.is-loser {
    opacity: .85;
}

.fuel-page .winner-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #283b69;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

/* FOOTER */
.fuel-page .fuel-footer {
    background: #283b69;
    color: #fff;
    padding: 18px;
    text-align: center;
}

/* DYNAMIC */
.fuel-page .dyn-block.is-hidden {
    display: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .fuel-page .cars-grid,
    .fuel-page .global-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .fuel-page .result-grid {
        grid-template-columns: 1fr;
    }
}
.fuel-page .fuel-seo {
    max-width: 900px;
    margin: 60px auto 40px;
    padding: 0 20px;
    color: #444;
    line-height: 1.7;
}

.fuel-page .fuel-seo h2 {
    color: #283b69;
    font-size: 22px;
    margin-bottom: 16px;
    text-align: center;
}

.fuel-page .fuel-seo p {
    margin-bottom: 14px;
    font-size: 15px;
}
.fuel-page .fuel-faq {
    max-width: 900px;
    margin: 50px auto 60px;
    padding: 0 20px;
}

.fuel-page .fuel-faq h2 {
    text-align: center;
    color: #283b69;
    margin-bottom: 24px;
}

.fuel-page .faq-item {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    margin-bottom: 14px;
}

.fuel-page .faq-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #283b69;
}

.fuel-page .faq-item p {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

/* =========================
   VISUAL TUNING (compact + centered)
   add to the END of fuel.css
========================= */

/* 1) Make car form inputs compact */
.fuel-page .car-card .field {
    margin-top: 10px;
}

.fuel-page .car-card .field label {
    font-size: 13px;
    margin-bottom: 5px;
}

.fuel-page .car-card .field input,
.fuel-page .car-card .field select {
    max-width: 360px;
    /* ✅ інпути коротші */
    padding: 7px 10px;
    /* ✅ нижчі */
    font-size: 14px;
    border-radius: 10px;
}

/* On smaller screens let inputs be full width */
@media (max-width: 900px) {

    .fuel-page .car-card .field input,
    .fuel-page .car-card .field select {
        max-width: 100%;
    }
}

/* 2) Center results nicely (label + value) */
.fuel-page .result-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* ✅ реально по центру */
    min-height: 58px;
    /* ✅ трохи нижче */
    padding: 10px 12px;
    /* ✅ компактніше */
}

.fuel-page .result-label {
    font-size: 12px;
    margin-bottom: 6px;
    opacity: .78;
}

.fuel-page .result-value {
    font-size: 16px;
    /* ✅ трохи менше */
    line-height: 1.15;
}

/* 3) Result grid: a bit tighter */
.fuel-page .result-grid {
    gap: 8px;
}

/* 4) Compare card: smaller tiles + compact typography */
.fuel-page .compare-card {
    padding: 16px;
}

.fuel-page .compare-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.fuel-page .compare-card .result-grid {
    gap: 8px;
}

.fuel-page .compare-card .result-item {
    min-height: 52px;
    padding: 9px 10px;
}

.fuel-page .compare-card .result-label {
    font-size: 11px;
}

.fuel-page .compare-card .result-value {
    font-size: 15px;
}

/* 5) Make winner badge smaller and cleaner */
.fuel-page .winner-badge {
    font-size: 11px;
    padding: 5px 9px;
}

/* 6) Buttons row looks more "service-like" */
.fuel-page .fuel-actions {
    gap: 10px;
    margin-top: 16px;
}

.fuel-page .fuel-actions .pill {
    padding: 9px 16px;
    min-width: 170px;
}
/* =========================
   PREMIUM FIELD SEPARATORS
========================= */

/* Wrapper for all fields inside cards */
.fuel-page .car-card .dyn-block,
.fuel-page .global-card {
    border-radius: 14px;
    background: #fafbfe;
    padding: 12px 14px;
    margin-top: 10px;
}

/* Every field separated by subtle line */
.fuel-page .car-card .field,
.fuel-page .global-card .field {
    padding: 10px 0;
    margin: 0;
    border-bottom: 1px solid rgba(40, 59, 105, 0.08);
}

/* Remove line from last field in block */
.fuel-page .car-card .dyn-block .field:last-child,
.fuel-page .global-card .field:last-child {
    border-bottom: none;
}

/* Make labels look like UI text */
.fuel-page .field label {
    letter-spacing: 0.2px;
}

/* Inputs float nicer in separator layout */
.fuel-page .car-card .field input,
.fuel-page .car-card .field select {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

/* Slight hover focus feel */
.fuel-page .car-card .field input:focus,
.fuel-page .car-card .field select:focus {
    border-color: rgba(40, 59, 105, 0.5);
    box-shadow: 0 0 0 3px rgba(40, 59, 105, 0.12);
}
.fuel-page header,
.fuel-page footer {
    font-family: inherit;
}
/* =========================
   TOPBAR — HARD FIX (GRID)
========================= */
.fuel-page .fuel-topbar {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 18px;
}

.fuel-page .mode-switch {
    grid-column: 1;
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
}

.fuel-page .auto-toggle {
    grid-column: 3;
    justify-self: end !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    white-space: nowrap !important;
}

/* Мобільна: перемикач стає нижче, але вправо */
@media (max-width: 720px) {
    .fuel-page .fuel-topbar {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .fuel-page .mode-switch {
        justify-content: center !important;
    }

    .fuel-page .auto-toggle {
        justify-self: end !important;
    }
}
/* =========================
   AUTO-TOGGLE FIX (alignment + click)
========================= */

/* label always aligns in one line */
.fuel-page .auto-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    white-space: nowrap !important;
    margin: 0 !important;
    line-height: 1 !important;
}

/* don't use display:none for checkbox (breaks layout/click in some cases) */
.fuel-page .auto-toggle input {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    pointer-events: none !important;
}

/* switch box */
.fuel-page .auto-ui {
    flex: 0 0 auto !important;
    width: 42px !important;
    height: 24px !important;
    border-radius: 999px !important;
    background: #ccc !important;
    position: relative !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* knob */
.fuel-page .auto-ui::after {
    content: "" !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #fff !important;
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;
    transition: left .18s ease !important;
}

/* checked state */
.fuel-page .auto-toggle input:checked+.auto-ui {
    background: #283b69 !important;
}

.fuel-page .auto-toggle input:checked+.auto-ui::after {
    left: 21px !important;
}

/* text baseline fix */
.fuel-page .auto-text {
    display: inline-block;
    transform: translateY(1px);
    /* легке вирівнювання по осі */
}
.fuel-page .fuel-topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.fuel-page .mode-switch {
    display: flex !important;
    gap: 10px !important;
}
/* =========================
   TOGGLE FIX: move knob with transform (no shift)
========================= */

/* base */
.fuel-page .auto-ui {
    position: relative !important;
    overflow: hidden !important;
    /* щоб нічого не випирало */
}

/* knob */
.fuel-page .auto-ui::after {
    left: 3px !important;
    /* завжди однаковий left */
    transform: translateX(0) !important;
    /* рух тільки transform */
    transition: transform .18s ease !important;
}

/* checked: move knob */
.fuel-page .auto-toggle input:checked+.auto-ui::after {
    transform: translateX(18px) !important;
    /* 42 - 18 - 3 - 3 = 18 */
}

/* (опціонально) фіксуємо ширину, щоб точно не перераховувало */
.fuel-page .auto-toggle {
    min-width: 190px;
    /* щоб текст + тумблер не "гуляв" */
}
/* =========================
   TOGGLE FIX (no double-move)
========================= */

/* track */
.fuel-page .auto-ui {
    width: 42px !important;
    height: 24px !important;
    position: relative !important;
    border-radius: 999px !important;
    overflow: visible !important;
    /* не ховати кружечок */
}

/* knob base */
.fuel-page .auto-ui::after {
    content: "" !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #fff !important;
    position: absolute !important;
    top: 3px !important;

    left: 3px !important;
    /* ✅ завжди 3 */
    transform: translateX(0) !important;
    /* ✅ рух тільки transform */
    transition: transform .18s ease !important;
}

/* checked state: IMPORTANT — keep left:3, move by transform only */
.fuel-page .auto-toggle input:checked+.auto-ui::after {
    left: 3px !important;
    /* ✅ прибиваємо старе left:21 */
    transform: translateX(18px) !important;
    /* 42 - 18 - 3 - 3 = 18 */
}
/* =========================
   FUEL TITLEBAR (1:1 like ccalc)
   все тільки всередині .fuel-page
========================= */

.fuel-page .fuel-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 0 40px;
}

.fuel-page .fuel-titlebar {
    background: linear-gradient(180deg, #283b69, #1f2f55);
    color: #fff;
    border-radius: 16px;
    padding: 16px 16px;
    box-shadow: 0 10px 25px rgba(16, 24, 40, .08);
    margin-bottom: 14px;
}

.fuel-page .fuel-h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.fuel-page .fuel-p {
    margin: 6px 0 0;
    opacity: .92;
    font-size: 13px;
}
/* =========================
   FUEL → OSCPV LOOK (OVERRIDES)
   Додай в КІНЕЦЬ fuel.css
========================= */

.fuel-page {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6fb;
    color: #222;
}

/* Wrap like ccalc */
.fuel-page .fuel-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 0 40px;
}

/* Cards like OSCPV */
.fuel-page .global-card,
.fuel-page .car-card,
.fuel-page .compare-card {
    background: #fff;
    border: 1px solid #e6e8ee;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 10px 30px rgba(20, 30, 60, .06);
    margin-bottom: 14px;
    position: relative;
}

/* Headings */
.fuel-page .car-head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
    color: #1f2f55;
}

/* Field labels like OSCPV */
.fuel-page .field label {
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
    color: #2b3a55;
}

/* Inputs like OSCPV */
.fuel-page .field input,
.fuel-page .field select {
    width: 100%;
    max-width: none;
    /* щоб не обрізало */
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #d4d7de;
    background: #fff;
    font-size: 13px;
    outline: none;
    color: #111827;
}

.fuel-page .field input:focus,
.fuel-page .field select:focus {
    border-color: rgba(40, 59, 105, .55);
    box-shadow: 0 0 0 3px rgba(40, 59, 105, .12);
}

/* Hint */
.fuel-page .hint {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}

/* Topbar (stable) */
.fuel-page .fuel-topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 14px 0 14px !important;
    flex-wrap: wrap !important;
}

/* ===== Buttons: pill -> OSCPV buttons ===== */
.fuel-page .pill {
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    /* замість 999px */
    border: 1px solid #d4d7de;
    background: #fff;
    cursor: pointer;
    font-weight: 900;
    font-size: 13px;
    color: #1f2f55;
    box-shadow: none;
    /* прибрали “пухкий” стиль */
    transform: none;
    transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.fuel-page .pill:hover {
    background: #f6f7fb;
    border-color: #b9c2da;
    box-shadow: 0 4px 12px rgba(31, 47, 85, .08);
    transform: none;
}

/* primary button like oscpv-btn */
.fuel-page .pill.primary {
    background: rgba(40, 59, 105, .08);
    border-color: rgba(40, 59, 105, .35);
    color: #1f2f55;
}

.fuel-page .pill.primary:hover {
    background: rgba(40, 59, 105, .14);
}

/* active mode switch button */
.fuel-page .pill.active {
    background: rgba(40, 59, 105, .08);
    border-color: rgba(40, 59, 105, .35);
    color: #1f2f55;
}

/* Actions row buttons sizing */
.fuel-page .fuel-actions .pill {
    min-width: 220px;
    flex: 1 1 220px;
}

@media (max-width: 520px) {
    .fuel-page .fuel-actions .pill {
        min-width: 0;
        flex: 1 1 100%;
    }
}

/* ===== Toggle like OSCPV (fix + clean) ===== */
.fuel-page .auto-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-weight: 900 !important;
    font-size: 13px !important;
    color: #1f2f55 !important;
    white-space: nowrap !important;
}

.fuel-page .auto-toggle input {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
}

.fuel-page .auto-ui {
    width: 42px !important;
    height: 24px !important;
    border-radius: 999px !important;
    background: #cfd6ea !important;
    position: relative !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.fuel-page .auto-ui::after {
    content: "" !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #fff !important;
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;
    transform: translateX(0) !important;
    transition: transform .18s ease !important;
}

.fuel-page .auto-toggle input:checked+.auto-ui {
    background: rgba(40, 59, 105, .55) !important;
}

.fuel-page .auto-toggle input:checked+.auto-ui::after {
    transform: translateX(18px) !important;
}

/* ===== Results like OSCPV KPI tiles ===== */
.fuel-page .result-item {
    background: #fff;
    border: 1px solid #e6e8ee;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .06);
    text-align: center;
    min-height: 64px;
}

.fuel-page .result-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 900;
    margin-bottom: 6px;
    opacity: 1;
}

.fuel-page .result-value {
    font-size: 18px;
    font-weight: 900;
    color: #111827;
}

/* Winner styling (OSCPV-like) */
.fuel-page .car-card.is-winner {
    border-color: rgba(31, 143, 82, .35);
    background: rgba(31, 143, 82, .06);
    box-shadow: 0 10px 30px rgba(16, 24, 40, .06);
    transform: none;
}

.fuel-page .car-card.is-loser {
    opacity: .92;
}

.fuel-page .winner-badge {
    background: rgba(31, 143, 82, .12);
    border: 1px solid rgba(31, 143, 82, .20);
    color: #14532d;
    font-weight: 900;
}

/* SEO/FAQ keep consistent */
.fuel-page .fuel-seo h2,
.fuel-page .fuel-faq h2 {
    color: #283b69;
    font-weight: 900;
}
/*=========================COST HIGHLIGHT (CHEAPER / EXPENSIVE)=========================*/

/* Картка авто */
.fuel-page .car-card.is-winner {
    border: 1px solid rgba(22, 101, 52, .35);
    background: linear-gradient(180deg, rgba(34, 197, 94, .08), #fff);
    box-shadow: 0 10px 30px rgba(16, 24, 40, .06);
}

/* Значення у вигіднішого авто */
.fuel-page .car-card.is-winner .result-value {
    color: #166534;
    /* зелений */
}

/* Бейдж "вигідніше" */
.fuel-page .winner-badge {
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .35);
    color: #166534;
    font-weight: 900;
}

/* Дорожче авто */
.fuel-page .car-card.is-loser {
    border: 1px solid rgba(127, 29, 29, .25);
    background: linear-gradient(180deg, rgba(239, 68, 68, .05), #fff);
}

/* Значення у дорожчого авто */
.fuel-page .car-card.is-loser .result-value {
    color: #7f1d1d;
    /* червоний */
}
/* =========================
   COMPARE BLOCK HIGHLIGHT
========================= */

/* Заголовок порівняння */
.fuel-page .compare-title {
    font-weight: 900;
}

/* Блок виграшу */
.fuel-page .compare.is-ev-win,
.fuel-page .compare.is-car1-win {
    border: 1px solid rgba(34, 197, 94, .35);
    background: linear-gradient(180deg, rgba(34, 197, 94, .07), #fff);
}

/* Блок програшу */
.fuel-page .compare.is-ice-win,
.fuel-page .compare.is-car2-win {
    border: 1px solid rgba(239, 68, 68, .25);
    background: linear-gradient(180deg, rgba(239, 68, 68, .06), #fff);
}

/* Цифри економії */
.fuel-page .compare .result-value.win {
    color: #166534;
    font-weight: 900;
}

.fuel-page .compare .result-value.lose {
    color: #7f1d1d;
    font-weight: 900;
}

/* Дельта (різниця) */
.fuel-page .compare .delta-positive {
    color: #166534;
}

.fuel-page .compare .delta-negative {
    color: #7f1d1d;
}