/* =============================
   Sezione: Griglia biciclette
   ============================= */

   .griglia-biciclette {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.card-bici {
    flex: 1 1 calc(25% - 15px); /* Card su 4 colonne */
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fff;
    max-width: 200px;
}

.card-bici img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.card-bici h4 {
    margin-top: 8px;
    font-size: 1em;
}

.card-bici.selezionata {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px #0073aa55;
}

@media (max-width: 768px) {
    .card-bici {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.info-bici {
    margin-top: 8px;
    display: flex;
    align-items: center;
}

.info-bici-testo {
    font-size: 0.95em;
    color: #333;
    word-break: break-word;
}

/* =============================
   Sezione: Modulo prenotazione
   ============================= */

.noleggio-frontend-wrapper {
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.noleggio-frontend-wrapper .form-field {
    margin-bottom: 20px;
}

.noleggio-frontend-wrapper label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 15px;
}

/* Campi input e select */
.noleggio-frontend-wrapper input[type="text"],
.noleggio-frontend-wrapper input[type="email"],
.noleggio-frontend-wrapper select {
    width: 100%;
    max-width: 400px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    background-color: #fff; /* Sfondo bianco per tutti i campi */
    box-sizing: border-box;
}

/* Pulsante invio */
.btn-noleggio {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-noleggio:hover {
    background-color: #005f8d;
}

.noleggio-frontend-wrapper .btn-noleggio {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.noleggio-frontend-wrapper .btn-noleggio:hover {
    background-color: #005f8d;
}

/* =============================
   Sezione: Messaggi conferma/errore
   ============================= */

.messaggio-prenotazione {
    padding: 16px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    margin-top: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    color: inherit; /* Colore testo normale */
    text-align: center;
}

/* SOLO i messaggi sotto il form */
.noleggio-frontend-wrapper .messaggio-prenotazione.success {
    background-color: #e6f9ea;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.noleggio-frontend-wrapper .messaggio-prenotazione.error {
    background-color: #fdecea;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.messaggio-prenotazione svg {
    display: block;
    margin: 0 auto 12px auto;
    width: 48px;
    height: 48px;
}

.messaggio-prenotazione.success svg path,
.messaggio-prenotazione.success svg circle {
    stroke: #46b450; /* Verde */
    fill: none; /* Nessun riempimento */
}

.messaggio-prenotazione.error svg path,
.messaggio-prenotazione.error svg circle {
    stroke: #dc3232; /* Rosso */
    fill: none; /* Nessun riempimento */
}

.messaggio-prenotazione a {
    text-decoration: underline;
}

/* =============================
   Sezione: Responsive
   ============================= */

@media (max-width: 600px) {
    .noleggio-frontend-wrapper {
        padding: 15px;
    }
}
