* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.control-group {
    margin-bottom: 1.5rem;
}
.control-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 1.1rem;
    background-color: #fff;
    transition: border-color 0.3s;
}
.control-group input:focus {
    border-color: #2c3e50;
    outline: none;
}
.control-group input:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}
button {
    padding: 0.6rem 1.2rem;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    transition: background-color 0.2s;
}
button:hover {
    background-color: #1a252f;
}
.hidden {
    display: none !important;
}
/* 3-Column Grid setup */
.manufacturer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.manufacturer-card {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    border: 1px solid #eee;
}
.manufacturer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    border-color: #ddd;
}
.manufacturer-card img {
    max-width: 60px;
    max-height: 60px;
    margin-bottom: 0.8rem;
    object-fit: contain;
}
.manufacturer-card span {
    font-weight: 600;
    font-size: 0.95rem;
    color: #2c3e50;
}
/* List layout for models */
.model-list {
    list-style: none;
    margin-top: 1rem;
}
.model-list li {
    background: #fff;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1.05rem;
}
.model-list li:hover {
    background: #f8f9fa;
    color: #2c3e50;
}
.model-list li:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-top: 1px solid #eee;
}
.model-list li:last-child {
    border-bottom: 1px solid #eee;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}
.results-container {
    margin-top: 1rem;
}
.result-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.result-card h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}
.result-card p {
    margin-bottom: 1rem;
    color: #444;
    font-size: 1.1rem;
}
.image-container {
    margin-bottom: 2rem;
}
.image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 0.8rem;
    border: 1px solid #ddd;
}
footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #777;
    font-size: 0.9rem;
}
/* Responsive adjustments */
@media (max-width: 600px) {
    .manufacturer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 400px) {
    .manufacturer-grid {
        grid-template-columns: 1fr;
    }
}
