.sav-form-widget {
    max-width: 100%;
    display: flex;
    gap: 40px;
    background: #fafafa;
    padding: 30px;
    border-radius: 8px;
}

.sav-form-stepper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 200px;
    padding-right: 30px;
    border-right: 2px solid #e8e8e8;
    position: relative;
}

.sav-form-stepper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: -2px;
    width: 2px;
    background: linear-gradient(to bottom, #e8e8e8 0%, #e8e8e8 20%, transparent 20%, transparent 80%, #e8e8e8 80%, #e8e8e8 100%);
    z-index: 0;
}

.sav-form-step {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.sav-form-step:hover {
    background: #f5f5f5;
}

.sav-form-step-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #999;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sav-form-step.active .sav-form-step-number {
    background: #fff;
    border-color: #e63946;
    color: #e63946;
}

.sav-form-step.completed .sav-form-step-number {
    background: #e63946;
    border-color: #e63946;
    color: #fff;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.2);
}

.sav-form-step-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.sav-form-step.active .sav-form-step-label {
    color: #e63946;
    font-weight: 600;
}

.sav-form-step.completed .sav-form-step-label {
    color: #e63946;
    font-weight: 500;
}

.sav-form-container {
    flex: 1;
}

.sav-form {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sav-form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.sav-form-step-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sav-form-step-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #2c2c2c;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.sav-form-field {
    margin-bottom: 20px;
}

.sav-form-field label {
    display: flex;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c2c2c;
    font-size: 14px;
}

.sav-form-required {
    color: #e63946;
}

.sav-form-field input[type="text"],
.sav-form-field input[type="email"],
.sav-form-field input[type="tel"],
.sav-form-field input[type="number"],
.sav-form-field select,
.sav-form-field textarea {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #ffffff;
    color: #2c2c2c;
}

.sav-form-field input[type="text"]:focus,
.sav-form-field input[type="email"]:focus,
.sav-form-field input[type="tel"]:focus,
.sav-form-field input[type="number"]:focus,
.sav-form-field select:focus,
.sav-form-field textarea:focus {
    background: #fff;
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.sav-form-field input:focus,
.sav-form-field select:focus,
.sav-form-field textarea:focus {
    outline: none;
    border-color: #e63946;
}

.sav-form-field input.error,
.sav-form-field select.error,
.sav-form-field textarea.error {
    border-color: #e63946;
}

/* Caret visible pour les selects "Référence article" et "Motif du retour" */
.sav-form-select-wrapper {
    position: relative;
    display: block;
}

.sav-form-select-wrapper::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
    pointer-events: none;
}

.sav-form-reference-select,
.sav-form-motif-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 38px;
    width: 100%;
}

.sav-form-error {
    color: #e63946;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.sav-form-error.show {
    display: block;
}

.sav-form-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sav-form-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.sav-form-checkbox:hover {
    border-color: #e63946;
    background: #fff5f5;
    box-shadow: 0 2px 4px rgba(230, 57, 70, 0.1);
}

.sav-form-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #e63946;
}

.sav-form-checkbox input[type="checkbox"]:checked+span {
    font-weight: 600;
    color: #e63946;
}

.sav-form-radios {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sav-form-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.sav-form-radio:hover {
    border-color: #e63946;
    background: #fff5f5;
    box-shadow: 0 2px 4px rgba(230, 57, 70, 0.1);
}

.sav-form-radio input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #e63946;
}

.sav-form-radio input[type="radio"]:checked+span {
    font-weight: 600;
    color: #e63946;
}

.sav-form-return-blocks {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sav-form-return-block {
    padding: 25px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #f8f8f8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.sav-form-return-block-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c2c2c;
    padding-bottom: 12px;
    border-bottom: 2px solid #e63946;
}

.sav-form-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px 20px;
}

