/* ==============================================
   Easy Steps Widget — Frontend Styles
   ============================================== */

/* Wrapper */
.esw-wrapper {
    box-sizing: border-box;
    width: 100%;
}

/* Header */
.esw-header {
    margin-bottom: 40px;
}

.esw-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2d6a4f;
    margin: 0 0 10px 0;
    padding: 0;
}

.esw-heading {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 14px 0;
    padding: 0;
}

.esw-description {
    font-size: 16px;
    color: #444444;
    line-height: 1.6;
    max-width: 520px;
    margin: 0;
    padding: 0;
}

/* =====================
   HORIZONTAL LAYOUT
   ===================== */
.esw-layout-horizontal .esw-steps-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

.esw-layout-horizontal .esw-step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Circle */
.esw-step-circle-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    z-index: 2;
}

.esw-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #2d6a4f;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

/* Connector line — horizontal */
.esw-layout-horizontal .esw-connector {
    position: absolute;
    top: 28px; /* half of circle height */
    left: calc(50% + 28px); /* starts after circle */
    right: calc(-50% + 28px);
    height: 2px;
    background-color: #2d6a4f;
    z-index: 0;
    transform: translateX(0);
    width: calc(100% - 0px);
}

/* connector style variants */
.esw-connector-style-dashed .esw-connector {
    background: repeating-linear-gradient(
        to right,
        #2d6a4f 0,
        #2d6a4f 8px,
        transparent 8px,
        transparent 16px
    );
}
.esw-connector-style-dotted .esw-connector {
    background: repeating-linear-gradient(
        to right,
        #2d6a4f 0,
        #2d6a4f 4px,
        transparent 4px,
        transparent 10px
    );
}
.esw-connector-style-none .esw-connector {
    display: none !important;
}

/* Step content */
.esw-step-content {
    width: 100%;
}

.esw-step-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    padding: 0;
    line-height: 1.3;
}

.esw-step-desc {
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* =====================
   VERTICAL LAYOUT
   ===================== */
.esw-layout-vertical .esw-steps-row {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.esw-layout-vertical .esw-step-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    position: relative;
    padding-bottom: 30px;
}

.esw-layout-vertical .esw-step-circle-wrap {
    flex-shrink: 0;
    width: auto;
    margin-bottom: 0;
    margin-right: 20px;
    flex-direction: column;
    align-items: center;
}

.esw-layout-vertical .esw-step-item {
    text-align: left !important;
}

.esw-layout-vertical .esw-connector {
    position: absolute;
    left: 28px; /* half circle width */
    top: 56px; /* after the circle */
    bottom: 0;
    width: 2px;
    height: auto;
    background-color: #2d6a4f;
    z-index: 0;
    transform: translateX(-50%);
}

/* connector style variants — vertical */
.esw-layout-vertical .esw-connector-style-dashed .esw-connector {
    background: repeating-linear-gradient(
        to bottom,
        #2d6a4f 0,
        #2d6a4f 8px,
        transparent 8px,
        transparent 16px
    );
}
.esw-layout-vertical .esw-connector-style-dotted .esw-connector {
    background: repeating-linear-gradient(
        to bottom,
        #2d6a4f 0,
        #2d6a4f 4px,
        transparent 4px,
        transparent 10px
    );
}
.esw-layout-vertical .esw-step-content {
    padding-top: 10px;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 767px) {
    .esw-layout-horizontal .esw-steps-row {
        flex-direction: column;
        align-items: stretch;
    }
    .esw-layout-horizontal .esw-step-item {
        flex: none;
        width: 100%;
    }
    .esw-layout-horizontal .esw-connector {
        display: none;
    }
    .esw-heading {
        font-size: 26px;
    }
}
