/* ============================================================
   Pentax TT Pump Selector — wizard styles (Direction A)
   Palette: navy #0e2644, red accent #c8102e
   ============================================================ */
.ptx-wizard-root {
    --pentax-navy: #0e2644;
    --pentax-navy-2: #1a3a66;
    --pentax-red: #c8102e;
    --ptx-success: #58c088;
    --ptx-border: #e1e8f3;
    --ptx-bg: #f6f9ff;
    color: #0f1a2b;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.ptx-wizard-root *, .ptx-wizard-root *::before, .ptx-wizard-root *::after {
    box-sizing: border-box;
}
.ptx-wizard-root [hidden] { display: none !important; }

.ptx-frame {
    background: linear-gradient(180deg, var(--ptx-bg) 0%, #fff 40%);
    border: 1px solid var(--ptx-border);
    border-radius: 14px;
    overflow: hidden;
    max-width: 880px;
    margin: 0 auto;
}

.ptx-topbar {
    background: var(--pentax-navy);
    color: #fff;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.ptx-brand { font-weight: 700; font-size: 14px; letter-spacing: 1px; }
.ptx-brand .ptx-accent { color: var(--pentax-red); }

.ptx-steps { display: flex; gap: 0; }
.ptx-step { display: flex; align-items: center; gap: 6px; padding: 0 12px;
    font-size: 12px; color: #93a3bf; }
.ptx-step.is-active { color: #fff; font-weight: 600; }
.ptx-step.is-done { color: var(--ptx-success); }
.ptx-step-dot { width: 22px; height: 22px; border-radius: 50%;
    background: var(--pentax-navy-2); display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; }
.ptx-step.is-active .ptx-step-dot { background: var(--pentax-red); }
.ptx-step.is-done .ptx-step-dot { background: var(--ptx-success); color: #fff; }

.ptx-body { padding: 32px 36px; }

.ptx-recap { display: flex; gap: 10px; flex-wrap: wrap;
    background: #f3f6fc; padding: 10px 14px;
    border-left: 3px solid var(--pentax-red); border-radius: 4px;
    margin-bottom: 24px; font-size: 13px; }
.ptx-recap-pill { background: #fff; padding: 4px 10px;
    border-radius: 12px; border: 1px solid #dbe1ec; }
.ptx-recap-pill.is-empty { color: #9ca3af; background: transparent; }

.ptx-question { font-size: 24px; font-weight: 700;
    color: var(--pentax-navy); margin: 0 0 6px; }
.ptx-help { color: #6b7280; font-size: 14px; margin-bottom: 22px; }

.ptx-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ptx-option { position: relative; border: 2px solid var(--ptx-border);
    border-radius: 12px; overflow: hidden; cursor: pointer;
    background: #fff;
    min-height: 180px; transition: transform .12s, border-color .12s, box-shadow .12s; }
.ptx-option:hover { transform: translateY(-1px); }
.ptx-option.is-selected { border-color: var(--pentax-red);
    box-shadow: 0 6px 18px rgba(200, 16, 46, 0.12); }

.ptx-option-scene { position: relative; height: 120px;
    background: linear-gradient(180deg, #cfdff1 0%, #a9c3e4 70%, #78a26b 70%, #68925b 100%);
    display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; }
.ptx-option-scene svg { color: var(--pentax-navy); }

.ptx-option-footer { background: #fff; padding: 12px 14px;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--pentax-navy); font-weight: 700; }
.ptx-option-check { width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid #d1d5db; position: relative; }
.ptx-option.is-selected .ptx-option-check {
    background: var(--pentax-red); border-color: var(--pentax-red); }
.ptx-option.is-selected .ptx-option-check::after { content: "";
    position: absolute; left: 5px; top: 2px; width: 5px; height: 10px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.ptx-nav { display: flex; justify-content: space-between;
    margin-top: 28px; padding-top: 18px; border-top: 1px solid #eef2f9; }
.ptx-btn { padding: 11px 20px; border-radius: 8px; border: 1px solid #d1d5db;
    background: #fff; color: var(--pentax-navy); font-weight: 600;
    font-size: 14px; cursor: pointer; }
.ptx-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.ptx-btn.ptx-btn-primary { background: var(--pentax-red);
    border-color: var(--pentax-red); color: #fff; }

/* Results */
.ptx-results { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ptx-result { border: 1px solid var(--ptx-border); border-radius: 10px;
    overflow: hidden; background: #fff; }
.ptx-result-img { width: 100%; aspect-ratio: 16/9; display: block;
    background: #dbeafe; object-fit: cover; }
.ptx-result-body { padding: 14px 16px; }
.ptx-result-model { font-size: 20px; font-weight: 800;
    color: var(--pentax-navy); margin-bottom: 8px; }
.ptx-result-specs { font-size: 13px; color: #374151; line-height: 1.6; }
.ptx-result-pdf { display: inline-block; margin-top: 10px;
    font-size: 13px; font-weight: 700; color: var(--pentax-red);
    text-decoration: none; }

/* Zero-match */
.ptx-zero-match { background: #fffbeb; border: 1px solid #fcd34d;
    border-radius: 10px; padding: 24px; text-align: center;
    color: #78350f; line-height: 1.7; }
.ptx-zero-match strong { color: #92400e; }
.ptx-zero-match a { color: var(--pentax-red); font-weight: 700; }

.ptx-noscript, .ptx-wizard-placeholder {
    border: 1px dashed var(--ptx-border); padding: 18px; border-radius: 10px;
    color: #374151; text-align: center; }

/* Responsive */
@media (max-width: 640px) {
    .ptx-body { padding: 24px 20px; }
    .ptx-options, .ptx-results { grid-template-columns: 1fr; }
    .ptx-topbar { flex-direction: column; align-items: flex-start; }
    .ptx-steps { font-size: 11px; }
    .ptx-step { padding: 0 6px; }
}
