/* Valve & cartridge identification page.
   Reuses the --navy / --orange / --green brand variables and .btn / .hero /
   .eyebrow / .section-title / .help-banner / details+summary rules already
   defined in vendor/helpcenter.css, so this file only adds the extra
   layout pieces (tile picker, contact form panel, guide cards) that page
   doesn't have. */

.vi-quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

    .vi-quicklinks a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        padding: 12px 16px;
        background: rgba(255,255,255,0.13);
        border: 1px solid rgba(255,255,255,0.22);
        color: #ffffff;
        font-weight: 800;
        font-size: 14px;
        transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
    }

        .vi-quicklinks a:hover {
            transform: translateY(-2px);
            background: rgba(255,255,255,0.2);
            box-shadow: 0 10px 22px rgba(16,34,49,0.18);
        }

.vi-selector {
    background: var(--white);
    border: 1px solid #e3e8ee;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    margin-bottom: 48px;
}

.vi-tile-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.vi-tile {
    text-decoration: none;
    border: 1px solid #e3e8ee;
    border-radius: 16px;
    background: linear-gradient(180deg,#fff,#fbfcfd);
    padding: 14px;
    transition: .18s ease;
    display: block;
}

    .vi-tile:hover {
        transform: translateY(-3px);
        border-color: var(--orange);
        box-shadow: 0 12px 22px rgba(16,34,49,0.09);
    }

.vi-tile-img {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background: var(--grey);
    border: 1px solid #e3e8ee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
}

    .vi-tile-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 8px;
    }

.vi-placeholder {
    color: #9aa5b1;
    font-size: 12px;
    font-weight: 800;
}

.vi-tile .vi-tag {
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--orange-dark);
    font-weight: 900;
    font-size: 11px;
    margin-bottom: 4px;
}

.vi-tile strong {
    display: block;
    font-size: 14px;
    line-height: 1.15;
    color: var(--navy);
}

.vi-form-shell {
    background: linear-gradient(135deg,#2F5E7A 0%,#224A63 45%,#183448 100%);
    border-radius: var(--radius);
    box-shadow: 0 20px 45px rgba(16,34,49,.28);
    overflow: hidden;
    margin-bottom: 56px;
    scroll-margin-top: 90px;
}

.vi-form-head {
    padding: 28px 36px;
    border-bottom: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

    .vi-form-head h2 {
        color: #fff;
        margin: 0 0 8px;
        font-size: clamp(28px, 4vw, 38px);
        line-height: 1.08;
        letter-spacing: -0.03em;
    }

    .vi-form-head p {
        margin: 0;
        color: #dce6ee;
        max-width: 640px;
    }

.vi-email-card {
    min-width: 250px;
    background: rgba(255,255,255,.96);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

    .vi-email-card span {
        display: block;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .08em;
        color: var(--muted);
        font-weight: 800;
    }

    .vi-email-card a {
        font-size: 17px;
        font-weight: 900;
        color: var(--navy);
        text-decoration-color: var(--orange);
        text-decoration-line: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 4px;
    }

.vi-form-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    background: var(--white);
}

.vi-form-area {
    padding: 36px;
}

.vi-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.vi-form-area label {
    display: block;
    margin-bottom: 18px;
}

    .vi-form-area label span {
        display: block;
        font-size: 12px;
        font-weight: 800;
        color: var(--muted);
        margin-bottom: 7px;
    }

.vi-form-area input,
.vi-form-area textarea {
    width: 100%;
    border: 1px solid #d8dee5;
    border-radius: 12px;
    background: var(--grey);
    padding: 13px 15px;
    font: inherit;
    outline: none;
}

    .vi-form-area input:focus,
    .vi-form-area textarea:focus {
        border-color: var(--orange);
        box-shadow: 0 0 0 3px rgba(242,140,40,0.18);
    }

.vi-form-area textarea {
    min-height: 170px;
    resize: vertical;
}

.vi-confirm {
    max-width: 420px;
}

.vi-upload {
    border: 2px dashed #f3c088;
    background: #fff7ee;
    border-radius: 16px;
    padding: 22px;
    text-align: center;
    margin-bottom: 18px;
}

.vi-upload-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid #e3e8ee;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 900;
    color: var(--orange);
}

.vi-upload h3 {
    margin: 0 0 4px;
    font-size: 18px;
    color: var(--navy);
}

.vi-upload p {
    margin: 0 auto 12px;
    max-width: 560px;
    color: var(--muted);
    font-size: 14px;
}

.vi-upload input[type="file"] {
    font-size: 13px;
}

.vi-upload-hint {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.vi-photo-error {
    margin: 12px 0 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fdeeec;
    border: 1px solid #f5c6bf;
    color: #b3261e;
    font-size: 13px;
    text-align: left;
}

.vi-photo-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 14px;
}

.vi-photo-thumb {
    width: 84px;
    height: 84px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e3e8ee;
    background: var(--white);
}

    .vi-photo-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.vi-note {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 18px;
}

.vi-form-message {
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 18px;
}

.vi-form-message-success {
    background: #e9fbf1;
    border: 1px solid #bdeed2;
    color: #167a45;
}

.vi-form-message-error {
    background: #fdeeec;
    border: 1px solid #f5c6bf;
    color: #b3261e;
}

.vi-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.vi-side {
    background: var(--grey);
    border-left: 1px solid #e3e8ee;
    padding: 36px 28px;
}

.vi-side-card {
    background: var(--white);
    border: 1px solid #e3e8ee;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(16,34,49,.05);
    margin-bottom: 16px;
}

    .vi-side-card h3,
    .vi-side-card p {
        margin-top: 0;
        color: var(--navy);
    }

.vi-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 14px;
}

    .vi-checklist li {
        margin: 10px 0;
    }

        .vi-checklist li::before {
            content: "\2713";
            color: var(--orange);
            font-weight: 900;
            margin-right: 8px;
        }

