

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

button,
select,
input {
    font-family: inherit;
}

/* =========================================
                           HEADER
                        ========================================= */

.nissan-header {
    height: 82px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.header-inner {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nissan-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-divider {
    width: 1px;
    height: 38px;
    background: #d0d0d0;
}

.one-logo {
    font-size: 23px;
    font-weight: 700;
}

    .one-logo span {
        color: #c8102e;
    }

.main-navigation {
    display: flex;
    align-items: center;
    gap: 38px;
}

    .main-navigation a {
        text-decoration: none;
        color: #172033;
        font-size: 15px;
        padding: 31px 0;
        position: relative;
    }

        .main-navigation a.active {
            font-weight: 700;
        }

            .main-navigation a.active::after {
                content: "";
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
                height: 3px;
                background: #c8102e;
            }

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    font-size: 21px;
}

.garage {
    border-left: 1px solid #ddd;
    padding-left: 20px;
    font-size: 14px;
    font-weight: 600;
}

.mobile-menu {
    display: none;
}


/* =========================================
                           CONTAINER
                        ========================================= */

.container-emi {
    max-width: 1400px;
    margin: auto;
    padding: 35px 5% 60px;
}

.breadcrumb {
    color: #697586;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: .5px;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.page-description {
    color: #697586;
    font-size: 16px;
    margin-bottom: 32px;
}


/* =========================================
                           CALCULATOR
                        ========================================= */

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.calculator-card {
    border: 1px solid #d9dee5;
    border-radius: 8px;
    padding: 28px;
    background: #fff;
}

.card-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 28px;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
}

.card-description {
    color: #697586;
    font-size: 13px;
    margin-top: 5px;
    line-height: 1.4;
}


/* =========================================
                           FORM
                        ========================================= */

.form-group {
    margin-bottom: 23px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 9px;
}

.form-control {
    width: 100%;
    height: 48px;
    border: 1px solid #cfd5dc;
    border-radius: 6px;
    padding: 0 14px;
    background: #fff;
    font-size: 15px;
    color: #111827;
    outline: none;
}

    .form-control:focus {
        border-color: #c8102e;
        box-shadow: 0 0 0 2px rgba(200, 16, 46, .08);
    }


/* =========================================
                           DOWN PAYMENT
                        ========================================= */

.price-input {
    height: 48px;
    display: flex;
    border: 1px solid #cfd5dc;
    border-radius: 6px;
    overflow: hidden;
    transition: .2s;
}

    .price-input:focus-within {
        border-color: #c8102e;
        box-shadow: 0 0 0 2px rgba(200, 16, 46, .08);
    }

.currency-symbol {
    width: 48px;
    background: #f0f2f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

.price-input input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 0 14px;
    font-size: 16px;
}

.minimum-payment {
    color: #697586;
    font-size: 11px;
    margin-top: 7px;
}

    .minimum-payment strong {
        color: #c8102e;
    }

.payment-error {
    display: none;
    color: #c8102e;
    font-size: 12px;
    margin-top: 6px;
}


/* =========================================
                           SLIDER
                        ========================================= */

.slider-group {
    margin-bottom: 42px;
}

.slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.slider-label {
    font-size: 15px;
    font-weight: 700;
}

.slider-value {
    background: #c8102e;
    color: #fff;
    border-radius: 5px;
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 700;
}

input[type="range"] {
    width: 100%;
    height: 5px;
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient( to right, #c8102e 0%, #c8102e 50%, #dfe4e9 50%, #dfe4e9 100% );
    border-radius: 10px;
    outline: none;
}

    input[type="range"]::-webkit-slider-thumb {
        appearance: none;
        -webkit-appearance: none;
        width: 25px;
        height: 25px;
        border-radius: 50%;
        background: #fff;
        border: 4px solid #c8102e;
        cursor: pointer;
    }

    input[type="range"]::-moz-range-thumb {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #fff;
        border: 4px solid #c8102e;
        cursor: pointer;
    }

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    color: #9aa2ad;
    font-size: 12px;
}


/* =========================================
                           EMI SUMMARY
                        ========================================= */

.summary-card {
    margin-top: 25px;
    border: 1px solid #f0cbd2;
    background: linear-gradient( 90deg, #fffafa, #fff );
    border-radius: 8px;
    padding: 27px;
}

.summary-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffe5e9;
    color: #c8102e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    font-weight: bold;
}

