/* ==========================================================================
   EV Charge Calculator — Vavoom Leasing
   ========================================================================== */

.ev-calc {
    --ev-primary: #2544d7;
    --ev-primary-dark: #1c36b0;
    --ev-primary-light: #e8eeff;
    --ev-dark: #1a1a2e;
    --ev-grey: #f5f6fa;
    --ev-border: #d8dce6;
    --ev-white: #fff;
    --ev-radius: 8px;
    --ev-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;

    font-family: var(--ev-font);
    color: var(--ev-dark);
    max-width: 800px;
    margin: 0 auto;
}

.ev-calc *,
.ev-calc *::before,
.ev-calc *::after {
    box-sizing: border-box;
}

/* Steps Container */
.ev-calc__steps {
    position: relative;
}

.ev-calc__step {
    display: none;
    background: var(--ev-white);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    padding: 32px;
    margin-bottom: 16px;
}

.ev-calc__step--active {
    display: block;
}

.ev-calc__step-header {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.3;
}

.ev-calc__step-number {
    display: inline-block;
    background: var(--ev-primary);
    color: var(--ev-white);
    font-size: 13px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.ev-calc__step-body {
    margin-bottom: 24px;
}

/* Icon */
.ev-calc__icon {
    text-align: center;
    margin-bottom: 16px;
    color: var(--ev-primary);
}

.ev-calc__icon svg {
    display: inline-block;
    vertical-align: middle;
}

.ev-calc__label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
    text-align: center;
}

/* Select Dropdowns */
.ev-calc__field {
    margin-bottom: 12px;
}

.ev-calc__field--hidden {
    display: none;
}

.ev-calc__select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid var(--ev-border);
    border-radius: var(--ev-radius);
    background: var(--ev-white);
    color: var(--ev-dark);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232544d7' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.ev-calc__select:focus {
    outline: none;
    border-color: var(--ev-primary);
}

.ev-calc__select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ev-calc__error {
    color: #c00;
    font-size: 14px;
    margin-top: 8px;
}

/* Charger Radio Buttons */
.ev-calc__chargers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.ev-calc__charger-option {
    position: relative;
    cursor: pointer;
}

.ev-calc__charger-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ev-calc__charger-option span {
    display: block;
    text-align: center;
    padding: 14px 12px;
    border: 2px solid var(--ev-border);
    border-radius: var(--ev-radius);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    background: var(--ev-white);
}

.ev-calc__charger-option input:checked + span {
    background: var(--ev-primary);
    border-color: var(--ev-primary);
    color: var(--ev-white);
}

.ev-calc__charger-option:hover span {
    border-color: var(--ev-primary);
}

/* Electricity Input */
.ev-calc__input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.ev-calc__input {
    width: 120px;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid var(--ev-border);
    border-radius: var(--ev-radius);
    text-align: center;
}

.ev-calc__input:focus {
    outline: none;
    border-color: var(--ev-primary);
}

.ev-calc__input-suffix {
    font-size: 14px;
    color: #666;
}

.ev-calc__avg-btn-wrap {
    text-align: center;
}

/* Buttons */
.ev-calc__btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: var(--ev-radius);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1;
}

.ev-calc__btn--next {
    background: var(--ev-primary);
    color: var(--ev-white);
    width: 100%;
}

.ev-calc__btn--next:hover:not(:disabled) {
    background: var(--ev-primary-dark);
}

.ev-calc__btn--next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ev-calc__btn--secondary {
    background: var(--ev-grey);
    color: var(--ev-dark);
    border: 2px solid var(--ev-border);
}

.ev-calc__btn--secondary:hover {
    border-color: var(--ev-primary);
    background: var(--ev-primary-light);
}

.ev-calc__btn--offer {
    background: var(--ev-primary);
    color: var(--ev-white);
    font-size: 13px;
    padding: 10px 20px;
}

.ev-calc__btn--offer:hover {
    background: var(--ev-primary-dark);
    color: var(--ev-white);
}

.ev-calc__btn--reset {
    background: none;
    border: none;
    color: var(--ev-primary);
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 14px;
}

.ev-calc__btn--reset:hover {
    text-decoration: underline;
}

.ev-calc__step-nav {
    text-align: center;
}

/* ---- Step 4: Vehicle Card ---- */
.ev-calc__vehicle-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ev-border);
}

.ev-calc__car-img {
    width: 160px;
    height: auto;
    border-radius: var(--ev-radius);
    flex-shrink: 0;
}

.ev-calc__vehicle-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--ev-dark);
}

.ev-calc__vehicle-variant {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px;
    word-break: break-word;
    line-height: 1.4;
}

/* ---- Slider ---- */
.ev-calc__slider-wrap {
    margin-bottom: 24px;
}

.ev-calc__slider-wrap label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ev-calc__slider {
    width: 100%;
    height: 8px;
    appearance: none;
    background: var(--ev-primary-light);
    border-radius: 4px;
    outline: none;
}

.ev-calc__slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--ev-primary);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--ev-white);
    box-shadow: 0 2px 6px rgba(37, 68, 215, 0.3);
}

.ev-calc__slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--ev-primary);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--ev-white);
    box-shadow: 0 2px 6px rgba(37, 68, 215, 0.3);
}

/* ---- Result Cards Grid ---- */
.ev-calc__results-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.ev-calc__result-card {
    background: var(--ev-grey);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    padding: 16px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 90px;
}

.ev-calc__result-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666;
    margin-bottom: 6px;
    line-height: 1.3;
}

.ev-calc__result-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--ev-primary);
    line-height: 1.2;
    white-space: nowrap;
}

/* Disclaimer */
.ev-calc__disclaimer {
    font-size: 12px;
    color: #888;
    margin-top: 16px;
    line-height: 1.5;
}

/* ---- Progress Bar ---- */
.ev-calc__progress {
    background: var(--ev-white);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    padding: 16px 24px;
}

.ev-calc__progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
}

.ev-calc__progress-bar {
    background: var(--ev-primary-light);
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.ev-calc__progress-fill {
    height: 100%;
    background: var(--ev-primary);
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* ---- Responsive: Tablet ---- */
@media (max-width: 768px) {
    .ev-calc__results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---- Responsive: Mobile ---- */
@media (max-width: 600px) {
    .ev-calc__step {
        padding: 20px 16px;
    }

    .ev-calc__step-header {
        font-size: 17px;
    }

    .ev-calc__chargers {
        grid-template-columns: 1fr 1fr;
    }

    /* Vehicle card stacks vertically */
    .ev-calc__vehicle-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .ev-calc__car-img {
        width: 140px;
        margin: 0 auto;
    }

    /* 2-column card grid on mobile */
    .ev-calc__results-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .ev-calc__result-card {
        padding: 14px 8px;
    }

    .ev-calc__result-value {
        font-size: 17px;
    }

    .ev-calc__slider-wrap label {
        font-size: 13px;
    }
}

/* ---- Responsive: Small phones ---- */
@media (max-width: 380px) {
    .ev-calc__chargers {
        grid-template-columns: 1fr;
    }
}
