/* ─── OPOCME Quiz — Sequence Styles ─── */

.opocme-sequence {
    max-width: 720px;
    margin: 32px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ── Title ─────────────────────────────────────────────────────────────────── */
.opocme-seq-title {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    text-align: center;
    margin: 0 0 28px;
}

/* ── Progress bar ───────────────────────────────────────────────────────────── */
.opocme-seq-progress {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 36px;
    gap: 0;
}

.opocme-seq-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.opocme-seq-dot-circle {
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #bbb;
    position: relative;
    transition: border-color 0.4s ease, background 0.4s ease, color 0.4s ease,
                box-shadow 0.4s ease, transform 0.3s ease;
}

.opocme-seq-dot[style*="cursor: pointer"]:hover .opocme-seq-dot-circle {
    transform: scale(1.12);
    box-shadow: 0 0 0 6px rgba(17,17,17,0.10);
}

.opocme-seq-dot.is-active .opocme-seq-dot-circle {
    border-color: #111;
    color: #111;
    box-shadow: 0 0 0 4px rgba(17,17,17,0.08);
    transform: scale(1.08);
}

.opocme-seq-dot.is-done .opocme-seq-dot-circle {
    border-color: #2d8a4e;
    background: #2d8a4e;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(45,138,78,0.12);
    transform: scale(1.0);
}

/* Checkmark (hidden by default, shown when done) */
.opocme-seq-check {
    position: absolute;
    width: 14px;
    height: 12px;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}
.opocme-seq-dot.is-done .opocme-seq-check  { opacity: 1; transform: scale(1); }
.opocme-seq-dot.is-done .opocme-seq-dot-num { opacity: 0; }

.opocme-seq-dot-num {
    transition: opacity 0.2s ease;
    position: absolute;
}

.opocme-seq-dot small {
    font-size: 11px;
    font-weight: 500;
    color: #bbb;
    white-space: nowrap;
    transition: color 0.3s ease, font-weight 0.3s ease;
    letter-spacing: 0.01em;
}

.opocme-seq-dot.is-active small,
.opocme-seq-dot.is-done  small {
    color: #333;
    font-weight: 600;
}

/* Connector line */
.opocme-seq-connector {
    flex: 1;
    min-width: 32px;
    max-width: 90px;
    height: 2px;
    background: #e0e0e0;
    margin-top: 19px;   /* vertically center with circles */
    margin-bottom: 28px;
    border-radius: 1px;
    overflow: hidden;
    position: relative;
}

.opocme-seq-connector::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #2d8a4e;
    width: 0;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.opocme-seq-connector.is-done::after {
    width: 100%;
}

@media (max-width: 480px) {
    .opocme-seq-dot small { display: none; }
    .opocme-seq-connector { min-width: 20px; }
}

/* ── Viewport multistep ─────────────────────────────────────────────────────── */
.opocme-seq-viewport {
    position: relative;
}

.opocme-seq-slot {
    display: none;
}

.opocme-seq-slot.is-active {
    display: block;
    animation: opq-step-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.opocme-seq-slot.is-exiting {
    display: block;
    animation: opq-step-out 0.25s ease forwards;
    pointer-events: none;
}

@keyframes opq-step-in {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes opq-step-out {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-28px); }
}

/* ── "Continue" CTA injected into results ───────────────────────────────────── */
.opocme-seq-continue {
    background: #111;
    border-radius: 8px;
    padding: 22px 24px;
    margin-bottom: 16px;
    text-align: center;
    animation: opq-fade-in 0.4s ease both;
}

.opocme-seq-continue p {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    margin: 0 0 14px;
    line-height: 1.5;
}

.opocme-seq-continue-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #111;
    border: none;
    padding: 13px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.opocme-seq-continue-btn:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.opocme-seq-continue-btn:active {
    transform: translateY(0);
}

/* ── Finished state ─────────────────────────────────────────────────────────── */
.opocme-seq-dot.is-active.is-last .opocme-seq-dot-circle {
    border-color: #2d8a4e;
    color: #2d8a4e;
}