.summary-title {
    font-size: 20px;
    font-weight: 700;
}

.summary-description {
    color: #697586;
    font-size: 13px;
    margin-top: 5px;
}

.summary-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 240px;
    align-items: center;
}

.summary-item {
    min-height: 72px;
    padding: 0 24px;
    border-right: 1px solid #ddd;
}

    .summary-item:first-child {
        padding-left: 0;
    }

.summary-label {
    color: #697586;
    font-size: 13px;
    margin-bottom: 9px;
}

.summary-value {
    color: #111827;
    font-size: 24px;
    font-weight: 700;
}

.summary-variant {
    color: #697586;
    font-size: 12px;
    margin-top: 5px;
}

.summary-buttons {
    padding-left: 24px;
}

.btn {
    width: 100%;
    height: 45px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.btn-primary {
    background: #c8102e;
    border: 1px solid #c8102e;
    color: #fff;
}

    .btn-primary:hover {
        background: #a90d26;
    }

.btn-secondary {
    margin-top: 10px;
    background: #fff;
    color: #c8102e;
    border: 1px solid #c8102e;
}

    .btn-secondary:hover {
        background: #fff4f5;
    }


/* =========================================
                           DISCLAIMER
                        ========================================= */

.disclaimer {
    display: flex;
    gap: 9px;
    margin-top: 14px;
    color: #7a8494;
    font-size: 11px;
    line-height: 1.5;
}

.info-icon {
    width: 17px;
    height: 17px;
    min-width: 17px;
    border-radius: 50%;
    background: #788392;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}


/* =========================================
                           TABLET
                        ========================================= */

@media(max - width: 1000px) {
    .main-navigation {
        display: none;
    }

    .mobile-menu {
        display: block;
        font-size: 22px;
    }

    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .summary-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .summary-item {
        border-right: 0;
        border-bottom: 1px solid #ddd;
        padding: 10px 0 18px;
    }

    .summary-buttons {
        grid-column: span 2;
        padding: 10px 0 0;
    }
}



@media(max - width: 600px) {
    .nissan-header {
        height: 68px;
        padding: 0 16px;
    }

    
    .logo-divider {
        height: 28px;
    }

    .one-logo {
        font-size: 18px;
    }

    .header-actions {
        gap: 12px;
    }

    .header-icon {
        font-size: 18px;
    }

    .garage {
        display: none;
    }

    .container {
        padding: 25px 16px 40px;
    }

    .breadcrumb {
        font-size: 10px;
    }

    .page-title {
        font-size: 30px;
        line-height: 1.1;
    }

    .page-description {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 22px;
    }

    .calculator-grid {
        gap: 15px;
    }

    .calculator-card {
        padding: 20px 16px;
    }

    .card-heading {
        margin-bottom: 22px;
    }

    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .card-title {
        font-size: 17px;
    }

    .card-description {
        font-size: 12px;
    }

    .summary-card {
        padding: 20px 16px;
        margin-top: 15px;
    }

    .summary-title {
        font-size: 17px;
    }

    .summary-description {
        font-size: 12px;
    }

    .summary-content {
        grid-template-columns: 1fr 1fr;
        gap: 0 15px;
    }

    .summary-item {
        min-height: 75px;
        padding: 10px 0;
    }

    .summary-value {
        font-size: 18px;
    }

    .summary-label {
        font-size: 11px;
    }

    .summary-buttons {
        grid-column: span 2;
    }

    .btn {
        height: 48px;
    }
}

/* =========================================================
   RESPONSIVE CSS
   TABLET + MOBILE
========================================================= */


/* =========================================================
   TABLET
   1024px and below
========================================================= */

@media (max-width: 1024px) {

    .nissan-header {
        padding: 0 30px;
    }

    .container {
        padding: 30px;
    }

    .main-navigation {
        gap: 22px;
    }

        .main-navigation a {
            font-size: 14px;
        }

    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .summary-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .summary-item {
        border-right: 0;
        border-bottom: 1px solid #e1e1e1;
        padding: 18px 15px;
    }

        .summary-item:first-child {
            padding-left: 15px;
        }

    .summary-buttons {
        grid-column: span 2;
        padding: 20px 15px 0;
    }
}


/* =========================================================
   MOBILE
   767px and below
========================================================= */

@media (max-width: 767px) {

    /* -----------------------------------------------------
       GLOBAL
    ----------------------------------------------------- */

    body {
        width: 100%;
        overflow-x: hidden;
        background: #ffffff;
    }

    /* -----------------------------------------------------
       HEADER
    ----------------------------------------------------- */

    .nissan-header {
        height: 64px;
        padding: 0 16px;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #ffffff;
    }

    .header-inner {
        width: 100%;
    }

    .logo-section {
        gap: 10px;
    }

    .mobile-menu {
        display: block;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
        margin-right: 2px;
    }

    .nissan-logo {
        width: 54px;
        height: 34px;
        font-size: 7px;
        border-width: 1.5px;
    }

    .logo-divider {
        height: 27px;
        margin: 0 2px;
    }

    .one-logo {
        font-size: 17px;
        letter-spacing: -0.3px;
    }

    .main-navigation {
        display: none;
    }

    .header-actions {
        gap: 10px;
    }

    .header-icon {
        font-size: 18px;
    }

    .garage {
        display: none;
    }


    /* -----------------------------------------------------
       MAIN CONTAINER
    ----------------------------------------------------- */

    .container {
        width: 100%;
        max-width: 100%;
        padding: 22px 16px 40px;
        margin: 0;
    }


    /* -----------------------------------------------------
       BREADCRUMB
    ----------------------------------------------------- */

    .breadcrumb {
        font-size: 10px;
        line-height: 1.4;
        margin-bottom: 10px;
        letter-spacing: .3px;
    }


    /* -----------------------------------------------------
       PAGE TITLE
    ----------------------------------------------------- */

    .page-title {
        font-size: 28px;
        line-height: 1.15;
        letter-spacing: -0.5px;
        margin-bottom: 9px;
    }

    .page-description {
        font-size: 13px;
        line-height: 1.55;
        margin-bottom: 24px;
        max-width: 100%;
    }


    /* -----------------------------------------------------
       CALCULATOR GRID
    ----------------------------------------------------- */

    .calculator-grid {
        display: block;
        width: 100%;
    }


    /* -----------------------------------------------------
       CALCULATOR CARD
    ----------------------------------------------------- */

    .calculator-card {
        width: 100%;
        padding: 20px 16px;
        margin-bottom: 15px;
        border-radius: 8px;
    }


    /* -----------------------------------------------------
       CARD HEADING
    ----------------------------------------------------- */

    .card-heading {
        display: flex;
        align-items: center;
        gap: 11px;
        margin-bottom: 22px;
    }

    .card-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 17px;
    }

    .card-title {
        font-size: 17px;
        line-height: 1.3;
    }

    .card-description {
        font-size: 11px;
        line-height: 1.45;
        margin-top: 3px;
    }


    /* -----------------------------------------------------
       FORM
    ----------------------------------------------------- */

    .form-group {
        margin-bottom: 20px;
    }

    .form-label {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .form-control {
        width: 100%;
        height: 48px;
        min-height: 48px;
        font-size: 14px;
        border-radius: 5px;
        padding: 0 12px;
    }


    /* -----------------------------------------------------
       DOWN PAYMENT
    ----------------------------------------------------- */

    .price-input {
        width: 100%;
        height: 48px;
        border-radius: 5px;
    }

    .currency-symbol {
        width: 45px;
        min-width: 45px;
        font-size: 17px;
    }

    .price-input input {
        font-size: 15px;
        padding: 0 12px;
    }

    .minimum-payment {
        font-size: 10px;
        line-height: 1.4;
        margin-top: 6px;
    }

    .payment-error {
        font-size: 11px;
        line-height: 1.4;
    }


    /* -----------------------------------------------------
       SLIDER
    ----------------------------------------------------- */

    .slider-group {
        margin-bottom: 38px;
    }

    .slider-header {
        margin-bottom: 20px;
    }

    .slider-label {
        font-size: 13px;
        line-height: 1.3;
    }

    .slider-value {
        padding: 6px 9px;
        font-size: 11px;
        border-radius: 4px;
        white-space: nowrap;
    }


    /* Slider track */

    input[type="range"] {
        width: 100%;
        height: 5px;
    }


        /* Slider thumb */

        input[type="range"]::-webkit-slider-thumb {
            width: 23px;
            height: 23px;
            border-width: 3px;
        }

        input[type="range"]::-moz-range-thumb {
            width: 17px;
            height: 17px;
            border-width: 3px;
        }


    /* -----------------------------------------------------
       RANGE LABELS
    ----------------------------------------------------- */

    .range-labels {
        margin-top: 13px;
        font-size: 10px;
        color: #9ca3af;
    }

        .range-labels span {
            text-align: center;
        }


    /* -----------------------------------------------------
       EMI SUMMARY
    ----------------------------------------------------- */

    .summary-card {
        width: 100%;
        margin-top: 15px;
        padding: 20px 16px;
        border-radius: 8px;
    }


    /* Summary heading */

    .summary-heading {
        display: flex;
        align-items: center;
        gap: 11px;
        margin-bottom: 22px;
    }

    .summary-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 17px;
    }

    .summary-title {
        font-size: 17px;
        line-height: 1.3;
    }

    .summary-description {
        font-size: 11px;
        line-height: 1.45;
        margin-top: 3px;
    }


    /* -----------------------------------------------------
       SUMMARY VALUES
    ----------------------------------------------------- */

    .summary-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 0 15px;
    }

    .summary-item {
        width: 100%;
        min-height: 78px;
        padding: 14px 0;
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
    }

        .summary-item:first-child {
            padding-left: 0;
        }

    .summary-label {
        font-size: 10px;
        line-height: 1.35;
        margin-bottom: 7px;
        color: #697586;
    }

    .summary-value {
        font-size: 18px;
        line-height: 1.25;
        white-space: nowrap;
    }

    .summary-variant {
        font-size: 10px;
        margin-top: 4px;
    }


    /* -----------------------------------------------------
       BUTTONS
    ----------------------------------------------------- */

    .summary-buttons {
        grid-column: span 2;
        width: 100%;
        padding: 20px 0 0;
    }

    .btn {
        /*width: 100%;
        height: 48px;
        min-height: 48px;
        font-size: 13px;
        border-radius: 5px;*/
        width: 100%;
        height: 48px;
        min-height: 48px;
        font-size: 13px;
        border-radius: 5px;
        display: flex;
        justify-content: center;
        align-items: center;
        text-decoration: none;
    }

    .btn-secondary {
        margin-top: 10px;
    }


    /* -----------------------------------------------------
       DISCLAIMER
    ----------------------------------------------------- */

    .disclaimer {
        margin-top: 13px;
        gap: 7px;
        font-size: 10px;
        line-height: 1.5;
    }

    .info-icon {
        width: 16px;
        height: 16px;
        min-width: 16px;
        font-size: 9px;
    }
}


