/**
 * CSS pour le formulaire d'inscription en 4 étapes
 */

 .multi-step-registration-form {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.steps-indicator ul {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 0 0 30px;
    list-style: none;
}

.steps-indicator li {
    position: relative;
    padding: 10px 15px;
    flex: 1;
    text-align: center;
    background-color: #f5f5f5;
    color: #666;
    font-size: 14px;
    cursor: default;
    border-radius: 4px;
    margin: 0 5px;
}

.steps-indicator li:first-child {
    margin-left: 0;
}

.steps-indicator li:last-child {
    margin-right: 0;
}

.steps-indicator li.active {
    background-color: #96588a; /* Couleur principale de WooCommerce */
    color: #fff;
    font-weight: bold;
}

.steps-indicator li.completed {
    background-color: #c9aec2; /* Version plus claire de la couleur WooCommerce */
    color: #fff;
}

.steps-indicator li::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -15px;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background-color: #ddd;
    z-index: -1;
}

.steps-indicator li:last-child::after {
    display: none;
}

.registration-step {
    display: none;
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.registration-step.active {
    display: block;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="password"],
.form-row select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 15px;
}

.checkbox-row {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.checkbox-row input[type="checkbox"] {
    margin-right: 10px;
}

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

button.prev-step,
button.next-step,
button.submit-registration {
    padding: 12px 20px;
    background-color: #96588a;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

button.prev-step {
    background-color: #777;
}

button.next-step:hover,
button.submit-registration:hover {
    background-color: #7c4272;
}

button.prev-step:hover {
    background-color: #666;
}

.registration-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.registration-message.success {
    background-color: #f0f9eb;
    color: #67c23a;
    border: 1px solid #e1f3d8;
    display: block;
}

.registration-message.error {
    background-color: #fef0f0;
    color: #f56c6c;
    border: 1px solid #fde2e2;
    display: block;
}

/* Responsive styles */
@media (max-width: 768px) {
    .steps-indicator ul {
        flex-direction: column;
    }
    
    .steps-indicator li {
        margin: 5px 0;
    }
    
    .steps-indicator li::after {
        display: none;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    button.prev-step,
    button.next-step,
    button.submit-registration {
        width: 100%;
    }
}

/* Style pour les champs obligatoires */
.required {
    color: #f00;
}

/* Style pour les messages d'erreur de validation */
.error-message {
    color: #f56c6c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Animation pour les transitions d'étapes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.registration-step.active {
    animation: fadeIn 0.4s ease-in-out;
}

/* Styles pour la page "Mes réductions" dans le compte */
.woocommerce-account .woocommerce-MyAccount-content .reductions-options {
    margin-bottom: 30px;
}

.woocommerce-account .woocommerce-MyAccount-content .reductions-options .form-row {
    margin-bottom: 15px;
    padding: 12px 15px;
    background-color: #f8f8f8;
    border-radius: 4px;
    border-left: 3px solid #96588a;
}

.woocommerce-account .woocommerce-MyAccount-content .reductions-options label {
    display: flex;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
}

.woocommerce-account .woocommerce-MyAccount-content .reductions-options input[type="checkbox"] {
    margin-right: 10px;
}

.woocommerce-account .woocommerce-MyAccount-content .reductions-options .description {
    display: block;
    margin-top: 5px;
    padding-left: 25px;
    color: #777;
    font-size: 0.9em;
}