/**
 * Styles pour le formulaire de réservation optimisé
 */

/* Conteneur principal */
.booking-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Indicateur de progression */
.booking-form-progress {
    display: flex;
    justify-content: space-between;
    margin: 0 0 30px 0;
    padding: 0;
    list-style: none;
}

.booking-form-progress li {
    position: relative;
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
}

.booking-form-progress li.active {
    background-color: #0073aa;
    color: #fff;
}

.booking-form-progress li.completed {
    background-color: #4CAF50;
    color: #fff;
}

.booking-form-progress li::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    height: 2px;
    width: calc(100% - 40px);
    background-color: #f0f0f0;
    transform: translateY(-50%);
}

.booking-form-progress li:last-child::after {
    display: none;
}

.booking-form-progress li.active::after,
.booking-form-progress li.completed::after {
    background-color: #0073aa;
}

/* Étapes du formulaire */
.booking-step {
    background-color: #fff;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.booking-step h3 {
    margin-top: 0;
    color: #0073aa;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Liste des formations */
.formations-list,
.slots-list,
.products-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
}

.formation-item,
.slot-item,
.product-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.formation-item:hover,
.slot-item:hover,
.product-item:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-color: #0073aa;
}

.formation-item.selected,
.slot-item.selected,
.product-item.selected {
    border-color: #0073aa;
    background-color: rgba(0, 115, 170, 0.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.formation-item h4,
.product-item h4 {
    margin-top: 0;
    color: #333;
}

.formation-meta,
.slot-meta {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
    display: flex;
    justify-content: space-between;
}

.slot-date {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    text-transform: capitalize;
}

.slot-time {
    color: #0073aa;
    font-weight: bold;
}

.product-price {
    font-weight: bold;
    color: #4CAF50;
    text-align: right;
    margin-top: 10px;
    font-size: 1.1em;
}

/* Formulaire d'informations personnelles */
.personal-info-form {
    max-width: 500px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.error-message {
    color: #d32f2f;
    font-size: 0.9em;
    margin-top: 5px;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

/* Boutons */
button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.back-button {
    background-color: #f0f0f0;
    color: #666;
    margin-bottom: 20px;
}

.back-button:hover {
    background-color: #e0e0e0;
}

.submit-button,
.checkout-button {
    background-color: #0073aa;
    color: white;
    padding: 12px 24px;
}

.submit-button:hover,
.checkout-button:hover {
    background-color: #005d8c;
}

.submit-button:disabled,
.checkout-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Messages */
.loading {
    color: #666;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.success-message {
    color: #4CAF50;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Débogue */
.wptotem-debug {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 20px;
    font-family: monospace;
    font-size: 14px;
}

.wptotem-debug p {
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .formations-list,
    .slots-list,
    .products-list {
        grid-template-columns: 1fr;
    }
}
