body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
}

.container {
    max-width: 1000px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
}

.input-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.input-section {
    width: 48%;
    min-width: 300px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input {
    width: 95%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo a {
    display: inline-block;
}

.logo img {
    max-width: 200px;
    transition: opacity 0.15s ease;
}

.logo a:hover img,
.logo a:focus img {
    opacity: 0.8;
}

.brands-section {
    margin-top: 28px;
    padding: 16px 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-align: center;
}

.brands-section h3 {
    margin: 0 0 8px;
    font-size: 0.95em;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.brands-section p {
    margin: 0;
    font-size: 0.85em;
    color: #4b5563;
    line-height: 1.7;
}

.cta-section {
    margin-top: 32px;
    padding: 24px 20px;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: #f9fafb;
    border-radius: 6px;
    text-align: center;
}

.cta-section h2 {
    margin: 0 0 8px;
    color: #f9fafb;
    font-size: 1.25em;
}

.cta-section p {
    margin: 0 0 16px;
    font-size: 0.95em;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    padding: 10px 24px;
    background: #dc2626;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1em;
    transition: background 0.15s ease, transform 0.15s ease;
}

.cta-button:hover,
.cta-button:focus {
    background: #b91c1c;
    transform: translateY(-1px);
}

.cta-meta {
    margin-top: 14px !important;
    font-size: 0.85em !important;
    color: #d1d5db;
}

.cta-meta a {
    color: #f9fafb;
    text-decoration: underline;
}

footer a {
    color: inherit;
    text-decoration: underline;
}

footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8em;
    color: #666;
}

.red-text {
    color: red;
    font-weight: bold;
}

.green-text {
    color: green;
    font-weight: bold;
}

.compliance-message {
    text-align: center;
    margin-top: 20px;
    font-size: 1.2em;
}

.canvas-controls {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
    font-size: 0.95em;
}

.canvas-controls label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    cursor: pointer;
}

#tireCanvas {
    display: block;
    margin: 20px auto;
    background-color: #fafafa;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }

    .input-section {
        width: 100%;
    }
}
