/*
 * Helix Technologies - Onboarding Wizard Styles
 * Place: resources/css/helix-wizard.css
 * BEM: .helix-wizard__*
 */

/* =========================================================================
   WIZARD CONTAINER
   ========================================================================= */

.helix-wizard {
    max-width: 1020px;
    margin: 0 auto;
    width: 100%;
}

/* =========================================================================
   STEP INDICATOR
   ========================================================================= */

.helix-wizard__steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.helix-wizard__step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.25s ease;
    white-space: nowrap;
}

.helix-wizard__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.45);
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.helix-wizard__step-label {
    display: none;
}

@media (min-width: 576px) {
    .helix-wizard__step-label {
        display: inline;
    }
}

.helix-wizard__step--active .helix-wizard__step-number {
    background: #8159FF;
    border-color: #8159FF;
    color: #fff;
    box-shadow: 0 0 12px rgba(129, 89, 255, 0.4);
}

.helix-wizard__step--active .helix-wizard__step-label {
    color: #fff;
}

.helix-wizard__step--completed .helix-wizard__step-number {
    background: #00E5BC;
    border-color: #00E5BC;
    color: #0f172a;
}

.helix-wizard__step--completed .helix-wizard__step-label {
    color: rgba(255, 255, 255, 0.7);
}

.helix-wizard__step-connector {
    width: 32px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0.35rem;
    flex-shrink: 0;
    transition: background 0.25s ease;
}

.helix-wizard__step--completed + .helix-wizard__step-connector {
    background: #00E5BC;
}

/* =========================================================================
   WIZARD CARD
   ========================================================================= */

.helix-wizard .card {
    max-width: none;
    border-radius: 12px;
}

/* =========================================================================
   PANELS
   ========================================================================= */

.helix-wizard__panel {
    display: none;
    animation: helix-wizard-fadein 0.25s ease;
}

.helix-wizard__panel--active {
    display: block;
}

@keyframes helix-wizard-fadein {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   NAVIGATION BAR
   ========================================================================= */

.helix-wizard__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================================================================
   PRODUCT CARDS (Step 1 — "What do you need?")
   ========================================================================= */

.helix-wizard__product-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .helix-wizard__product-cards {
        grid-template-columns: 1fr;
    }
}

.helix-wizard__product-card {
    padding: 1.5rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.helix-wizard__product-card:hover {
    border-color: rgba(129, 89, 255, 0.4);
    background: rgba(129, 89, 255, 0.06);
    transform: translateY(-2px);
}

.helix-wizard__product-card-icon {
    font-size: 2rem;
    color: #8159FF;
    margin-bottom: 0.75rem;
}

.helix-wizard__product-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.35rem;
}

.helix-wizard__product-card-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.helix-wizard__product-card-plans {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

.helix-wizard__product-card-plans strong {
    color: #00E5BC;
}

/* =========================================================================
   PLAN CARDS
   ========================================================================= */

.helix-wizard__plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .helix-wizard__plans {
        grid-template-columns: repeat(5, 1fr);
    }

    .helix-wizard__plans--cols-4 {
        grid-template-columns: repeat(4, 1fr);
        max-width: 820px;
        margin-left: auto;
        margin-right: auto;
    }
}

.helix-wizard__plan-card {
    position: relative;
    padding: 1.25rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.helix-wizard__plan-card:hover {
    border-color: rgba(129, 89, 255, 0.3);
    background: rgba(129, 89, 255, 0.05);
}

.helix-wizard__plan-card--active {
    border-color: #8159FF;
    background: rgba(129, 89, 255, 0.1);
    box-shadow: 0 0 16px rgba(129, 89, 255, 0.2);
}

.helix-wizard__plan-card--recommended {
    border-color: rgba(129, 89, 255, 0.3);
}

.helix-wizard__plan-card--recommended::before {
    content: 'Recomendado';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #8159FF;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 10px;
    border-radius: 10px;
    white-space: nowrap;
}

.helix-wizard__plan-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.helix-wizard__plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.helix-wizard__plan-price small {
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
}

.helix-wizard__plan-yearly {
    font-size: 0.78rem;
    color: #00E5BC;
    margin-top: 0.15rem;
}

.helix-wizard__plan-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

.helix-wizard__plan-features {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    text-align: left;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
}

.helix-wizard__plan-features li {
    padding: 0.2rem 0;
}

.helix-wizard__plan-features li::before {
    content: '\2713';
    color: #00E5BC;
    margin-right: 0.4rem;
    font-weight: 600;
}

/* =========================================================================
   INVOICE VOLUME SLIDER
   ========================================================================= */

.helix-wizard__slider-wrap {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.helix-wizard__slider-question {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.5rem;
}

.helix-wizard__slider-value {
    font-size: 2rem;
    font-weight: 700;
    color: #8159FF;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.helix-wizard__slider-value small {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
}

.helix-wizard__slider-track {
    position: relative;
    padding: 0 0.25rem;
}

.helix-wizard__slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
}

.helix-wizard__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #8159FF;
    border: 3px solid #fff;
    box-shadow: 0 0 8px rgba(129, 89, 255, 0.5);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.helix-wizard__slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.helix-wizard__slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #8159FF;
    border: 3px solid #fff;
    box-shadow: 0 0 8px rgba(129, 89, 255, 0.5);
    cursor: pointer;
}

.helix-wizard__slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding: 0 2px;
}

.helix-wizard__slider-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s ease;
}

.helix-wizard__slider-label--active {
    color: #8159FF;
    font-weight: 600;
}

