/* CARSALE.RO - ELEMENTUL 6 */

.carsale-steps {
    display: flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 6px;
    gap: 8px;
    margin-top: 24px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 40px;
    box-shadow: 0 8px 28px rgba(10,35,65,0.10);
    backdrop-filter: blur(12px);
}

.carsale-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border: 0;
    border-radius: 32px;
    background: transparent;
    color: #526987;
    font: 500 14px Arial, sans-serif;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.carsale-step:hover:not(.active) {
    background: #edf3fb;
}

.carsale-step.active {
    background: #1769f5;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(23,105,245,.25);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e8eef6;
    color: #536b89;
    font-size: 22px;
    font-weight: 700;
}

.carsale-step.active .step-number {
    background: white;
    color: #1769f5;
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.step-label {
    font-size: 14px;
}

.step-divider {
    width: 18px;
    height: 2px;
    flex-shrink: 0;
    background: #c7d4e5;
}

.carsale-step:focus-visible {
    outline: 3px solid #d49a37;
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .carsale-steps {
        width: 100%;
        justify-content: space-between;
        gap: 3px;
    }

    .carsale-step {
        padding: 7px;
        gap: 5px;
    }

    .step-divider {
        width: 8px;
    }

    .step-icon {
        display: none;
    }

    .step-label {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .carsale-steps {
        border-radius: 18px;
        padding: 5px;
    }

    .carsale-step {
        flex: 1;
        flex-direction: column;
        padding: 8px 3px;
        border-radius: 14px;
        min-width: 0;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 17px;
    }

    .step-label {
        font-size: 10px;
        white-space: normal;
        text-align: center;
    }

    .step-divider {
        display: none;
    }
}

/* ==========================================
   ELEMENTUL 6 - DESIGN CONFORM REFERINTEI
   ========================================== */

/* Eliminam fundalul si umbra containerului */
.carsale-steps {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    gap: 8px;
    margin-top: 18px;
}

/* Butoane compacte, fara fundal */
.carsale-step {
    background: transparent;
    box-shadow: none;
    padding: 5px 0;
    gap: 9px;
    border-radius: 0;
    color: #647d9e;
    font-size: 13px;
    font-weight: 500;
}

/* Etapa activa: text albastru, fara fundal */
.carsale-step.active {
    background: transparent;
    box-shadow: none;
    color: #1769f5;
    font-weight: 700;
}

/* Cercul etapei inactive */
.step-number {
    width: 38px;
    height: 38px;
    background: #e8eef6;
    color: #526987;
    font-size: 19px;
    font-weight: 700;
}

/* Doar cercul activ devine albastru */
.carsale-step.active .step-number {
    background: #1769f5;
    color: #ffffff;
}

/* Ascundem pictogramele */
.step-icon {
    display: none;
}

/* Text mai discret */
.step-label {
    font-size: 13px;
}

/* Separatoare subtiri */
.step-divider {
    width: 22px;
    height: 1px;
    background: #aebfd3;
    margin: 0 3px;
}

/* Efect la trecerea mouse-ului */
.carsale-step:hover:not(.active) {
    background: transparent;
    color: #1769f5;
}

/* Adaptare telefon */
@media (max-width: 600px) {
    .carsale-steps {
        width: 100%;
        gap: 4px;
        margin-top: 15px;
    }

    .carsale-step {
        flex: 1;
        padding: 5px 2px;
        gap: 5px;
        border-radius: 0;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 17px;
    }

    .step-label {
        font-size: 10px;
    }

    .step-divider {
        display: none;
    }
}


/* ELEMENTUL 6 - BANDA ALBA CU TRANSPARENTA SPRE MASINA */

.carsale-steps {
    position: relative;
    isolation: isolate;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 9px 15px 9px 0;
    border-radius: 0;
}

.carsale-steps::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -8px;
    bottom: -8px;
    left: -18px;
    right: -100px;
    border-radius: 12px;

    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.94) 0%,
        rgba(255,255,255,0.88) 45%,
        rgba(255,255,255,0.60) 72%,
        rgba(255,255,255,0.00) 100%
    );

    pointer-events: none;
}

@media (max-width: 600px) {
    .carsale-steps {
        padding: 8px 0;
    }

    .carsale-steps::before {
        left: -8px;
        right: -8px;
        top: -5px;
        bottom: -5px;
    }
}


/* ELEMENTUL 6 - BANDA ALBA MAI PROEMINENTA */

.carsale-steps::before {
    top: -12px;
    bottom: -12px;
    left: -22px;
    right: -150px;

    background: linear-gradient(
        90deg,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255,0.99) 35%,
        rgba(255,255,255,0.95) 60%,
        rgba(255,255,255,0.75) 80%,
        rgba(255,255,255,0) 100%
    );

    border-radius: 14px;
}


/* ELEMENTUL 6 - BANDA AURIE CARSALE.RO */

.carsale-steps::before {
    top: -12px;
    bottom: -12px;
    left: -22px;
    right: -150px;

    background: linear-gradient(
        90deg,
        rgba(212,154,55,0.95) 0%,
        rgba(225,176,88,0.92) 35%,
        rgba(237,198,126,0.85) 60%,
        rgba(245,216,162,0.60) 80%,
        rgba(245,216,162,0) 100%
    );

    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(157,105,27,0.12);
}


/* CARSALE.RO - ELEMENTUL 6 - SASE ETAPE FARA BANDA */

.carsale-steps {
    display: flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    gap: 5px;
    padding: 0;
    margin-top: 18px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.carsale-steps::before,
.carsale-steps::after {
    content: none !important;
    display: none !important;
}

.carsale-step {
    flex: 0 0 auto;
    gap: 6px;
    padding: 4px 0;
    background: transparent !important;
    box-shadow: none !important;
}

.carsale-step.active {
    color: #1769f5;
    font-weight: 700;
}

.carsale-step.active .step-number {
    background: #1769f5;
    color: #ffffff;
}

.step-number {
    width: 34px;
    height: 34px;
    font-size: 17px;
}

.step-label {
    font-size: 12px;
}

.step-icon {
    display: none !important;
}

.step-divider {
    width: 12px;
    height: 1px;
    margin: 0 2px;
    background: #aebfd3;
}

@media (max-width: 900px) {
    .carsale-steps {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px 12px;
    }

    .carsale-step {
        flex: 0 0 auto;
        flex-direction: row;
        gap: 5px;
    }

    .step-divider {
        display: none;
    }

    .step-label {
        font-size: 11px;
    }
}

@media (max-width: 600px) {
    .carsale-steps {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px 5px;
    }

    .carsale-step {
        flex-direction: column;
        min-width: 0;
    }

    .step-label {
        font-size: 10px;
        text-align: center;
    }
}
