/**
 * Pomoc - kroki Module CSS
 */

.help-steps-container {
    position: relative;
}

.help-step-section {
    padding: 60px 0;
    background: radial-gradient(99.96% 99.96% at 50% 0.04%, rgba(252, 250, 248, 0.00) 0%, #FCFAF8 100%), var(--color-brand-two-11, #F8F5F2);
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
    position: relative;
    margin-bottom: 0;
}

/* Keep all sections in normal document flow */
.help-steps-container>.help-step-section,
.help-steps-container>.sec-advisor.help-step-section {
    position: relative !important;
    z-index: 1 !important;
}

.help-step-section .sa-media-img img,
.help-step-section .sa-title,
.help-step-section .sa-text {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Keep all sections visible for proper scrolling */

/* Wariant 1 - Standardowy */
.help-step-section.help-step-variant-1 {
    background: #fff;
}

/* Wariant 2 - Odwrócony */
.help-step-section.help-step-variant-2 {
    background: #f8f8f8;
}

/* Wariant 3 - Pełna szerokość treść */
.help-step-section.help-step-variant-3 {
    background: linear-gradient(135deg, #f8f5f2 0%, #ffffff 100%);
    padding: 80px 0;
}

/* Wariant 4 - Obraz po lewej, treść po prawej (tylko szara treść na dole) */
.help-step-section.help-step-variant-4 {
    background: #fff;
    padding: 60px 0;
}

/* Szara treść na dole dla wariantu 4 */
.help-step-variant-4-footer {
    color: var(--text-color-base-secondary, #595959);
    font-family: var(--font-family-family-primary, Sora);
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    /* 133.333% */
}

/* Wariant 5 - Dwie kolumny równo */
.help-step-section.help-step-variant-5 {
    background: #fff;
}

/* Wariant 6 - Centrum z tłem */
.help-step-section.help-step-variant-6 {
    background: #f8f8f8;
}

/* Wariant 7 - Gradient */
.help-step-section.help-step-variant-7 {
    background: linear-gradient(135deg, #f8f5f2 0%, #ffffff 100%);
    padding: 80px 0;
}

/* Wspólne style */
.help-step-section .sa-cta {
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.help-step-section .sa-cta:hover {
    background: #f8f8f8;
    border-color: var(--color-primary, #183030);
}

.help-step-section .sa-cta-avatars {
    display: flex;
    gap: 10px;
}

.help-step-section .sa-ava {
    display: none;
}

.help-step-section .sa-ava img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.help-step-section .sa-cta-text {
    font-weight: 500;
    color: var(--text-color-base-primary, #000);
}

.help-step-section .sa-cta-arrow {
    color: var(--text-color-base-primary, #000);
}

/* Przycisk dla kroku 4 - prosty przycisk bez strzałki */
.help-step-section .sa-cta-button-step4 {
    display: inline-block;
    padding: 12px 24px;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    color: var(--text-color-base-primary, #000);
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    transition: all 0.3s ease;
}

.help-step-section .sa-cta-button-step4:hover {
    background: #f8f8f8;
    border-color: #d0d0d0;
    color: var(--text-color-base-primary, #000);
    text-decoration: none;
}

/* Przycisk dla kroku 5 - jasnoszary przycisk bez strzałki */
.help-step-section .sa-cta-button-step5 {
    display: inline-block;
    padding: 12px 24px;
    background: #EFEFEF;
    border: 1px solid #888888;
    border-radius: 4px;
    color: #444444;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    transition: all 0.3s ease;
}

.help-step-section .sa-cta-button-step5:hover {
    background: #E5E5E5;
    border-color: #777777;
    color: #333333;
    text-decoration: none;
}

/* CTA Button - przycisk dla stylu 3 */
.help-step-section .help-step-cta-button {
    color: var(--text-color-base-primary, #000);
    font-family: var(--font-family-family-primary, Sora);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    /* 142.857% */
    border-radius: 4px;
    border: 1px solid var(--background-color-dark, #000);
    padding: 12px 24px;
    justify-content: center;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.help-step-section .help-step-cta-button:hover {
    text-decoration: none;
    opacity: 0.9;
    transform: translateY(-1px);
}

.help-step-section .sa-media-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
}

.help-step-section .sa-media-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 991px) {
    .help-step-section {
        padding: 40px 0;
    }

    .help-step-section.help-step-variant-4 .sa-media-img-full {
        height: 300px;
    }

    .help-step-section.help-step-variant-6 .help-step-content-wrapper {
        padding: 40px 20px;
    }
}

/* Mobile version - normal vertical flow (no horizontal scroll) */
@media (max-width: 993px) {
    /* Normal display on mobile: use one standard section flow */
    .help-steps-container {
        display: block !important;
    }
    .help-steps-container-mobile {
        display: none !important;
    }

    /* Disable sticky behavior on mobile for classic scrolling */
    .help-steps-container>.help-step-section:first-child,
    .help-steps-container>.sec-advisor.help-step-section:first-child {
        position: relative !important;
        top: auto !important;
        z-index: 1 !important;
    }

    .help-step-section-mobile {
        flex: none;
        width: 100%;
        min-width: 0;
        max-width: none;
        padding: 0;
        background: radial-gradient(99.96% 99.96% at 50% 0.04%, rgba(252, 250, 248, 0.00) 0%, #FCFAF8 100%), var(--color-brand-two-11, #F8F5F2);
        min-height: auto;
        display: flex;
        align-items: center;
        position: relative;
        margin-bottom: 16px;
        border-right: none;
    }

    /* Ostatnia sekcja bez odstępu */
    .help-step-section-mobile:last-child {
        margin-bottom: 0;
    }

    /* Ukryj numer (lub daj małą opacity) */
    .help-step-section-mobile .sa-number-mobile {
        display: none;
    }

    /* Zmień układ na kolumnowy dla mobile */
    .help-step-section-mobile .row.single {
        display: flex;
        flex-direction: column;
    }

    /* Kolejność elementów: zdjęcie -> tytuł -> treść -> przycisk */
    .help-step-section-mobile .row.single>div:has(.sa-media-mobile) {
        order: 1;
        margin-bottom: 20px;
    }

    .help-step-section-mobile .row.single>div:has(.sa-title-mobile),
    .help-step-section-mobile .row.single>div:has(.sa-number-mobile) {
        order: 2;
    }

    .help-step-section-mobile .row.single .sa-title-mobile {
        order: 1;
        margin-bottom: 16px;
    }

    .help-step-section-mobile .row.single .sa-text-mobile {
        order: 2;
        margin-bottom: 20px;
    }

    .help-step-section-mobile .row.single .single-counselor,
    .help-step-section-mobile .row.single>div:has(.help-step-cta-button-mobile) {
        order: 3;
    }



    .help-step-section-mobile.help-step-variant-2-mobile {
        background: #f8f8f8;
    }

    .help-step-section-mobile.help-step-variant-3-mobile {
        background: linear-gradient(135deg, #f8f5f2 0%, #ffffff 100%);
        padding: 60px 20px;
    }

    .help-step-section-mobile.help-step-variant-4-mobile {
        background: #fff;
        padding: 40px 20px;
    }

    .help-step-variant-4-footer-mobile {
        color: var(--text-color-base-secondary, #595959);
        font-family: var(--font-family-family-primary, Sora);
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        line-height: 16px;
    }

    .help-step-section-mobile .sa-media-img-mobile {
        width: 100%;
        height: auto;
        border-radius: 8px;
        overflow: hidden;
        aspect-ratio: 3 / 4;
    }

    .help-step-section-mobile .sa-media-img-mobile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .help-step-section-mobile .help-step-cta-button-mobile {
        color: var(--text-color-base-primary, #000);
        font-family: var(--font-family-family-primary, Sora);
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 20px;
        border-radius: 4px;
        border: 1px solid var(--background-color-dark, #000);
        padding: 12px 24px;
        justify-content: center;
        align-items: center;
        gap: 16px;
        text-decoration: none;
        transition: all 0.3s ease;
        cursor: pointer;
        display: inline-block;
    }

    .help-step-section-mobile .help-step-cta-button-mobile:hover {
        text-decoration: none;
        opacity: 0.9;
        transform: translateY(-1px);
    }

    /* Style dla elementów mobile - dziedziczą z desktop */
    .sec-advisor-mobile .sa-number-mobile,
    .help-step-section-mobile .sa-number-mobile {
        font-size: 120px;
        font-weight: 400;
        line-height: 1;
        color: rgba(0, 0, 0, 0.05);
        position: absolute;
        top: 20px;
        left: 20px;
        z-index: 1;
    }

    .sec-advisor-mobile .sa-title-mobile,
    .help-step-section-mobile .sa-title-mobile {
        position: relative;
        z-index: 2;
    }

    .sec-advisor-mobile .sa-title-mobile h4,
    .help-step-section-mobile .sa-title-mobile h4 {
        color: var(--text-color-base-primary, #000);
        font-family: var(--font-family-family-primary, Sora);
        font-size: 20px;
        font-style: normal;
        font-weight: 400;
        line-height: 28px;
        margin-bottom: 16px;
    }

    .sec-advisor-mobile .sa-text-mobile,
    .help-step-section-mobile .sa-text-mobile {
        position: relative;
        z-index: 2;
        margin-bottom: 24px;
    }

    .sec-advisor-mobile .sa-text-mobile p,
    .help-step-section-mobile .sa-text-mobile p {
        color: var(--text-color-base-primary, #000);
        font-family: var(--font-family-family-primary, Sora);
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 20px;
        margin-bottom: 12px;
    }

    .sec-advisor-mobile .sa-text-mobile p strong,
    .sec-advisor-mobile .sa-text-mobile p b,
    .help-step-section-mobile .sa-text-mobile p strong,
    .help-step-section-mobile .sa-text-mobile p b {
        font-weight: 600;
    }

    .sec-advisor-mobile .sa-media-mobile,
    .help-step-section-mobile .sa-media-mobile {
        position: relative;
        z-index: 2;
    }

    /* Single counselor styles - skopiowane z section-front1 */
    .help-steps-container-mobile .single-counselor {
        margin-bottom: 0;
        padding: 0;
    }

    .help-steps-container-mobile .single-counselor .scard {
        display: flex;
        align-items: center;
        gap: 0;
        width: 100%;
        padding: 4px 20px 4px 4px;
        border-radius: 4px;
        border: 1px solid #e5e5e5;
        background: transparent;
        box-shadow: none !important;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.05s ease;
    }

    .help-steps-container-mobile .single-counselor .scard:hover {
        border-radius: var(--radius-x-small, 4px);
        border: 1px solid var(--color-brand-two-9, #EBE4DC);
        background: var(--hover-neutral, #F3EFEA);
        border-color: #e2e2e2;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    }

    .help-steps-container-mobile .single-counselor .scard__main {
        display: flex;
        align-items: center;
        gap: 0;
        flex: 1 1 auto;
        min-width: 0;
    }

    .help-steps-container-mobile .single-counselor .avatars {
        display: flex;
        gap: 6px;
    }

    .help-steps-container-mobile .single-counselor .avatars.avatars--stacked {
        gap: 6px;
    }

    .help-steps-container-mobile .single-counselor .avatars.avatars--stacked .avatar {
        margin-left: 0;
    }

    .help-steps-container-mobile .single-counselor .avatars.avatars--stacked .avatar:first-child {
        margin-left: 0;
        z-index: 3;
    }

    .help-steps-container-mobile .single-counselor .avatars.avatars--stacked .avatar:nth-child(2) {
        z-index: 2;
        display: none;
    }

    .help-steps-container-mobile .single-counselor .avatars.avatars--stacked .avatar:nth-child(3) {
        z-index: 1;
        display: none;
    }

    .help-steps-container-mobile .single-counselor .avatar {
        position: relative;
        width: 56px;
        height: 56px;
        border-radius: 4px;
        overflow: hidden;
        background: #f3f3f3;
        box-shadow: inset 0 0 0 1px #e9e9e9;
        flex-shrink: 0;
    }

    .help-steps-container-mobile .single-counselor .avatar p {
        margin-bottom: 0;
    }

    .help-steps-container-mobile .single-counselor .avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: inherit;
    }

    .help-steps-container-mobile .single-counselor .avatar__badge {
        position: absolute;
        right: 2px;
        bottom: 2px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #e4fd71;
        display: grid;
        place-items: center;
        box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    }

    .help-steps-container-mobile .single-counselor .avatar__badge img {
        width: 12px;
        height: 12px;
    }

    .help-steps-container-mobile .single-counselor .scard__copy {
        margin-left: 12px;
    }

    .help-steps-container-mobile .single-counselor .scard__copy p {
        margin-bottom: 0;
        color: #888;
        font-size: 12px;
        font-weight: 400;
        line-height: 16px;
    }

    .help-steps-container-mobile .single-counselor .scard__copy strong {
        color: #000;
        font-size: 14px;
        font-weight: 400;
        line-height: 100%;
        margin-bottom: 6px;
        display: block;
    }

    .help-steps-container-mobile .single-counselor .scard__copy small,
    .help-steps-container-mobile .single-counselor .scard__copy .sub {
        display: block;
        margin-top: 2px;
        font-size: 12px;
        color: #8b8f98;
    }

    .help-steps-container-mobile .single-counselor .scard__arrow {
        margin-left: auto;
        width: 28px;
        height: 28px;
        border-radius: 999px;
        background: transparent;
        color: #000;
        display: grid;
        place-items: center;
        transition: transform 0.15s ease;
        margin-right: 0;
        padding-right: 0;
        padding-left: 12px;
    }

    .help-steps-container-mobile .single-counselor .scard:hover .scard__arrow {
        transform: translateX(2px);
        background: transparent;
    }
}

/* Desktop - ukryj wersję mobile */
@media (min-width: 994px) {
    .help-steps-container-mobile {
        display: none !important;
    }

    .help-steps-container {
        display: block !important;
    }
}