.vi-side-card.vi-help {
    background: #fff2e3;
    border-color: #ffe1bb;
}

    .vi-side-card.vi-help p {
        color: #6b4a1f;
    }

.vi-guides h2 {
    font-size: clamp(30px, 4.5vw, 44px);
    color: var(--navy);
    letter-spacing: -0.04em;
}

.vi-guide-card {
    background: var(--white);
    border: 1px solid #e3e8ee;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(16,34,49,.05);
    margin-bottom: 24px;
    scroll-margin-top: 90px;
}

.vi-guide-head {
    padding: 22px 24px;
    border-bottom: 1px solid #eef1f3;
    background: linear-gradient(90deg,#fff,#fbfcfd);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

    .vi-guide-head h3 {
        margin: 0;
        font-size: 22px;
        line-height: 1.15;
        color: var(--navy);
    }

.vi-guide-number {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    background: var(--navy);
    color: #fff;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.vi-guide-body {
    padding: 24px;
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 24px;
}

.vi-guide-images {
    display: grid;
    gap: 14px;
}

.vi-diagram {
    min-height: 180px;
    border-radius: 14px;
    border: 1px solid #e3e8ee;
    background: var(--grey);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
}

    .vi-diagram img {
        max-width: 100%;
        max-height: 220px;
        object-fit: contain;
    }

.vi-diagram-placeholder {
    min-height: 180px;
    border-radius: 14px;
    border: 2px dashed #d8dee5;
    background: #fbfcfd;
    display: grid;
    place-items: center;
    color: #9aa5b1;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    padding: 18px;
}

.vi-guide-text {
    background: var(--grey);
    border: 1px solid #eef1f3;
    border-radius: 14px;
    padding: 22px;
    color: #3a4550;
    white-space: pre-line;
}

.vi-back-form {
    margin-top: 20px;
    border-top: 1px solid #eef1f3;
    padding-top: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

    .vi-back-form span {
        color: var(--muted);
        font-size: 14px;
    }

@media (max-width: 980px) {
    .vi-form-main, .vi-guide-body {
        grid-template-columns: 1fr;
    }

    .vi-tile-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vi-form-row {
        grid-template-columns: 1fr;
    }

    .vi-side {
        border-left: 0;
        border-top: 1px solid #e3e8ee;
    }

    .vi-form-area, .vi-side {
        padding: 26px;
    }
}

@media (max-width: 560px) {
    .vi-tile-grid {
        grid-template-columns: 1fr;
    }

    .vi-selector {
        padding: 18px;
        border-radius: 16px;
    }
}