/* Light mode overrides for slider */
[data-bs-theme=light] .helix-wizard__slider-wrap {
    border-color: #e2e8f0;
    background: #f8fafc;
}

[data-bs-theme=light] .helix-wizard__slider-question {
    color: #475569;
}

[data-bs-theme=light] .helix-wizard__slider-value {
    color: #8159FF;
}

[data-bs-theme=light] .helix-wizard__slider-value small {
    color: #94a3b8;
}

[data-bs-theme=light] .helix-wizard__slider {
    background: #e2e8f0;
}

[data-bs-theme=light] .helix-wizard__slider::-webkit-slider-thumb {
    border-color: #fff;
}

[data-bs-theme=light] .helix-wizard__slider-label {
    color: #94a3b8;
}

[data-bs-theme=light] .helix-wizard__slider-label--active {
    color: #8159FF;
}

/* =========================================================================
   BILLING TOGGLE
   ========================================================================= */

.helix-wizard__billing-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.helix-wizard__billing-toggle .btn-group {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 3px;
}

.helix-wizard__billing-btn {
    padding: 0.4rem 1.1rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.helix-wizard__billing-btn--active {
    background: rgba(129, 89, 255, 0.2);
    color: #fff;
}

.helix-wizard__billing-btn .badge {
    font-size: 0.68rem;
    background: #00E5BC;
    color: #0f172a;
    margin-left: 0.35rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* =========================================================================
   SUMMARY (STEP 4)
   ========================================================================= */

.helix-wizard__summary {
    border-radius: 8px;
    overflow: hidden;
}

.helix-wizard__summary-section {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.helix-wizard__summary-section:last-child {
    border-bottom: none;
}

.helix-wizard__summary-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.35rem;
}

.helix-wizard__summary-value {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
}

.helix-wizard__summary-detail {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

/* =========================================================================
   SECTION LABELS (Step 2 & 3)
   ========================================================================= */

.helix-wizard__section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.helix-wizard__section-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.25rem;
}

/* =========================================================================
   LIGHT MODE OVERRIDES
   ========================================================================= */

[data-bs-theme=light] .helix-wizard__step {
    color: #94a3b8;
}

[data-bs-theme=light] .helix-wizard__step-number {
    border-color: #d1d5db;
    color: #94a3b8;
}

[data-bs-theme=light] .helix-wizard__step--active .helix-wizard__step-number {
    background: #8159FF;
    border-color: #8159FF;
    color: #fff;
}

[data-bs-theme=light] .helix-wizard__step--active .helix-wizard__step-label {
    color: #1e293b;
}

[data-bs-theme=light] .helix-wizard__step--completed .helix-wizard__step-number {
    background: #00E5BC;
    border-color: #00E5BC;
    color: #fff;
}

[data-bs-theme=light] .helix-wizard__step--completed .helix-wizard__step-label {
    color: #64748b;
}

[data-bs-theme=light] .helix-wizard__step-connector {
    background: #e2e8f0;
}

[data-bs-theme=light] .helix-wizard__step--completed + .helix-wizard__step-connector {
    background: #00E5BC;
}

[data-bs-theme=light] .helix-wizard__product-card {
    border-color: #e2e8f0;
    background: #fff;
}

[data-bs-theme=light] .helix-wizard__product-card:hover {
    border-color: rgba(129, 89, 255, 0.4);
    background: rgba(129, 89, 255, 0.03);
}

[data-bs-theme=light] .helix-wizard__product-card-name {
    color: #1e293b;
}

[data-bs-theme=light] .helix-wizard__product-card-desc {
    color: #64748b;
}

[data-bs-theme=light] .helix-wizard__product-card-plans {
    color: #94a3b8;
}

[data-bs-theme=light] .helix-wizard__plan-card {
    border-color: #e2e8f0;
    background: #fff;
}

[data-bs-theme=light] .helix-wizard__plan-card:hover {
    border-color: rgba(129, 89, 255, 0.4);
    background: rgba(129, 89, 255, 0.03);
}

[data-bs-theme=light] .helix-wizard__plan-card--active {
    border-color: #8159FF;
    background: rgba(129, 89, 255, 0.06);
    box-shadow: 0 0 16px rgba(129, 89, 255, 0.12);
}

[data-bs-theme=light] .helix-wizard__plan-name {
    color: #1e293b;
}

[data-bs-theme=light] .helix-wizard__plan-price {
    color: #1e293b;
}

[data-bs-theme=light] .helix-wizard__plan-price small {
    color: #94a3b8;
}

[data-bs-theme=light] .helix-wizard__plan-desc {
    color: #94a3b8;
}

[data-bs-theme=light] .helix-wizard__plan-features {
    color: #64748b;
}

[data-bs-theme=light] .helix-wizard__billing-toggle .btn-group {
    background: #f1f5f9;
}

[data-bs-theme=light] .helix-wizard__billing-btn {
    color: #64748b;
}

[data-bs-theme=light] .helix-wizard__billing-btn--active {
    background: #fff;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-bs-theme=light] .helix-wizard__nav {
    border-top-color: #e2e8f0;
}

[data-bs-theme=light] .helix-wizard__summary-section {
    border-bottom-color: #f1f5f9;
}

[data-bs-theme=light] .helix-wizard__summary-label {
    color: #94a3b8;
}

[data-bs-theme=light] .helix-wizard__summary-value {
    color: #1e293b;
}

[data-bs-theme=light] .helix-wizard__summary-detail {
    color: #64748b;
}

[data-bs-theme=light] .helix-wizard__section-title {
    color: #1e293b;
}

[data-bs-theme=light] .helix-wizard__section-subtitle {
    color: #64748b;
}
