/* ==========================================================================
   AlloDentiste Process Steps Widget
   ========================================================================== */

.allo-process-steps-widget {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px var(--allo-gutter);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Two-column row */
.allo-process-steps-widget .process-steps-columns {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    width: 100%;
}

/* Image position is handled by PHP DOM order — no CSS reversal needed */

/* Single-column when no image */
.allo-process-steps-widget.no-image .process-steps-columns {
    display: block;
}

/* ----------------------------------
   Steps column
---------------------------------- */
.allo-process-steps-widget .process-steps-content {
    flex: 0 0 52%;
    min-width: 0;
}

.allo-process-steps-widget.no-image .process-steps-content {
    flex: none;
    width: 100%;
}

/* Heading sits above the columns row */
.allo-process-steps-widget .process-steps-heading {
    width: 100%;
}

/* ----------------------------------
   Section Heading
---------------------------------- */
.allo-process-steps-widget .process-steps-heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 32px 0;
    padding: 0;
}

/* ----------------------------------
   Steps list
---------------------------------- */
.allo-process-steps-widget .process-steps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ----------------------------------
   Step card
---------------------------------- */
.allo-process-steps-widget .process-step-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: #FFFFFF;
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    padding: 20px 24px;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.allo-process-steps-widget .process-step-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    transform: translateY(-1px);
}

/* ----------------------------------
   Number badge
---------------------------------- */
.allo-process-steps-widget .step-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background-color: #00A1AD;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

/* ----------------------------------
   Step body
---------------------------------- */
.allo-process-steps-widget .step-body {
    flex: 1;
    min-width: 0;
    padding-top: 2px; /* optical alignment with badge */
}

.allo-process-steps-widget .step-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 6px 0;
    padding: 0;
    line-height: 1.3;
}

.allo-process-steps-widget .step-description {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.65;
    margin: 0;
    padding: 0;
}

/* ----------------------------------
   Side image column
---------------------------------- */
.allo-process-steps-widget .process-steps-image {
    flex: 1;
    min-width: 0;
    align-self: stretch;
}

.allo-process-steps-widget .process-steps-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 16px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .allo-process-steps-widget {
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .allo-process-steps-widget {
        padding: 44px var(--allo-gutter);
    }

    .allo-process-steps-widget .process-steps-columns {
        flex-direction: column;
        gap: 32px;
    }

    .allo-process-steps-widget .process-steps-content {
        flex: none;
        width: 100%;
    }

    .allo-process-steps-widget .process-steps-image {
        width: 100%;
    }

    .allo-process-steps-widget .process-steps-image img {
        max-height: 380px;
    }
}

@media (max-width: 480px) {
    .allo-process-steps-widget {
        padding: 32px var(--allo-gutter);
    }

    .allo-process-steps-widget .process-step-card {
        padding: 16px 18px;
        gap: 14px;
    }

    .allo-process-steps-widget .step-badge {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 14px;
    }
}
