/* ============================================================
   Elementor Numbered Steps Widget — Frontend Styles
   ============================================================ */

.ensw-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    padding: 60px 40px;
    background-color: #F5F0EB;
    box-sizing: border-box;
}

/* ── LEFT column: step triggers ───────────────────────────── */
.ensw-left {
    flex: 1 1 340px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ensw-step {
    padding: 28px 32px;
    border-radius: 18px;
    cursor: pointer;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    user-select: none;
}

.ensw-step:focus-visible {
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.55);
}

/* Active card */
.ensw-step.active {
    background-color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

/* Inactive steps */
.ensw-step.inactive {
    background-color: transparent;
}

.ensw-step.inactive:hover {
    background-color: rgba(255, 255, 255, 0.45);
}

.ensw-step-number {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    transition: color 0.2s ease;
}

.ensw-step.active .ensw-step-number  { color: #1A1A1A; }
.ensw-step.inactive .ensw-step-number { color: #AAAAAA; }

.ensw-step-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.ensw-step.active .ensw-step-title   { color: #1A1A1A; }
.ensw-step.inactive .ensw-step-title { color: #AAAAAA; }

/* ── RIGHT column: tab panels ─────────────────────────────── */
.ensw-right {
    flex: 1 1 400px;
    position: relative;
    /* Fixed min-height prevents layout jump between panels */
    min-height: 200px;
}

/* All panels stacked; only .active is visible */
.ensw-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;

    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
}

.ensw-panel.active {
    opacity: 1;
    visibility: visible;
    position: relative; /* takes up natural space */
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0s;
}

/* Image */
.ensw-image-wrap {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    line-height: 0;
}

.ensw-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 18px;
}

/* Text */
.ensw-panel-title {
    font-size: 20px;
    font-weight: 800;
    color: #1A1A1A;
    line-height: 1.3;
    margin: 0;
}

.ensw-panel-description {
    font-size: 15px;
    color: #555555;
    line-height: 1.65;
    margin: 0;
}

/* Button */
.ensw-button {
    display: inline-block;
    align-self: flex-start;
    padding: 16px 36px;
    background-color: #39FF14;
    color: #1A1A1A;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.2s ease, transform 0.15s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.ensw-button:hover {
    background-color: #2AE000;
    color: #1A1A1A;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .ensw-wrapper {
        padding: 40px 20px;
        gap: 28px;
    }

    .ensw-left,
    .ensw-right {
        flex: 1 1 100%;
    }

    .ensw-step {
        padding: 20px 22px;
    }

    .ensw-step-number {
        font-size: 28px;
    }

    .ensw-button {
        align-self: stretch;
        text-align: center;
    }
}
