:root {
    --maruti-blue: #004a8d;
    --maruti-red: #ed1c24;
    --maruti-light: #f5f5f5;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: #f9f9f9;
    margin: 0;
    padding: 20px;
}

.swift-emi-calculator {
    max-width: 450px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.calculator-header {
    background: var(--maruti-blue);
    color: white;
    padding: 15px 20px;
    text-align: center;
    position: relative;
}

.calculator-header .logo {
    height: 30px;
    margin-bottom: 10px;
}

.calculator-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.calculator-body {
    padding: 20px;
}

.input-slider-group {
    margin-bottom: 25px;
}

.input-slider-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.slider-container {
    position: relative;
}

.slider-container input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #ddd;
    border-radius: 5px;
    outline: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--maruti-blue);
    border-radius: 50%;
    cursor: pointer;
}

.slider-value {
    position: absolute;
    top: -30px;
    right: 0;
    background: var(--maruti-blue);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background: #f9f9f9;
}

.tenure-display {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tenure-display select {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
}

.emi-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 30px;
}

.result-box {
    background: var(--maruti-light);
    padding: 12px;
    border-radius: 6px;
    text-align: center;
}

.result-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.result-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--maruti-blue);
}

.special-offer {
    background: #f0f7ff;
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.offer-badge {
    display: inline-block;
    background: var(--maruti-red);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 8px;
}

.offer-text {
    font-size: 14px;
    color: #333;
    margin: 8px 0;
}

.offer-btn {
    background: var(--maruti-red);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 5px;
    transition: background 0.3s;
}

.offer-btn:hover {
    background: #c51118;
}

.car-image {
    padding: 15px;
    text-align: center;
}

.car-image img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #eee;
}

@media (max-width: 480px) {
    .swift-emi-calculator {
        margin: 0;
    }
    .emi-results {
        grid-template-columns: 1fr;
    }
}