/* =====================================================
   Instant Pricing Engine (homepage)  -  all classes: pe-*
   Font: inherits the site font (Arya)
   ===================================================== */
.pe-section {
    --pe-accent: #16d248;
    --pe-accent-soft: #eafff0;
    --pe-ink: #111;
    --pe-muted: #6b7280;
    --pe-line: #e6e8ee;
    --pe-bg: #f7f8fb;
    padding: 70px 0;
    background: var(--pe-bg);
    font-family: inherit;
    color: var(--pe-ink);
}

.pe-head {
    margin-bottom: 34px;
}
.pe-kicker {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    color: #0c9a33;
    background: var(--pe-accent-soft);
    border-radius: 50px;
    padding: 5px 14px;
    margin-bottom: 12px;
}
.pe-head h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}
.pe-head p {
    color: var(--pe-muted);
    margin: 8px 0 0;
}

.pe-card {
    background: #fff;
    border: 1px solid var(--pe-line);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 34px rgba(20, 30, 60, 0.06);
}
.pe-board {
    position: sticky;
    top: 90px;
    min-height: 380px;
}

/* ---------- steps ---------- */
.pe-eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--pe-muted);
    text-transform: uppercase;
    margin-bottom: 18px;
}
.pe-step {
    margin-bottom: 24px;
}
.pe-step[hidden] {
    display: none;
}
.pe-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}
.pe-num {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 50%;
    background: var(--pe-ink);
    color: #fff;
    font-size: 12px;
    line-height: 24px;
    text-align: center;
}
.pe-sub {
    font-size: 14px;
    font-weight: 700;
    margin: 16px 0 8px;
}
.pe-sub small {
    font-weight: 400;
    color: var(--pe-muted);
}

/* pills (category / brand) */
.pe-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.pe-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--pe-line);
    background: #fff;
    border-radius: 50px;
    padding: 9px 20px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: var(--pe-ink);
    cursor: pointer;
    transition: 0.2s;
}
.pe-pill img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.pe-pill:hover {
    border-color: #111;
}
.pe-pill.is-on {
    background: var(--pe-ink);
    border-color: var(--pe-ink);
    color: #fff;
}

/* select */
.pe-select {
    width: 100%;
    height: 48px;
    border: 1.5px solid var(--pe-line);
    border-radius: 12px;
    padding: 0 14px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: var(--pe-ink);
}
.pe-select:focus {
    outline: none;
    border-color: #111;
}

/* single-select option cards */
.pe-opts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.pe-opt {
    text-align: left;
    border: 1.5px solid var(--pe-line);
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    font-family: inherit;
    cursor: pointer;
    transition: 0.2s;
}
.pe-opt b {
    display: block;
    font-size: 15px;
}
.pe-opt span {
    display: block;
    font-size: 12.5px;
    color: var(--pe-muted);
    margin-top: 3px;
    line-height: 1.35;
}
.pe-opt:hover {
    border-color: #111;
}
.pe-opt.is-on {
    border-color: #0c9a33;
    background: var(--pe-accent-soft);
    box-shadow: 0 0 0 3px rgba(22, 210, 72, 0.18);
}

/* yes / no rows */
.pe-yn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--pe-line);
}
.pe-yn:last-child {
    border-bottom: 0;
}
.pe-yn > span {
    font-size: 14.5px;
}
.pe-seg {
    display: inline-flex;
    flex: 0 0 auto;
    border: 1.5px solid var(--pe-line);
    border-radius: 50px;
    overflow: hidden;
}
.pe-seg button {
    border: 0;
    background: #fff;
    padding: 7px 18px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    color: var(--pe-muted);
}
.pe-seg button.is-on {
    background: var(--pe-ink);
    color: #fff;
}

/* chips (accessories / issues / lens) */
.pe-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.pe-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--pe-line);
    background: #fff;
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: 0.2s;
    text-align: left;
}
.pe-chip img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}
.pe-chip:hover {
    border-color: #111;
}
.pe-chip.is-on {
    border-color: #0c9a33;
    background: var(--pe-accent-soft);
}
.pe-chip.is-on::before {
    content: "\2713";
    font-weight: 700;
    color: #0c9a33;
}
.pe-chip.is-bad.is-on {
    border-color: #e03131;
    background: #fff0f0;
}
.pe-chip.is-bad.is-on::before {
    color: #e03131;
    content: "\2715";
}

