/**
 * TD Step Process Block Styles (Plugin: td-uxbuilder-blocks)
 * Continuous line connecting circle borders seamlessly with zero gaps
 */

.td-step-process-section {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.td-step-process-container {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Stepper Header Navigation */
.td-step-process-header {
    margin-bottom: 32px;
    width: 100%;
}

.td-step-process-nav {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
}

/* Continuous Connecting Line behind circles */
.td-step-process-nav::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    height: 2px;
    background-color: #F97316;
    z-index: 1;
    transform: translateY(-50%);
}

.td-step-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.td-step-circle-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    outline: none;
    z-index: 2;
    text-decoration: none;
    font-family: inherit;
    position: relative;
}

.td-step-process-section[data-nav-clickable="false"] .td-step-circle-btn {
    cursor: default;
}

/* Circle */
.td-step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 2px solid #F97316;
    color: #1E293B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    line-height: 130%;
    letter-spacing: -3%;
    text-align: center;
    transition: all 0.25s ease;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.td-step-check-icon {
    display: none;
    width: 24px;
    height: 24px;
}

/* Step Title */
.td-step-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: -3%;
    text-align: center;

    white-space: nowrap;
    transition: color 0.25s ease;
    text-transform: none;
}

/* Active State */
.td-step-nav-item.active .td-step-circle {
    background-color: #F97316;
    border-color: #F97316;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.25);
}

.td-step-nav-item.active .td-step-number {
    display: block;
}

.td-step-nav-item.active .td-step-check-icon {
    display: none;
}

.td-step-nav-item.active .td-step-title {
    color: #1E293B;
    font-weight: 700;
}

/* Completed State */
.td-step-nav-item.completed .td-step-circle {
    background-color: #F97316;
    border-color: #F97316;
    color: #FFFFFF;
}

.td-step-nav-item.completed .td-step-number {
    display: none;
}

.td-step-nav-item.completed .td-step-check-icon {
    display: block;
}

.td-step-nav-item.completed .td-step-title {
    color: #1E293B;
}

/* Content Area Card */
.td-step-process-content-wrap {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    min-height: 200px;
    width: 100%;
    box-sizing: border-box;
}

.td-step-panel {
    display: none;
}

.td-step-panel.active {
    display: block;
    animation: tdStepFadeIn 0.35s ease;
}

@keyframes tdStepFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .td-step-process-header {
        margin-bottom: 24px;
    }

    .td-step-process-content-wrap {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .td-step-circle {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .td-step-process-nav::before {
        top: 19px;
        left: 19px;
        right: 19px;
    }

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