/* =============================================================
   Blog2Social – Onboarding
   Scope: .b2s-onboarding-panel and children
   ============================================================= */

/* Panel wrapper */
.b2s-onboarding-panel {
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 16px;
    border: 1px solid #e2e8f0;
}

/* Hero */
.b2s-onboarding-hero {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 36px 40px 32px;
}

.b2s-onboarding-badge {
    display: inline-flex;
    align-items: center;
    background: #eaf3de;
    color: #3b6d11;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.b2s-onboarding-title-main {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
    line-height: 1.3;
}

.b2s-onboarding-subtitle {
    font-size: 15px;
    color: #64748b;
    max-width: 540px;
    line-height: 1.7;
    margin: 0 0 24px;
}

.b2s-onboarding-hero__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Buttons */
.b2s-btn-ob-primary {
    background: #639922 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block;
    transition: background 0.15s ease;
}

.b2s-btn-ob-primary:hover,
.b2s-btn-ob-primary:focus {
    background: #3b6d11 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.b2s-btn-ob-ghost {
    background: transparent !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 10px 22px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-block;
    transition: background 0.15s ease;
}

.b2s-btn-ob-ghost:hover,
.b2s-btn-ob-ghost:focus {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    text-decoration: none !important;
}

.b2s-btn-ob-secondary {
    background: #ffffff !important;
    color: #3b6d11 !important;
    border: 1px solid #97c459 !important;
    border-radius: 8px !important;
    padding: 10px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block;
    transition: background 0.15s ease;
}

.b2s-btn-ob-secondary:hover,
.b2s-btn-ob-secondary:focus {
    background: #f0fdf4 !important;
    color: #27500a !important;
    text-decoration: none !important;
}

/* Step section wrapper */
.b2s-onboarding-steps {
    padding: 28px 40px 0;
}

.b2s-onboarding-steps__label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin: 0 0 14px;
}

/* 3-step wizard bar */
.b2s-stepwizard-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: relative;
    margin-bottom: 0;
}

.b2s-stepwizard-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-bottom: 8px;
}

.b2s-stepwizard-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 16px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.b2s-stepwizard-item.done:not(:last-child)::after {
    background: #97c459;
}

.b2s-stepwizard-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #94a3b8;
}

.b2s-stepwizard-item.done .b2s-stepwizard-dot {
    background: #639922;
    border-color: #639922;
    color: #ffffff;
}

.b2s-stepwizard-item.active .b2s-stepwizard-dot {
    background: #639922;
    border-color: #639922;
    color: #ffffff;
    box-shadow: 0 0 0 5px #eaf3de;
}

.b2s-stepwizard-label {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 9px;
    text-align: center;
    max-width: 140px;
    line-height: 1.5;
}

.b2s-stepwizard-item.active .b2s-stepwizard-label {
    color: #3b6d11;
    font-weight: 600;
}

.b2s-stepwizard-item.done .b2s-stepwizard-label {
    color: #64748b;
}

/* Step content card */
.b2s-onboarding-step-content-wrap {
    display: flex !important;
    gap: 40px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px 36px;
    margin-top: 20px;
    min-height: 220px;
}

.b2s-onboarding-step-img-col {
    flex-shrink: 0;
    width: 280px;
}

.b2s-onboarding-step-img-col img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.b2s-onboarding-step-text-col {
    flex: 1;
    min-width: 0;
}

.b2s-onboarding-step-heading {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
    line-height: 1.35;
}

.b2s-onboarding-step-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
    margin: 0 0 22px;
}

/* Hide raw getOnboardingHtml() output */
.b2s-onboarding-steps .b2s-onboarding-item {
    display: none !important;
}

/* Premium section */
.b2s-onboarding-premium-section {
    padding: 20px 40px 40px;
}

.b2s-onboarding-features-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 28px 32px;
}

.b2s-onboarding-section-head {
    margin-bottom: 20px;
}

.b2s-onboarding-section-head h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
}

.b2s-onboarding-section-head p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

.b2s-onboarding-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.b2s-feature-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 16px;
    transition: box-shadow 0.15s;
}

.b2s-feature-card:hover {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.b2s-feature-card__icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 12px;
    display: block;
}

.b2s-feature-card h3 {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 5px;
}

.b2s-feature-card p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* CTA strip */
.b2s-onboarding-cta-card {
    background: #eaf3de;
    border-radius: 12px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.b2s-onboarding-cta-card__text h3 {
    font-size: 15px;
    font-weight: 700;
    color: #27500a;
    margin: 0 0 4px;
}

.b2s-onboarding-cta-card__text p {
    font-size: 13px;
    color: #3b6d11;
    line-height: 1.55;
    margin: 0;
}

.b2s-onboarding-cta-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Footer */
.b2s-onboarding-footer-action {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 18px 40px;
    text-align: center;
}

.b2s-stop-onboarding-link {
    font-size: 13px;
    font-weight: 600 !important;
    color: #64748b !important;
    text-decoration: underline !important;
    cursor: pointer;
    transition: color 0.15s;
}

.b2s-stop-onboarding-link:hover {
    color: #1e293b !important;
}

/* Legacy stepwizard – replaced by b2s-stepwizard-bar */
.stepwizard {
    display: none;
}

/* Responsive */
@media (max-width: 1100px) {
    .b2s-onboarding-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {

    .b2s-onboarding-hero,
    .b2s-onboarding-steps,
    .b2s-onboarding-premium-section,
    .b2s-onboarding-footer-action {
        padding-left: 24px;
        padding-right: 24px;
    }

    .b2s-onboarding-step-content-wrap {
        flex-direction: column !important;
        gap: 20px;
        padding: 24px 20px;
    }

    .b2s-onboarding-step-img-col {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .b2s-onboarding-title-main {
        font-size: 22px;
    }

    .b2s-onboarding-feature-grid {
        grid-template-columns: 1fr;
    }

    .b2s-onboarding-cta-card {
        flex-direction: column;
        align-items: flex-start;
    }
}