.pe-lens {
    margin-top: 14px;
    border: 1.5px solid var(--pe-line);
    border-radius: 12px;
    padding: 4px 14px;
}
.pe-lens summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 14.5px;
    padding: 10px 0;
    list-style-position: inside;
}
.pe-lens .pe-chips {
    max-height: 220px;
    overflow-y: auto;
    padding: 4px 0 12px;
}

/* CTA */
.pe-cta {
    width: 100%;
    height: 54px;
    margin-top: 8px;
    background: #111;
    color: #fff;
    border: 2px solid #111;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-family: inherit;
    cursor: pointer;
    transition: 0.25s;
}
.pe-cta:hover:not(:disabled) {
    background: var(--pe-accent);
    border-color: var(--pe-accent);
    color: #111;
}
.pe-cta:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pe-cta-link {
    display: block;
    line-height: 50px;
    text-align: center;
    text-decoration: none;
    color: #fff;
}
.pe-cta-link:hover {
    background: var(--pe-accent);
    border-color: var(--pe-accent);
    color: #111;
}

/* ---------- board ---------- */
.pe-standby {
    text-align: center;
    padding: 40px 10px;
}
.pe-standby .pe-ico {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: var(--pe-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.pe-standby h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.pe-standby p {
    color: var(--pe-muted);
    font-size: 14.5px;
    margin: 0;
}
.pe-preview img {
    width: 100%;
    max-height: 190px;
    object-fit: contain;
    margin: 4px 0 14px;
}
.pe-preview .pe-upto {
    display: inline-block;
    margin-top: 12px;
    background: var(--pe-accent-soft);
    color: #0c7a29;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
}

.pe-r-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.pe-r-top img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    background: #f7f8fb;
    border-radius: 14px;
    padding: 6px;
}
.pe-r-top small {
    color: var(--pe-muted);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.pe-r-top h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 2px 0 0;
    line-height: 1.25;
}
.pe-r-price {
    background: #111;
    color: #fff;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 16px;
}
.pe-r-price small {
    display: block;
    font-size: 12px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    opacity: 0.7;
}
.pe-amount {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--pe-accent);
}
.pe-lines {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}
.pe-lines li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--pe-line);
    font-size: 14px;
}
.pe-lines li b.is-plus {
    color: #0c9a33;
}
.pe-lines li b.is-minus {
    color: #e03131;
}
.pe-note {
    text-align: center;
    font-size: 13px;
    color: var(--pe-muted);
    margin: 12px 0 0;
}
.pe-link-btn {
    background: none;
    border: 0;
    color: var(--pe-muted);
    text-decoration: underline;
    font-size: 13.5px;
    font-family: inherit;
    cursor: pointer;
    display: block;
    margin: 12px auto 0;
}

.pe-sorry {
    text-align: center;
    padding: 20px 6px;
}
.pe-sorry h4 {
    font-weight: 700;
    margin-bottom: 8px;
}
.pe-sorry p {
    color: var(--pe-muted);
}
.pe-error {
    background: #fff0f0;
    color: #b42318;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 12px;
}
.pe-success {
    text-align: center;
    padding: 26px 8px;
}
.pe-success .pe-tick {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--pe-accent);
    color: #111;
    font-size: 30px;
    line-height: 62px;
    margin: 0 auto 14px;
    font-weight: 700;
}

/* lead form */
.pe-form-lead label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin: 10px 0 4px;
}
.pe-form-lead input,
.pe-form-lead textarea {
    width: 100%;
    border: 1.5px solid var(--pe-line);
    border-radius: 10px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14.5px;
}
.pe-form-lead input:focus,
.pe-form-lead textarea:focus {
    outline: none;
    border-color: #111;
}
.pe-form-lead .pe-hp {
    position: absolute;
    left: -9999px;
    height: 0;
    width: 0;
    opacity: 0;
}
.pe-form-lead small {
    color: var(--pe-muted);
}

.pe-loading {
    text-align: center;
    padding: 60px 0;
    color: var(--pe-muted);
}
.pe-spin {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid #e6e8ee;
    border-top-color: #111;
    margin: 0 auto 12px;
    animation: peSpin 0.8s linear infinite;
}
@keyframes peSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 991px) {
    .pe-board {
        position: static;
        min-height: 0;
    }
    .pe-section {
        padding: 48px 0;
    }
    .pe-head h2 {
        font-size: 28px;
    }
}
@media (max-width: 575px) {
    .pe-card {
        padding: 20px 16px;
        border-radius: 16px;
    }
    .pe-yn {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .pe-amount {
        font-size: 34px;
    }
}
