/* ========================================
   Wax Diagnostic Tool — Styles
   ======================================== */

/* Hero override — warm gradient for wax tool */
.wax-tool .tool-hero {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
}

/* ── Progress Bar ── */
.dx-progress {
    max-width: 480px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dx-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--slate-200, #e2e8f0);
    border-radius: 3px;
    overflow: hidden;
}

.dx-progress-fill {
    height: 100%;
    width: 0%;
    background: #ef4444;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.dx-progress-label {
    font-size: 0.8rem;
    color: var(--slate-500, #64748b);
    white-space: nowrap;
    font-weight: 600;
}

/* ── Quiz Container ── */
.dx-quiz {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ── Question Step ── */
.dx-step {
    display: none;
    animation: dxFadeIn 0.35s ease;
}

.dx-step.is-active {
    display: block;
}

@keyframes dxFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dx-question-label {
    font-size: 0.85rem;
    color: #ef4444;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}

.dx-question-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--slate-800, #1e293b);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* ── Option Buttons ── */
.dx-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dx-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border: 2px solid var(--slate-200, #e2e8f0);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-size: 1rem;
    color: var(--slate-700, #334155);
    line-height: 1.5;
}

.dx-option:hover {
    border-color: #ef4444;
    background: #fef2f2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

.dx-option.is-selected {
    border-color: #ef4444;
    background: #fef2f2;
    color: #b91c1c;
    font-weight: 600;
}

.dx-option-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.dx-option-body {
    flex: 1;
}

.dx-option-title {
    font-weight: 700;
    display: block;
}

.dx-option-desc {
    font-size: 0.82rem;
    color: var(--slate-500, #64748b);
    margin-top: 0.15rem;
    display: block;
}

.dx-option.is-selected .dx-option-desc {
    color: #ef4444;
}

/* ── Navigation Buttons ── */
.dx-nav {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.dx-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 2px solid var(--slate-300, #cbd5e1);
    border-radius: 8px;
    color: var(--slate-500, #64748b);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.dx-btn-back:hover {
    border-color: var(--slate-400, #94a3b8);
    color: var(--slate-700, #334155);
}

/* ── Result Area ── */
.dx-result {
    display: none;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1rem;
    animation: dxFadeIn 0.4s ease;
}

.dx-result.is-active {
    display: block;
}

.dx-result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dx-result-label {
    display: inline-block;
    background: #ef4444;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.dx-result-type {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--slate-900, #0f172a);
    margin-bottom: 0.75rem;
}

.dx-result-desc {
    font-size: 0.95rem;
    color: var(--slate-600, #475569);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}

/* ── Brand Section ── */
.dx-brand-section {
    margin-bottom: 2rem;
}

.dx-brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-700, #334155);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--slate-100, #f1f5f9);
}

/* ── Product Card ── */
.dx-product-card {
    background: white;
    border: 1px solid var(--slate-100, #f1f5f9);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s;
}

.dx-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dx-product-info {
    margin-bottom: 0.75rem;
}

.dx-product-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--slate-800, #1e293b);
    margin-bottom: 0.25rem;
}

.dx-product-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dx-product-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ef4444;
}

.dx-product-feature {
    font-size: 0.82rem;
    color: var(--slate-500, #64748b);
}

.dx-product-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dx-link-official,
.dx-link-amazon {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.dx-link-official {
    background: var(--slate-100, #f1f5f9);
    color: var(--slate-700, #334155);
    border: 1px solid var(--slate-200, #e2e8f0);
}

.dx-link-official:hover {
    background: var(--slate-200, #e2e8f0);
}

.dx-link-amazon {
    background: #ff9900;
    color: #111;
    border: 1px solid #e88b00;
}

.dx-link-amazon:hover {
    background: #e88b00;
}

/* ── Result Actions ── */
.dx-result-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.dx-btn-share,
.dx-btn-retry {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.dx-btn-share {
    background: #ef4444;
    color: white;
}

.dx-btn-share:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.dx-btn-retry {
    background: white;
    color: var(--slate-600, #475569);
    border: 2px solid var(--slate-300, #cbd5e1);
}

.dx-btn-retry:hover {
    border-color: var(--slate-400, #94a3b8);
    color: var(--slate-800, #1e293b);
}

/* ── Share Canvas (hidden) ── */
.dx-share-canvas {
    display: none;
}

/* ── App CTA (inline in result) ── */
.dx-app-cta {
    margin: 1.5rem 0 2rem;
}

.dx-app-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #fef2f2, #fff7ed);
    border: 1px solid #fecaca;
    border-radius: 12px;
}

.dx-app-cta-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dx-app-cta-text strong {
    font-size: 0.95rem;
    color: var(--slate-800, #1e293b);
}

.dx-app-cta-text span {
    font-size: 0.8rem;
    color: var(--slate-500, #64748b);
}

.dx-app-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #ef4444;
    color: white;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.dx-app-cta-btn:hover {
    background: #dc2626;
}

/* ── Section Headings (Best / Other) ── */
.dx-section-heading {
    margin-bottom: 1rem;
}

.dx-section-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

.dx-badge-best {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.dx-badge-other {
    background: var(--slate-100, #f1f5f9);
    color: var(--slate-600, #475569);
    border: 1px solid var(--slate-200, #e2e8f0);
}

.dx-best-section {
    margin-bottom: 2rem;
}

.dx-other-section {
    margin-bottom: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--slate-100, #f1f5f9);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .dx-question-title {
        font-size: 1.2rem;
    }

    .dx-result-type {
        font-size: 1.4rem;
    }

    .dx-product-links {
        flex-direction: column;
    }

    .dx-link-official,
    .dx-link-amazon {
        justify-content: center;
    }

    .dx-result-actions {
        flex-direction: column;
    }

    .dx-btn-share,
    .dx-btn-retry {
        justify-content: center;
        width: 100%;
    }

    .dx-app-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .dx-app-cta-btn {
        width: 100%;
        justify-content: center;
    }
}
