﻿:root {
    --bg: #EEF2F1;
    --surface: #FFFFFF;
    --ink: #12181B;
    --ink-soft: #57666B;
    --line: #D8E0DE;
    --teal: #0E7C7B;
    --teal-dark: #0A5F5E;
    --teal-tint: #E3F1F0;
    --amber: #E2A73E;
    --amber-tint: #FBF0DC;
    --brick: #C1493B;
    --brick-tint: #F8E9E7;
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

/*body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Space Grotesk',sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}*/

.mono {
    font-family: 'IBM Plex Mono',monospace;
}

.wrap {
    max-width: 840px;
    margin: 0 auto;
    padding-left:10px;
    padding-right:10px;
    /*padding: 32px 20px 80px;*/
}

/* ---- Header ---- */
header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

header h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

header p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14.5px;
}

.badge-row {
    display: flex;
    gap: 8px;
}

.brand-tag {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-soft);
}

/* ---- Stepper ---- */
.stepper {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 64px;
}

.step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--line);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Mono',monospace;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink-soft);
    transition: all .25s ease;
}

.step-node.active .step-circle {
    border-color: var(--amber);
    background: var(--amber-tint);
    color: var(--ink);
}

.step-node.done .step-circle {
    border-color: var(--teal);
    background: var(--teal);
    color: #fff;
}

.step-label {
    font-size: 14px;
    color: var(--ink-soft);
    text-align: center;
    max-width: 80px;
}

.step-node.active .step-label {
    color: var(--ink);
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--line);
    margin: 0 4px 20px;
    position: relative;
    top: -9px;
}

    .step-line.filled {
        background: var(--teal);
    }

/* ---- Section cards ---- */
.section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 16px;
    display: none;
}

.section.visible {
    display: block;
    animation: rise .3s ease;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section h2 {
    font-size: 15px;
    margin: 0 0 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section h2 .n {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 14px;
    color: var(--teal-dark);
    background: var(--teal-tint);
    border-radius: 6px;
    padding: 2px 7px;
}

/* brand cards */
.brand-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 14px;
}

.brand-card {
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    text-align: left;
    background: #fff;
    cursor: pointer;
    font-family: 'Space Grotesk',sans-serif;
    transition: border-color .15s ease, background .15s ease;
}

.brand-card:hover {
    border-color: var(--teal);
}

.brand-card.selected {
    border-color: var(--teal);
    background: var(--teal-tint);
}

.brand-card .name {
    font-size: 17px;
    font-weight: 700;
}

.brand-card .sub {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 11.5px;
    color: var(--ink-soft);
    margin-top: 3px;
}

/* model select */
select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--line);
    background: #fff;
    font-family: 'Space Grotesk',sans-serif;
    font-size: 14.5px;
    color: var(--ink);
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='%2357666B' d='M5 7l5 6 5-6z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

select:focus {
    outline: 2px solid var(--amber);
    outline-offset: 1px;
}

.field-hint {
    font-size: 12.5px;
    color: var(--ink-soft);
    margin-top: 8px;
}

/* symptom list */
.symptom-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.symptom-item {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    gap: 12px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s ease, background .15s ease;
}

.symptom-checkbox {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    cursor: pointer;
}


.symptom-item:hover {
    border-color: var(--teal);
}

.symptom-item.selected {
    border-color: var(--teal);
    background: var(--teal-tint);
}

.symptom-item .txt {
    font-size: 14px;
}

.symptom-item .part {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 11.5px;
    color: var(--teal-dark);
    background: var(--teal-tint);
    border-radius: 6px;
    padding: 3px 8px;
    white-space: nowrap;
}

.symptom-item.selected .part {
    background: var(--teal);
    color: #fff;
}

/* ---- Receipt ---- */
.receipt-wrap {
    margin-top: 6px;
}

.receipt {
    background: var(--surface);
    border: 1.5px dashed var(--ink-soft);
    border-radius: 10px;
    padding: 22px 22px 18px;
    position: relative;
}

.receipt::before, .receipt::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--bg);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.receipt::before {
    left: -9px;
}

.receipt::after {
    right: -9px;
}

.receipt-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px dashed var(--line);
    padding-bottom: 14px;
    margin-bottom: 14px;
    gap: 12px;
}

.receipt-head .brand-model .brand {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 11.5px;
    color: var(--teal-dark);
    letter-spacing: .03em;
}

.receipt-head .brand-model .model {
    font-size: 17px;
    font-weight: 700;
    margin-top: 3px;
}

.receipt-head .symptom-tag {
    font-size: 12.5px;
    color: var(--ink-soft);
    text-align: right;
    max-width: 170px;
}

.receipt-head .symptom-tag .part-name {
    display: block;
    font-family: 'IBM Plex Mono',monospace;
    font-size: 13px;
    color: var(--ink);
    font-weight: 600;
    margin-top: 2px;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 14.5px;
}

.cost-row .lbl {
    color: var(--ink-soft);
}

.cost-row .val {
    font-family: 'IBM Plex Mono',monospace;
}

.cost-row.total {
    border-top: 1.5px solid var(--ink);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 17px;
    font-weight: 700;
}

.cost-row.total .val {
    color: var(--teal-dark);
    font-size: 19px;
}

.no-data {
    background: var(--brick-tint);
    border: 1.5px dashed var(--brick);
    border-radius: 10px;
    padding: 18px;
    color: #7A2E24;
    font-size: 14.5px;
    text-align: center;
    line-height: 1.6;
}

.no-data strong {
    display: block;
    font-size: 15.5px;
    margin-bottom: 4px;
    color: var(--brick);
}

footer {
    text-align: center;
    color: var(--ink-soft);
    font-size: 14px;
    margin-top: 15px;
}

@media (max-width:520px) {
    .brand-grid {
        grid-template-columns: 1fr;
    }

    .step-label {
        display: none;
    }

    header {
        flex-direction: column;
    }
}


