/* Step Flow Widget Stylesheet */

:root {
    --circle-size: 140px;
}

.appstechy-step-flow-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* Alignments */
.appstechy-step-flow-wrapper.alignment-center {
    align-items: center;
    text-align: center;
}
.appstechy-step-flow-wrapper.alignment-left {
    align-items: flex-start;
    text-align: left;
}
.appstechy-step-flow-wrapper.alignment-right {
    align-items: flex-end;
    text-align: right;
}
.appstechy-step-flow-wrapper.alignment-justify {
    align-items: stretch;
    text-align: justify;
}

/* Circle & Icon Container */
.appstechy-step-flow-circle-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
    z-index: 2;
}

.appstechy-step-flow-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--circle-size, 140px);
    height: var(--circle-size, 140px);
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    cursor: pointer;
}

.appstechy-step-flow-circle:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Link override reset */
.appstechy-step-flow-wrapper a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

/* Icon style */
.appstechy-step-flow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0096d2;
    font-size: 36px;
    transition: all 0.3s ease;
}

.appstechy-step-flow-icon i,
.appstechy-step-flow-icon svg {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    line-height: 1;
}

.appstechy-step-flow-circle:hover .appstechy-step-flow-icon {
    transform: scale(1.08);
}

/* Badge overlay */
.appstechy-step-flow-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    transform: translate(15%, -15%);
    background-color: #00a8e8;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    z-index: 3;
    pointer-events: none;
    transition: all 0.3s ease;
}

.appstechy-step-flow-circle:hover .appstechy-step-flow-badge {
    transform: translate(15%, -15%) scale(1.05);
}

/* Direction Arrow */
.appstechy-step-flow-arrow {
    position: absolute;
    right: -15px; /* Sits exactly on the column gutter edge */
    top: calc(var(--circle-size, 140px) / 2);
    transform: translate(50%, -50%);
    color: #b5b5b5;
    z-index: 10;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.appstechy-step-flow-arrow svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

/* Arrow hover color interpolation (when step item is hovered) */
.appstechy-step-flow-wrapper:hover .appstechy-step-flow-arrow {
    color: #0096d2;
    transform: translate(55%, -50%);
}

/* Content & Typography */
.appstechy-step-flow-content {
    width: 100%;
}

.appstechy-step-flow-title {
    font-size: 18px;
    font-weight: 600;
    color: #222222;
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
}

.appstechy-step-flow-title a:hover {
    color: #0096d2;
}

.appstechy-step-flow-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
}

/* Responsive Rules */
@media (max-width: 767px) {
    .appstechy-step-flow-circle-wrapper {
        margin-bottom: 20px;
    }
    
    /* Rotate arrow downwards when columns stack vertically */
    .appstechy-step-flow-arrow {
        right: auto;
        left: 50%;
        top: calc(var(--circle-size, 140px) + 5px);
        bottom: auto;
        transform: translate(-50%, 0) rotate(90deg);
    }
    
    .appstechy-step-flow-wrapper:hover .appstechy-step-flow-arrow {
        transform: translate(-50%, 5px) rotate(90deg);
    }

    .appstechy-step-flow-wrapper {
        margin-bottom: 40px; /* Add space between stacked steps */
    }
}
