/* Fichier : css/mad.css */

/* --- 1. LE CONTENEUR PRINCIPAL (Invisible) --- */
/* Il englobe le titre ET le formulaire. On enlève le fond blanc ici. */
#mad-form {
    width: 100%;
    background-color: transparent; /* Transparent pour laisser voir le fond gris de la page */
    box-shadow: none;
    border: none;
    padding: 0;
}

/* --- 2. LE TITRE (Flotte au-dessus) --- */
#mad-form h3 {
    text-align: center; 
    color: #198754; 
    margin-bottom: 20px;
    font-weight: bold;
}

/* --- 3. LA BOÎTE BLANCHE (C'est votre <form>) --- */
/* On applique le style "carte" directement sur la balise form */
#mad-form #booking-form {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 0 auto; /* Centré */
    border-top: 4px solid #198754; /* La barre verte */
}

/* --- 4. ISOLATION DES ÉLÉMENTS INTERNES --- */

/* Les lignes */
#mad-form .form-row {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column; 
}

/* Les Labels */
#mad-form .form-row label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

/* Les Inputs et Selects */
/* On cible tous les inputs DANS #mad-form */
#mad-form input, 
#mad-form select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%; 
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Effet Focus (Vert) */
#mad-form input:focus, 
#mad-form select:focus {
    border-color: #198754; 
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.2); 
}

/* Le bouton Réserver */
#mad-form #reserver-btn {
    background-color: #198754; 
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.3s;
}

#mad-form #reserver-btn:hover {
    background-color: #157347;
}

/* Message d'erreur */
#mad-form .error-message {
    color: #dc3545;
    font-size: 0.9em;
    margin-top: 5px;
}