/**
 * TN Noleggio – stili form prenotazione (stile rinnovo_booking)
 */

/* Container principale form */
.tn-noleggio-booking-wrap {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.tn-noleggio-booking-wrap .tn-noleggio-affiliate-notice {
    margin-bottom: 20px;
    padding: 10px 15px;
    background-color: #e8f5e9;
    border-radius: 8px;
    color: #333;
    font-weight: bold;
}

/* Box form (come #user-container in rinnovo_booking) */
.tn-noleggio-booking-wrap #tn-noleggio-booking-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 30px;
    padding: 30px;
    box-sizing: border-box;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1);
    background-color: #fff;
    border: 1px solid #eee;
}

/* Ogni campo in una colonna */
.tn-noleggio-booking-wrap #tn-noleggio-booking-form .tn-noleggio-field {
    display: flex;
    flex-direction: column;
}

/* Note e pulsante a tutta larghezza */
.tn-noleggio-booking-wrap #tn-noleggio-booking-form .tn-noleggio-field-full,
.tn-noleggio-booking-wrap #tn-noleggio-booking-form .tn-noleggio-submit-wrap {
    grid-column: 1 / -1;
}

/* Etichette */
.tn-noleggio-booking-wrap #tn-noleggio-booking-form label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

/* Input testo e email */
.tn-noleggio-booking-wrap #tn-noleggio-booking-form input[type="text"],
.tn-noleggio-booking-wrap #tn-noleggio-booking-form input[type="email"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    width: 95%;
    line-height: 2;
    box-sizing: border-box;
}

/* Textarea */
.tn-noleggio-booking-wrap #tn-noleggio-booking-form textarea {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    width: 95%;
    min-height: 80px;
    box-sizing: border-box;
    font-family: inherit;
}

/* Pulsante invio (come .button-submit in rinnovo_booking) */
.tn-noleggio-booking-wrap .tn-noleggio-submit {
    background-color: #adf7b6;
    color: black;
    border: 0 solid #ddd;
    border-radius: 10px;
    padding: 20px 80px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tn-noleggio-booking-wrap .tn-noleggio-submit:hover {
    background-color: lightgreen;
}

.tn-noleggio-booking-wrap .tn-noleggio-submit:disabled {
    background-color: rgba(173, 247, 182, 0.5);
    color: rgba(0, 0, 0, 0.5);
    cursor: not-allowed;
}

/* Riga messaggio (successo/errore) */
.tn-noleggio-booking-wrap .tn-noleggio-message {
    grid-column: 1 / -1;
    margin: 0;
    padding: 10px 0;
    font-weight: bold;
    min-height: 1.5em;
}

.tn-noleggio-booking-wrap .tn-noleggio-submit-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Mobile: una colonna */
@media (max-width: 600px) {
    .tn-noleggio-booking-wrap #tn-noleggio-booking-form {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .tn-noleggio-booking-wrap #tn-noleggio-booking-form input[type="text"],
    .tn-noleggio-booking-wrap #tn-noleggio-booking-form input[type="email"],
    .tn-noleggio-booking-wrap #tn-noleggio-booking-form textarea {
        width: 100%;
    }

    .tn-noleggio-booking-wrap .tn-noleggio-submit {
        padding: 20px 50px;
        width: 100%;
        max-width: 300px;
    }
}