@media (max-width: 768px) {
    .sav-form-widget {
        flex-direction: column;
        padding: 20px;
    }

    .sav-form-stepper {
        flex-direction: row;
        justify-content: space-between;
        min-width: auto;
        padding-right: 0;
        padding-bottom: 20px;
        border-right: none;
        border-bottom: 2px solid #e8e8e8;
    }

    .sav-form-stepper::after {
        display: none;
    }

    .sav-form-step {
        flex-direction: column;
        flex: 1;
        text-align: center;
    }

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

    .sav-form {
        padding: 20px;
        margin-inline: 10px;
    }

    .sav-form-fields-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.sav-form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.sav-form-btn {
    flex: 1;
    padding: 7px 20px;
    height: 45px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.sav-form-btn-prev {
    background: #f5f5f5;
    color: #2c2c2c !important;
    border: 1px solid #e0e0e0;
}

.sav-form-btn-prev:hover {
    background: #e8e8e8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sav-form-btn-next,
.sav-form-btn-submit {
    background: #e63946;
    color: #fff;
}

.sav-form-btn-prev[style*="display: none"] + .sav-form-btn-next,
.sav-form-btn-prev[style*="display: none"] + .sav-form-btn-submit {
    flex: none;
    width: 30%;
}

.sav-form-btn-next:hover,
.sav-form-btn-submit:hover {
    background: #c5303c;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.4);
}

.sav-form-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sav-form-message {
    border-radius: 8px;
    font-size: 14px;
}

.sav-form-message.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 48px 32px;
    text-align: center;
}

.sav-form-success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sav-form-success-icon {
    width: 56px;
    height: 56px;
    color: #16a34a;
}

.sav-form-success-title {
    font-size: 22px;
    font-weight: 700;
    color: #0B3954;
    margin: 0;
}

.sav-form-success-text {
    font-size: 15px;
    color: #555;
    margin: 0;
    max-width: 480px;
    line-height: 1.6;
}

.sav-form-btn-new {
    margin-top: 12px;
    background: #0B3954;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sav-form-btn-new:hover {
    background: #e3001a;
}

.sav-form-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 15px;
}

.sav-form-file-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.sav-form-file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.sav-form-file-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #2c2c2c !important;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sav-form-file-button:hover {
    background: #e63946;
    border-color: #e63946;
    color: #fff;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

.sav-form-file-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sav-form-file-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sav-form-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 13px;
}

.sav-form-file-item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sav-form-file-item-remove {
    padding: 4px 12px;
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.3s ease;
    font-family: inherit;
}

.sav-form-file-item-remove:hover {
    background: #c5303c;
}

.sav-form-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Sélecteur de quantité en blocs visuels */
.sav-form-quantity-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.sav-form-quantity-block {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 50px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f5f5f5;
    font-size: 18px;
    font-weight: 600;
    color: #2c2c2c;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.sav-form-quantity-block:hover {
    border-color: #e63946;
    background: #fff5f5;
    box-shadow: 0 2px 6px rgba(230, 57, 70, 0.15);
}

.sav-form-quantity-block.selected {
    border-color: #e63946;
    background: #e63946;
    color: #fff;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

.sav-form-quantity-block-more {
    width: auto;
    min-width: 60px;
    padding: 0 15px;
    font-size: 20px;
    font-weight: 800;
}

.sav-form-quantity-custom {
    display: none;
    margin-top: 10px;
}

.sav-form-quantity-custom.show {
    display: block;
}

.sav-form-quantity-custom input {
    width: 120px;
}

.sav-form-quantity-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sav-form-quantity-selector.error .sav-form-quantity-block {
    border-color: #e63946;
}

@media (max-width: 768px) {
    .sav-form-quantity-selector {
        justify-content: flex-start;
    }

    .sav-form-quantity-block {
        width: 50px;
        height: 45px;
        font-size: 16px;
    }

    .sav-form-quantity-block-more {
        width: 50px;
        min-width: 50px;
        padding: 0;
    }
}

@media (max-width: 475px) {
    .sav-form-btn-prev[style*="display: none"] + .sav-form-btn-next,
    .sav-form-btn-prev[style*="display: none"] + .sav-form-btn-submit {
        width: 50%;
        margin: auto;
    }
}

@media (max-width: 375px) {
    .sav-form-stepper {
        gap: 0;
    }

    .sav-form-navigation {
        gap: 10px;
    }

    .sav-form-btn {
        padding: 7px 10px;
        font-size: 14px;
    }
}