* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #DD1D21 0%, #8B0000 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #DD1D21 0%, #FF3333 100%);
    padding: 30px 20px;
    text-align: center;
    color: white;
}

.logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 15px;
}

header h1 {
    font-size: 24px;
    font-weight: 600;
}

main {
    padding: 30px 20px;
}

.oil-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
}

.form-group select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.form-group select:focus {
    outline: none;
    border-color: #DD1D21;
    box-shadow: 0 0 0 3px rgba(221, 29, 33, 0.1);
}

.btn-submit {
    background: linear-gradient(135deg, #DD1D21 0%, #FF3333 100%);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(221, 29, 33, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.result-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.result-card h2 {
    color: #DD1D21;
    font-size: 20px;
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-weight: 600;
    color: #666;
}

.info-row .value {
    color: #333;
    font-weight: 500;
}

.oil-recommendations {
    margin-bottom: 25px;
}

.oil-recommendations h2 {
    color: #DD1D21;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.oil-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s;
}

.oil-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.oil-card.primary {
    border-color: #DD1D21;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #DD1D21 0%, #FF3333 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.oil-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.oil-header h3 {
    color: #DD1D21;
    font-size: 20px;
    margin: 0;
}

.viscosity {
    background: #DD1D21;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.oil-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.detail-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.oil-description {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    margin-bottom: 25px;
}

.no-results p {
    color: #666;
    font-size: 16px;
}

.tips {
    background: #fff9e6;
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #DD1D21;
    margin-bottom: 25px;
}

.tips h3 {
    color: #DD1D21;
    font-size: 18px;
    margin-bottom: 15px;
}

.tips ul {
    list-style: none;
    padding-left: 0;
}

.tips li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.tips li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #DD1D21;
    font-weight: bold;
}

.btn-back {
    display: block;
    text-align: center;
    background: white;
    color: #DD1D21;
    padding: 15px;
    border: 2px solid #DD1D21;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-back:hover {
    background: #DD1D21;
    color: white;
}

footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
    }

    .oil-details {
        grid-template-columns: 1fr;
    }

    .oil-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 15px;
    }

    header {
        padding: 20px 15px;
    }

    header h1 {
        font-size: 20px;
    }

    .logo {
        max-width: 100px;
    }

    main {
        padding: 20px 15px;
    }

    .oil-header h3 {
        font-size: 18px;
    }
}
