/* =============================================================
   VIN Decoder page (/vindecoder) — AutoWoop styling.
   ============================================================= */

/* The shared .container wrapper is skipped for this page via the
   $this->params['fullWidth'] flag, so the hero spans full width. */

.vindecoder-page {
    color: #0c131d;
}

/* ---- Hero ---- */
.vin-hero {
    background: #0b73fe;
    color: #fff;
    padding: 48px 20px 56px;
    text-align: center;
}

.vin-hero-inner {
    max-width: 760px;
    margin: 0 auto;
}

.vin-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.vin-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.vin-lead {
    font-size: 17px;
    line-height: 1.6;
    opacity: 0.92;
    margin: 0 auto 26px;
    max-width: 620px;
}

.vin-form-card {
    /* background: #fff; */
    border-radius: 16px;
    padding: 16px;
    /* box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18); */
}

.vin-form {
    display: flex;
    gap: 8px;
}

.vin-form input {
    flex: 1;
    min-width: 0;
    height: 54px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px 16px;
    font-size: 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #0c131d;
}

.vin-form input:focus {
    outline: none;
    border-color: #0b73fe;
    box-shadow: 0 0 0 3px rgba(11, 115, 254, 0.15);
}

.vin-form button {
    height: 54px;
    padding: 0 32px;
    background: #fa742d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vin-form button:hover {
    background: #e8641f;
}

.vin-hint {
    margin-top: 12px;
    font-size: 13px;
    /* color: #6b7280; */
    text-align: left;
}

.vin-example {
    font-family: "SFMono-Regular", Menlo, Consolas, monospace;
    background: #f0f5ff;
    color: #0b4bb3;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* ---- Main content ---- */
.vin-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 36px 20px 48px;
}

.vin-main h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.vin-main h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 20px 0 8px 0;
}

.vin-main p {
    color: #4a5568;
    line-height: 1.7;
}

.info-section,
.vin-structure,
.vin-seo,
.faq-section {
    margin-bottom: 40px;
}

/* ---- SEO text block ---- */
.vin-seo h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

.vin-seo p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 14px;
}

.vin-seo-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 24px;
}

.vin-seo-list li {
    position: relative;
    padding-left: 22px;
    color: #4a5568;
    line-height: 1.6;
}

.vin-seo-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0b73fe;
}

@media (max-width: 768px) {
    .vin-seo-list {
        grid-template-columns: 1fr;
    }
}

/* ---- Info cards ---- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.info-card {
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 12px;
    padding: 22px 18px;
    text-align: center;
}

.info-card .icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf2ff;
    border-radius: 12px;
}

.info-card .icon svg {
    width: 26px;
    height: 26px;
    color: #0b73fe;
}

.info-card h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
}

.info-card p {
    margin: 0;
    font-size: 14px;
}

/* ---- Structure list ---- */
.vin-structure ol,
.vin-structure ul {
    color: #4a5568;
    line-height: 1.7;
    padding-left: 20px;
}

.vin-structure li {
    margin-bottom: 6px;
}

/* ---- FAQ ---- */
.faq-item {
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 16px 44px 16px 16px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #0b73fe;
    transition: transform 0.2s ease;
}

.faq-question.active::after {
    content: "\2212";
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
    padding: 0 16px;
}

.faq-answer.active {
    max-height: 400px;
    padding: 0 16px 16px;
}

.faq-answer p {
    margin: 0;
    font-size: 14px;
}

/* ---- Recent checks ---- */
.recent-section {
    margin-bottom: 40px;
}

.recent-section .section-header h2 {
    margin-bottom: 12px;
}

#recentChecks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recent-check {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 10px;
    text-decoration: none;
    color: #1a1a1a;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.recent-check:hover {
    border-color: #0b73fe;
    background: #f7faff;
}

.recent-check .car-title {
    font-weight: 600;
}

.recent-check .car-vin {
    font-family: "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 13px;
    color: #6b7280;
}

/* ---- Results ---- */
.vin-results {
    margin-bottom: 32px;
}

.vin-status {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.vin-status-error {
    color: #ef4444;
}

.vin-sticker-header {
    background: linear-gradient(180deg, #0b73fe 0%, #0a63da 100%);
    color: #fff;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 16px;
}

.vin-sticker-header h2 {
    color: #fff;
    margin: 0 0 4px 0;
    font-size: 22px;
}

.vin-sticker-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-family: "SFMono-Regular", Menlo, Consolas, monospace;
    letter-spacing: 0.5px;
}

.vin-section {
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.vin-section-title {
    padding: 12px 16px;
    background: #f7faff;
    border-bottom: 1px solid #eceff3;
}

.vin-section-title h3 {
    margin: 0;
    font-size: 15px;
    color: #0b73fe;
}

.vin-section-content {
    padding: 6px 16px 12px;
}

.vin-field {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #f2f4f7;
}

.vin-field:last-child {
    border-bottom: none;
}

.vin-field .field-label {
    color: #6b7280;
    font-size: 14px;
}

.vin-field .field-value {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
    text-align: right;
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    .vin-hero {
        padding: 32px 16px 40px;
    }
    .vin-hero h1 {
        font-size: 28px;
    }
    .vin-form {
        flex-direction: column;
    }
    .vin-form button {
        width: 100%;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .vin-main {
        padding: 24px 16px 36px;
    }
}
