* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 2rem 1rem;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

.mode-selector {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    text-align: center;
}

.mode-selector h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.mode-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.mode-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    background: #f8f9fa;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mode-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.mode-btn.active {
    background: #667eea;
    color: white;
    border-color: #5a6fd8;
}

.section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.section h2 {
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.hidden {
    display: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

button[type="submit"],
#compare-vehicles {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

button[type="submit"]:hover,
#compare-vehicles:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.vehicle-inputs {
    margin-bottom: 2rem;
}

.vehicle-input-group {
    margin-bottom: 1rem;
}

.vehicle-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

.vehicle-input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.user-context {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.user-context h3 {
    margin-bottom: 1rem;
    color: #333;
}

.mini-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mini-form select {
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

#loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#results-content {
    margin-top: 1rem;
}

.vehicle-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.vehicle-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.vehicle-card.recommended {
    border-color: #28a745;
    background: #f8fff9;
}

.vehicle-card.recommended::before {
    content: "🏆 RECOMMENDED";
    background: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    float: right;
}

.vehicle-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.vehicle-msrp {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.vehicle-summary {
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pros, .cons {
    padding: 1rem;
    border-radius: 8px;
}

.pros {
    background: #f0f9ff;
    border: 1px solid #bee3f8;
}

.cons {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.pros h4, .cons h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.pros h4 {
    color: #1e40af;
}

.cons h4 {
    color: #dc2626;
}

.pros ul, .cons ul {
    list-style: none;
    padding-left: 0;
}

.pros li::before {
    content: "✓ ";
    color: #22c55e;
    font-weight: bold;
}

.cons li::before {
    content: "✗ ";
    color: #ef4444;
    font-weight: bold;
}

.vehicle-recommendation {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 1rem;
    color: #92400e;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .mode-buttons {
        flex-direction: column;
    }
    
    .mode-btn {
        width: 100%;
    }
    
    .mini-form {
        grid-template-columns: 1fr;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
}