/**
 * Step Block Styles
 */

.step-block {
    padding: 36px;
    background-color: #fff;
    border-radius: 25px;
    margin: 24px 0;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Header with badge and heading */
.step-block__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.step-block__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: #F8F8F8;
    border: 1px solid #E6E6E6;
    border-radius: 50%;
    color: #1E2128;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    flex-shrink: 0;
}

/* Main Heading */
.step-block__main-heading {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    color: #34363D;
    font-family: 'Manrope', sans-serif;
    line-height: 130%;
}

/* Main Description */
.step-block__main-description {
    margin: 0 0 20px 0;
    font-size: 20px;
    line-height: 28px;
    color: #34363D;
    font-family: 'Manrope', sans-serif;
}

/* Slider Wrapper */
.step-block__slider-wrapper {
    width: 100%;
}

/* Steps Container */
.step-block__steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Individual Step Item */
.step-block__item {
    position: relative;
}

.step-block__step-inner {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 34px;
}

/* Вертикальная линия между шагами */
/* .step-block__item:not(:last-child) .step-block__step-number::after {
    content: '';
    position: absolute;
    top: 62px;
    left: 21px;
    width: 2px;
    height: calc(100% + 320px);
    background: #5DB24C;
    z-index: 0;
} */

/* Step Number (левая колонка) */
.step-block__step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    min-width: 54px;
    background: #5DB24C;
    border-radius: 10px;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* Step Content (правая колонка) */
.step-block__step-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Step Header (только заголовок) */
.step-block__step-header {
    display: flex;
    align-items: flex-start;
}

.step-block__step-title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #34363D;
    font-family: 'Manrope', sans-serif;
    line-height: 130%;
}

/* Step Image */
.step-block__step-image {
    overflow: hidden;
    border-radius: 12px;
    background: #F8F8F8;
}

.step-block__step-image img {
    width: 680px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* Step Description */
.step-block__step-description {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 130%;
    color: #8C8C8C;
    font-family: 'Manrope', sans-serif;
    margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 1400px) {
    .step-block {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .step-block {
        padding: 24px;
    }

    .step-block__main-heading {
        font-size: 28px;
        margin-top: 0 !important;
        margin-bottom:  0 !important;
    }

    .step-block__steps {
        gap: 24px;
    }
    
    .step-block__step-inner {
        grid-template-columns: 36px 1fr;
        gap: 14px;
    }

    /* .step-block__item:not(:last-child) .step-block__step-number::after {
        left: 18px;
        height: calc(100% + 24px);
    } */

    .step-block__step-number {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 20px;
    }

    .step-block__step-title {
        font-size: 20px;
        padding-top: 6px;
    }

    .step-block__step-description {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .step-block {
        padding: 20px;
    }

    /* Header vertical layout on mobile */
    .step-block__header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 14px;
    }

    .step-block__badge {
        margin: 0;
    }

    .step-block__main-heading {
        font-size: 22px;
        text-align: center;
        font-weight: 800;
    }
    
    .step-block__main-description {
        font-size: 16px;
        font-weight: 600;
        line-height: 26px;
        margin-bottom: 14px;
        text-align: center;
    }

    /* Mobile Slider Mode */
    .step-block__slider-wrapper {
        width: 100%;
        overflow: hidden;
        position: relative;
    }
    
    .step-block__steps {
        display: flex;
        flex-direction: row;
        gap: 0;
        width: 100%;
        transition: transform 0.3s ease;
    }

    .step-block__item {
        min-width: 100%;
        width: 100%;
        flex: 0 0 100%;
        display: block;
        grid-template-columns: unset;
        padding: 0 12px;
        box-sizing: border-box;
    }

    .step-block__step-inner {
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    /* Hide vertical line on mobile */
    .step-block__item:not(:last-child) .step-block__step-number::after {
        display: none;
    }

    /* Number on top, centered */
    .step-block__step-number {
        width: 46px;
        height: 46px;
        min-width: 46px;
        font-size: 20px;
        margin: 0;
        position: relative;
    }

    .step-block__step-content {
        display: flex;
        flex-direction: column;
        gap: 14px;
        width: 100%;
    }

    .step-block__step-header {
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
        width: 100%;
    }

    .step-block__step-title {
        font-size: 18px;
        font-weight: 700;
        line-height: 130%;
        padding-top: 0;
        text-align: center;
        width: 100%;
    }

    .step-block__step-description {
        font-size: 14px;
        line-height: 130%;
        text-align: center;
        width: 100%;
    }

    .step-block__step-image {
        width: 100%;
    }

    .step-block__step-image img {
        width: 100%;
        height: auto;
        display: block;
    }
}

/* Mobile Navigation */
.step-block__mobile-nav {
    display: none;
}

@media (max-width: 480px) {
    .step-block__mobile-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 14px;
    }

    .step-slider-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #5DB24C;
        border: none;
        border-radius: 50%;
        color: #fff;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .step-slider-btn:hover:not(:disabled) {
        background: #4a9c3d;
        transform: scale(1.1);
    }

    .step-slider-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

    .step-slider-dots {
        display: none;
    }

    .step-slider-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #D9D9D9;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .step-slider-dot.active {
        background: #5DB24C;
        width: 24px;
        border-radius: 4px;
    }
}

/* Editor Styles */
.step-block-editor {
    padding: 20px;
    border: 2px solid #5DB24C;
    border-radius: 12px;
    background: #fff;
}

.step-block__main-heading-input input {
    font-size: 22px !important;
    font-weight: 800 !important;
    width: 100%;
}

.step-block__step-editor {
    background: #f9f9f9;
}

/* KYC Section Styles */
.step-block__kyc-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 32px;
    padding: 24px;
    background: #F8F8F8;
    border-radius: 16px;
    border: 1px solid #E6E6E6;
}

.step-block__kyc-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-block__kyc-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #34363D;
    font-family: 'Manrope', sans-serif;
}

.step-block__kyc-title svg {
    color: #5DB24C;
    flex-shrink: 0;
}

.step-block__kyc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.step-block__kyc-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #E6E6E6;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #34363D;
    font-family: 'Manrope', sans-serif;
}

.step-block__kyc-tag--warning {
    background: #FFF3CD;
    border-color: #FFCA2C;
    color: #856404;
}

.step-block__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: #5DB24C;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.step-block__cta-button:hover {
    background: #4a9c3d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 178, 76, 0.3);
}

.step-block__cta-button svg {
    flex-shrink: 0;
}

/* KYC Section Mobile Responsive */
@media (max-width: 768px) {
    .step-block__kyc-section {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px;
        margin-top: 24px;
    }

    .step-block__kyc-info {
        align-items: center;
        text-align: center;
    }

    .step-block__kyc-title {
        justify-content: center;
        font-size: 14px;
    }

    .step-block__kyc-tags {
        justify-content: center;
    }

    .step-block__kyc-tag {
        padding: 6px 12px;
        font-size: 12px;
    }

    .step-block__cta-button {
        width: 100%;
        padding: 14px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .step-block__kyc-section {
        margin-top: 20px;
        padding: 16px;
        border-radius: 12px;
    }

    .step-block__kyc-title {
        font-size: 13px;
    }

    .step-block__kyc-tag {
        padding: 5px 10px;
        font-size: 11px;
    }

    .step-block__cta-button {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 10px;
    }
}