/* =========================================================
   SMALL MOBILE
   480px and below
========================================================= */

@media (max-width: 480px) {

    .nissan-header {
        height: 60px;
        padding: 0 13px;
    }

    .mobile-menu {
        font-size: 20px;
    }

    .nissan-logo {
        width: 50px;
        height: 31px;
        font-size: 6px;
    }

    .one-logo {
        font-size: 16px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-icon {
        font-size: 17px;
    }


    /* Main */

    .container {
        padding: 20px 13px 35px;
    }

    .page-title {
        font-size: 26px;
    }

    .page-description {
        font-size: 12px;
    }


    /* Cards */

    .calculator-card {
        padding: 18px 14px;
    }

    .card-title {
        font-size: 16px;
    }

    .card-description {
        font-size: 10px;
    }


    /* Slider */

    .slider-label {
        font-size: 12px;
    }

    .slider-value {
        font-size: 10px;
        padding: 5px 8px;
    }

    .range-labels {
        font-size: 9px;
    }


    /* Summary */

    .summary-card {
        padding: 18px 14px;
    }

    .summary-title {
        font-size: 16px;
    }

    .summary-value {
        font-size: 16px;
    }

    .summary-label {
        font-size: 9px;
    }

    .summary-variant {
        font-size: 9px;
    }
}


/* =========================================================
   VERY SMALL DEVICES
   360px and below
========================================================= */

@media (max-width: 360px) {

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .nissan-header {
        padding: 0 10px;
    }

    .one-logo {
        font-size: 14px;
    }

    .nissan-logo {
        width: 46px;
    }

    .page-title {
        font-size: 24px;
    }

    .calculator-card {
        padding: 16px 12px;
    }

    .summary-card {
        padding: 16px 12px;
    }

    .summary-content {
        gap: 0 10px;
    }

    .summary-value {
        font-size: 15px;
    }
}