.he-vin-decoder {
    max-width: 980px;
    margin: 32px auto;
}

.he-vin-decoder__header {
    margin-bottom: 22px;
}

.he-vin-decoder__header h2 {
    margin-bottom: 8px;
}

.he-vin-decoder__form {
    padding: 24px;
    border: 1px solid #d9dce1;
    border-radius: 14px;
    background: #f7f8fa;
}

.he-vin-decoder__form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.he-vin-decoder__controls {
    display: flex;
    gap: 12px;
}

.he-vin-decoder__controls input {
    flex: 1;
    min-width: 0;
    min-height: 50px;
    padding: 11px 14px;
    border: 1px solid #bfc5cc;
    border-radius: 8px;
    background: #fff;
    font-family: monospace;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.he-vin-decoder__controls button {
    min-height: 50px;
    padding: 11px 22px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.he-vin-decoder__controls button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.he-vin-decoder__hint {
    margin: 10px 0 0;
    font-size: 14px;
}

.he-vin-decoder__status {
    min-height: 26px;
    margin: 16px 0;
    font-weight: 600;
}

.he-vin-decoder__results {
    margin-top: 24px;
}

.he-vin-result-heading,
.he-vin-result-section {
    margin-bottom: 20px;
    padding: 22px;
    border: 1px solid #d9dce1;
    border-radius: 12px;
    background: #fff;
}

.he-vin-result-heading h2 {
    margin: 4px 0;
}

.he-vin-result-vin {
    margin: 0;
    font-family: monospace;
    font-weight: 700;
    letter-spacing: 1px;
}

.he-vin-result-section h3 {
    margin-top: 0;
}

.he-vin-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
}

.he-vin-result-row {
    padding: 12px;
    border-bottom: 1px solid #e6e8eb;
}

.he-vin-result-row dt {
    margin-bottom: 3px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.he-vin-result-row dd {
    margin: 0;
}

.he-vin-match-list {
    margin: 0;
    padding-left: 20px;
}

.he-vin-match-list li {
    margin-bottom: 12px;
}

.he-vin-match-list a {
    display: block;
    font-weight: 700;
}

.he-vin-match-list span {
    display: block;
    margin-top: 2px;
    font-size: 14px;
}

.he-vin-result-disclaimer,
.he-vin-decoder__notice {
    padding: 18px;
    border-left: 4px solid currentColor;
    background: #f7f8fa;
}

@media (max-width: 700px) {
    .he-vin-decoder__controls {
        display: block;
    }

    .he-vin-decoder__controls button {
        width: 100%;
        margin-top: 10px;
    }

    .he-vin-result-grid {
        grid-template-columns: 1fr;
    }
}

/* Local Kia-Engines.com database matches */
.he-vin-local-match small {
    display: block;
    margin-top: 5px;
    color: #555;
    line-height: 1.45;
}

.he-vin-local-source {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f3f4f6;
    font-size: 14px;
}

/* =========================================================
   Kia Engines — Refined VIN Decoder
   ========================================================= */

.he-vin-decoder {
    max-width: 980px;
    margin: 36px auto;
}

.he-vin-decode__header {
    margin-bottom: 24px;
}

.he-vin-decode__header h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.he-vin-decode__header p {
    max-width: 720px;
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.65;
}

.he-vin-decoder__form {
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.he-vin-decoder__form label {
    display: block;
    margin-bottom: 9px;
    color: #111827;
    font-size: 14px;
    font-weight: 750;
}

.he-vin-decoder__controls {
    display: flex;
    gap: 10px;
}

.he-vin-decoder__controls input {
    min-width: 0;
    min-height: 52px;
    flex: 1 1 auto;
    padding: 13px 15px;
    color: #111827;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 17px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    outline: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.he-vin-decoder__controls input:focus {
    border-color: #d61f3a;
    box-shadow: 0 0 0 3px rgba(214, 31, 58, 0.14);
}

.he-vin-decoder__controls input::placeholder {
    color: #94a3b8;
    letter-spacing: normal;
}

.he-vin-decoder__controls button {
    min-height: 52px;
    padding: 12px 22px;
    color: #ffffff;
    background: #d61f3a;
    border: 1px solid #d61f3a;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background 0.18s ease,
        transform 0.18s ease;
}

.he-vin-decoder__controls button:hover,
.he-vin-decoder__controls button:focus {
    background: #b91832;
    transform: translateY(-1px);
}

.he-vin-decoder__controls button:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

.he-vin-decoder__hint {
    margin: 11px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.he-vin-decoder__status {
    min-height: 26px;
    margin: 16px 0;
    color: #334155;
    font-size: 14px;
    font-weight: 650;
}

.he-vin-decoder__results {
    margin-top: 24px;
}

.he-vin-result-heading,
.he-vin-result-section {
    margin-bottom: 20px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.05);
}

.he-vin-result-heading {
    border-top: 4px solid #d61f3a;
}

.he-vin-result-heading h2 {
    margin: 4px 0 8px;
    color: #111827;
    font-size: 28px;
    line-height: 1.2;
}

.he-vin-result-vin {
    margin: 0;
    color: #475569;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.he-vin-result-section h3 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 20px;
    line-height: 1.25;
}

.he-vin-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border: 1px solid #edf1f5;
    border-radius: 9px;
    overflow: hidden;
}

.he-vin-result-row {
    padding: 14px;
    background: #ffffff;
    border-bottom: 1px solid #edf1f5;
}

.he-vin-result-row:nth-child(odd) {
    background: #f8fafc;
}

.he-vin-result-row dt {
    margin-bottom: 4px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.he-vin-result-row dd {
    margin: 0;
    color: #111827;
    font-size: 14px;
    line-height: 1.45;
}

.he-vin-match-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.he-vin-match-list li {
    margin-bottom: 12px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
}

.he-vin-match-list li:last-child {
    margin-bottom: 0;
}

.he-vin-match-list a {
    display: block;
    color: #b91832;
    font-weight: 750;
    text-decoration: none;
}

.he-vin-match-list a:hover,
.he-vin-match-list a:focus {
    color: #8f1025;
    text-decoration: underline;
}

.he-vin-match-list span,
.he-vin-local-match small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.he-vin-local-source {
    margin: 16px 0 0;
    padding: 12px 14px;
    color: #475569;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 13px;
}

.he-vin-result-disclaimer,
.he-vin-decoder__notice {
    padding: 18px 20px;
    color: #475569;
    background: #fff8e7;
    border: 1px solid #f2d894;
    border-left: 5px solid #d7a21a;
    border-radius: 9px;
    line-height: 1.65;
}

.he-vin-decoder__notice {
    margin-top: 24px;
}

@media (max-width: 700px) {
    .he-vin-decoder {
        margin: 26px auto;
    }

    .he-vin-decoder__form {
        padding: 22px;
    }

    .he-vin-decoder__controls {
        display: grid;
        gap: 10px;
    }

    .he-vin-decoder__controls button {
        width: 100%;
    }

    .he-vin-result-grid {
        grid-template-columns: 1fr;
    }

    .he-vin-result-heading,
    .he-vin-result-section {
        padding: 20px;
    }
}

