/* Consistent heights for select-boxes */
.select-box .list.year-make-model {
    min-height: 170px;
    max-height: 170px;
    overflow-y: auto;
}
.select-box .list.region-submodel-engine {
    min-height: 120px;
    max-height: 120px;
    overflow-y: auto;
}
/* Shared grid layout for selection panels */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* 4-column grid layout (e.g., Region/SubModel/Engine/WHI Engine in one row) */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 25px; /* space below previous grid row */
}
@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}
/* Dropdown selected style for year dropdown */
.dropdown-selected {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    padding: 10px 16px;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 0;
    min-width: 80px;
    display: inline-block;
}
/* Input row and group styles from primary.html */
.input-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}
.input-group {
    flex: 1;
}
.input-label {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 6px;
    font-weight: 500;
}
/* Label for select boxes */
.select-label {
    font-size: 0.95rem;
    font-weight: 500;
}
/* Inline input + button row for search */
.input-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-inline .input-label {
    display: inline-block;
    margin: 0;
    white-space: nowrap;
}

.input-inline input[type="text"] {
    flex: 0 0 320px; /* narrower part description field */
    width: 320px;
    max-width: 100%;
}

.input-inline .btn-submit {
    margin-top: 0;
}
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 10px;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.btn-submit {
    margin-top: 8px;
    padding: 8px 14px;
    border-radius: var(--radius);
    background: var(--primary);
    color: white;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}
.btn-submit:hover {
    opacity: 0.9;
}
/* Centered form action row (e.g., submit button on error page) */
.form-actions {
    text-align: center;
    margin-top: 10px;
}
@media (max-width: 600px) {
    .input-row {
        flex-direction: column;
    }
}
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Noto+Sans:wght@300;400;500;600&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary: #1e7be9;
    --border: #d8e1ec;
    --bg: #f7f9fc;
    --text: #1e2a37;
    --radius: 10px;
    --hover: #eef5ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Outfit", "Noto Sans", "Roboto", sans-serif;
}

body {
    background: var(--bg);
    padding: 40px 15px;
    display: flex;
    justify-content: center;
}

.wrapper {
    width: 100%;
    max-width: 1040px;
}

.header {
    position: relative;
    margin-bottom: 25px;
    padding-left: 60px; /* space for logo on the left */
}

.header-content {
    text-align: center;
}

.header-logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: auto;
    width: auto;
}

.header h1 {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 600;
}

.small-note {
    margin-top: 6px;
    font-size: 1rem;
    opacity: 0.8;
}

.btn-secondary {
    margin-top: 15px;
    display: inline-block;
    padding: 8px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--hover);
}

.panel {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.panel-title {
    font-weight: 500;
    margin-bottom: 12px;
}

.list {
    list-style: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    margin-top: 10px;
}

.list li {
    padding: 12px 14px;
    font-size: 0.95rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s ease;
}

.list li:last-child {
    border-bottom: none;
}

.list li:hover {
    background: var(--hover);
}

.list li.selected {
    background: var(--primary);
    color: #ffffff;
}

.footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: #6c7a89;
}

/* Main selection page (main.html) */
.wrapper {
    width: 100%;
    max-width: 1040px;
}

.header {
    position: relative;
    margin-bottom: 25px;
    padding-left: 60px; /* space for logo on the left */
}

.header-content {
    text-align: center;
}

.header-logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: auto;
    width: auto;
}

.header h1 {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 600;
}

.small-note {
    margin-top: 6px;
    font-size: 1rem;
    opacity: 0.8;
}

@media (max-width: 600px) {
    .header {
        padding-left: 0;
        text-align: center;
    }

    .header-logo {
        position: static;
        transform: none;
        display: block;
        margin: 0 auto 8px auto;
    }
}

.btn-secondary {
    margin-top: 15px;
    display: inline-block;
    padding: 8px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--hover);
}

.panel {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.panel-title {
    font-weight: 500;
    margin-bottom: 12px;
}

.list {
    list-style: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    margin-top: 10px;
}

.list li {
    padding: 12px 14px;
    font-size: 0.95rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s ease;
}

.list li:last-child {
    border-bottom: none;
}

.list li:hover {
    background: var(--hover);
}

.list li.selected {
    background: var(--primary);
    color: #ffffff;
}

/* Blog / table page styles (home.html) */
.blog-wrapper {
    width: 100%;
    max-width: 900px;
}

.blog-title {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.blog-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.blog-table th,
.blog-table td {
    padding: 10px 12px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.blog-table th {
    font-weight: 600;
    background: #f0f4fb;
}

.blog-table tr:last-child td {
    border-bottom: none;
}
