/* ==============================
   Eckho Welcome Wizard — Onboarding Styles
   Scoped exclusively to .eckho-wizard-* classes.
   No collisions with existing ragteck-saas.css rules.
   @since 9.9.25
   ============================== */

/* ── Backdrop ─────────────────────────────────────────────────────────────── */
.eckho-wizard-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: eckhoWizardFadeIn 0.25s ease;
}

.eckho-wizard-backdrop.eckho-wizard-fade-out {
    animation: eckhoWizardFadeOut 0.25s ease forwards;
}

@keyframes eckhoWizardFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes eckhoWizardFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.eckho-wizard-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 36px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    animation: eckhoWizardSlideUp 0.28s ease;
}

@keyframes eckhoWizardSlideUp {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ── Progress dots ────────────────────────────────────────────────────────── */
.eckho-wizard-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}

.eckho-wizard-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    transition: background 0.2s ease, transform 0.2s ease;
}

.eckho-wizard-dot--active {
    background: #009688;
    transform: scale(1.25);
}

/* ── Step content ─────────────────────────────────────────────────────────── */
.eckho-wizard-step {
    width: 100%;
    opacity: 1;
    transition: opacity 0.15s ease;
}

.eckho-wizard-step--fade-out {
    opacity: 0;
}

.eckho-wizard-illustration {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 20px;
    display: block;
}

.eckho-wizard-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
    line-height: 1.3;
}

.eckho-wizard-body {
    font-size: 15px;
    color: #374151;
    line-height: 1.6;
    margin: 0 0 28px;
}

/* ── Step 2 visual flow row ──────────────────────────────────────────────── */
.eckho-wizard-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    width: 100%;
}

.eckho-wizard-flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.eckho-wizard-flow-icon {
    font-size: 28px;
    line-height: 1;
    display: block;
    background: #f0faf9;
    border-radius: 8px;
    padding: 10px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eckho-wizard-flow-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.eckho-wizard-flow-arrow {
    font-size: 16px;
    color: #d1d5db;
    margin-bottom: 18px;
    flex-shrink: 0;
}

/* ── Navigation row ───────────────────────────────────────────────────────── */
.eckho-wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    margin-top: 4px;
}

/* Right-side button group: Skip + Next/Finish sit together */
.eckho-wizard-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.eckho-wizard-btn {
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
    line-height: 1;
    white-space: nowrap;
}

.eckho-wizard-btn--primary {
    background: #009688;
    color: #ffffff;
}

.eckho-wizard-btn--primary:hover {
    background: #00796b;
}

.eckho-wizard-btn--secondary {
    background: #f3f4f6;
    color: #374151;
}

.eckho-wizard-btn--secondary:hover {
    background: #e5e7eb;
}

.eckho-wizard-btn--ghost {
    background: transparent;
    color: #9ca3af;
    padding: 10px 12px;
}

.eckho-wizard-btn--ghost:hover {
    color: #6b7280;
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
    .eckho-wizard-card {
        padding: 32px 20px 24px;
        border-radius: 8px;
        max-height: 92vh;
    }

    .eckho-wizard-title {
        font-size: 19px;
    }

    .eckho-wizard-body {
        font-size: 14px;
    }

    .eckho-wizard-illustration {
        font-size: 44px;
    }

    .eckho-wizard-btn {
        padding: 9px 14px;
        font-size: 13px;
    }
}
