/* =============================================================
   ZS - BOOKING FORM STYLES
   Include: Party Selector, Email Suggestions, Phone Validation, Modal
   ============================================================= */


/* Nasconde il bottone per accedere a tutte le prenotazioni */
.rtb-modification-toggle {
    display: none !important;
}


/* ===== LAYOUT E STRUTTURA FORM ===== */

/* Form con sfondo trasparente */
.rtb-booking-form,
.booking-payment-wrapper {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInForm 0.6s ease-out; 
	max-width: 700px;
    padding-top: 30px;
  	padding-bottom: 30px;
	padding-left: 15px;  
	padding-right: 15px;
    margin: 0 auto !important;
    width: 100%;
}

@keyframes slideInForm {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fieldset styling */
.rtb-booking-form-form fieldset {
    border: none;
    padding: 0;
    margin: 0 0 35px 0;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
}

.rtb-booking-form-form fieldset:last-of-type {
    margin-bottom: 0;
}

/* Legend - titoli sezioni */
.rtb-booking-form-form legend {
    color: #1a1a2e;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #d4af37;
    display: block;
    width: 100%;
    flex: 0 0 100%;
}


/* ===== LAYOUT CAMPI ===== */

/* Tutti i campi al 100% di base */
.rtb-booking-form .rtb-text,
.rtb-booking-form .rtb-select {
    width: 100% !important;
    margin-bottom: 0;
}

/* Solo data/ora affiancati al 50% - QUESTO è DISATTIVATO SE ABBIAMO LE TIMESLOT CON CASELLE
.rtb-booking-form fieldset.reservation .rtb-text.date,
.rtb-booking-form fieldset.reservation .rtb-text.time {
    width: calc(50% - 7.5px) !important;
    flex: 0 0 calc(50% - 7.5px) !important;
}
*/

/* TUTTI GLI ALTRI CAMPI al 100% - larghezza piena */
.rtb-booking-form fieldset.reservation .rtb-select.party,
.rtb-booking-form fieldset.rtb-contact .rtb-text.name,
.rtb-booking-form fieldset.rtb-contact .rtb-text.email,
.rtb-booking-form fieldset.rtb-contact .rtb-text.phone,
.rtb-booking-form .rtb-textarea {
    width: 100% !important;
    flex: 0 0 100% !important;
}


/* ===== STILI CAMPI INPUT ===== */

/* Label styling */
.rtb-booking-form-form label {
    display: block;
    color: #1a1a2e;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input, Select, Textarea - Override max-width del plugin */
.rtb-booking-form input[type="text"],
.rtb-booking-form input[type="email"],
.rtb-booking-form input[type="tel"],
.rtb-booking-form select,
.rtb-booking-form textarea {
    max-width: none !important;
    width: 100% !important;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    color: #1a1a2e;
    background-color: #fafafa;
    box-sizing: border-box;
}

/* Focus state */
.rtb-booking-form-form input:focus,
.rtb-booking-form-form select:focus,
.rtb-booking-form-form textarea:focus {
    outline: none;
    border-color: #d4af37;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Placeholder */
.rtb-booking-form-form input::placeholder {
    color: #999;
}

/* Picker input (Date & Time) */
.picker__input {
    cursor: pointer !important;
}

/* Textarea */
.rtb-booking-form-form textarea {
    resize: vertical;
    min-height: 100px;
}


/* ===== PARTY SIZE CON CONTROLLI +/- ===== */

.rtb-booking-form-form .party {
    position: relative;
}

.rtb-booking-form-form .party select {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.party-size-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 14px 16px;
    background-color: #fafafa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.party-size-control:focus-within {
    border-color: #d4af37;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.party-size-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #d4af37;
    background: #fff;
    border-radius: 50%;
    color: #d4af37;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.party-size-btn:hover:not(:disabled) {
    background: #d4af37;
    color: #1a1a2e;
    transform: scale(1.1);
}

.party-size-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.party-size-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    min-width: 60px;
    text-align: center;
}


/* ===== ALTRI ELEMENTI ===== */

/* Link "Lascia un messaggio" */
.add-message a {
    color: #d4af37;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-message a:hover {
    color: #b8941f;
    text-decoration: underline;
}

.add-message {
    margin-bottom: 20px;
    width: 100%;
    flex: 0 0 100%;
}

/* Footer del form */
.rtb-form-footer {
    border: none;
    padding: 0;
    margin-top: 30px;
}




/* ===== BOTTONI SUBMIT (Booking + Stripe) ===== */

/* Assicuriamo che il container del bottone sia a larghezza piena */
.rtb-form-submit {
    width: 100%;
    display: block;
}

.rtb-booking-form-form button[type="submit"],
.rtb-form-submit button[type="submit"],
#stripe-submit {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #1a1a2e;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    display: block;
    margin: 0 auto;
}

.rtb-booking-form-form button[type="submit"]:hover,
.rtb-form-submit button[type="submit"]:hover,
#stripe-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}

.rtb-booking-form-form button[type="submit"]:active,
.rtb-form-submit button[type="submit"]:active,
#stripe-submit:active:not(:disabled) {
    transform: translateY(0);
}

/* Stato disabilitato per il bottone Stripe */
#stripe-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, #a0a0a0 0%, #808080 100%);
}


















  /* ============================================================= */
/* A SCOPO DI TEST TEMPORANEO - TIMESLOT */
/* ============================================================= */

   #rtb-time {
        display: none !important;
    }
    
    .rtb-booking-form-form .time label[for="rtb-time"] {
        display: none !important;
    }
    
    #rtb-time_root {
        display: none !important;
    }
    
    .pill-time-slots {
        margin-top: 20px;
        animation: fadeIn 0.4s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .pill-slots-title {
        font-size: 14px;
        font-weight: 600;
        color: #666;
        margin-bottom: 15px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .pill-slots-title span {
        position: relative;
        padding-bottom: 8px;
    }
    
    .pill-slots-title span::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 3px;
        background: linear-gradient(90deg, #ff9800, transparent);
        border-radius: 2px;
    }
    
    /* Griglia - ora contiene le sezioni */
    .pill-slots-grid {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }
    
    /* Sezione (Pranzo/Cena) */
    .time-section {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    /* Titolo sezione */
    .time-section-title {
        font-size: 13px;
        font-weight: 700;
        color: #333;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding-bottom: 8px;
        border-bottom: 2px solid #e0e0e0;
        position: relative;
    }
    
    .time-section-title::before {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 50px;
        height: 2px;
        background: #ff9800;
    }
    
    /* Griglia slot dentro ogni sezione */
    .time-section-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .pill-slot-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 18px;
        border: 2px solid #e0e0e0;
        border-radius: 50px;
        background: white;
        color: #333;
        font-weight: 600;
        font-size: 15px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    .pill-time {
        position: relative;
        z-index: 2;
        transition: transform 0.3s ease;
    }
    
    .pill-icon {
        font-size: 18px;
        opacity: 0;
        transform: translateX(-10px);
        transition: all 0.3s ease;
        position: relative;
        z-index: 2;
    }
    
    .pill-slot-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, #ff9800, #f57c00);
        transition: left 0.4s ease;
        z-index: 1;
    }
    
    .pill-slot-btn:hover {
        border-color: #ff9800;
        transform: translateX(4px);
        box-shadow: 0 4px 12px rgba(255, 152, 0, 0.25);
    }
    
    .pill-slot-btn:hover::before {
        left: 0;
    }
    
    .pill-slot-btn:hover .pill-time,
    .pill-slot-btn:hover .pill-icon {
        color: white;
    }
    
    .pill-slot-btn:hover .pill-icon {
        opacity: 1;
        transform: translateX(0);
    }
    
    .pill-slot-btn.selected {
        background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
        border-color: #ff9800;
        color: white;
        box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
        transform: translateX(4px);
    }
    
    .pill-slot-btn.selected::before {
        left: 0;
    }
    
    .pill-slot-btn.selected .pill-time {
        color: white;
    }
    
    .pill-slot-btn.selected .pill-icon {
        opacity: 1;
        transform: translateX(0) rotate(45deg);
        color: white;
    }
    
    .pill-slot-btn.selected::after {
        content: '✓';
        position: absolute;
        top: -6px;
        right: -6px;
        background: #4caf50;
        color: white;
        font-size: 12px;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
        animation: badgeBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    @keyframes badgeBounce {
        0% { transform: scale(0) rotate(-45deg); }
        100% { transform: scale(1) rotate(0); }
    }
    
    .pill-slot-btn {
        animation: slideInLeft 0.4s ease backwards;
    }
    
    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .pill-slot-btn:nth-child(1) { animation-delay: 0.05s; }
    .pill-slot-btn:nth-child(2) { animation-delay: 0.08s; }
    .pill-slot-btn:nth-child(3) { animation-delay: 0.11s; }
    .pill-slot-btn:nth-child(4) { animation-delay: 0.12s; }
    .pill-slot-btn:nth-child(5) { animation-delay: 0.14s; }
    .pill-slot-btn:nth-child(6) { animation-delay: 0.16s; }
    .pill-slot-btn:nth-child(7) { animation-delay: 0.18s; }
    .pill-slot-btn:nth-child(8) { animation-delay: 0.20s; }
    .pill-slot-btn:nth-child(9) { animation-delay: 0.22s; }
    .pill-slot-btn:nth-child(10) { animation-delay: 0.24s; }
  



/* =============================================================
/* PICKER CALENDARIO - DA SISTEMARE E CONTROLLARE SE CI SONO DUPLICATI NEL FOGLIO */
/*   ============================================================= */

    /* Container principale */
    .picker__holder {
        background: white !important;
        border-radius: 16px !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
        border: none !important;
    }
    
    .picker__frame {
        padding: 0 !important;
    }
    
    .picker__wrap {
        padding: 24px !important;
    }
    
    .picker__box {
        background: white !important;
        padding: 0 !important;
    }
    
    /* Header - Centrato */
    .picker__header {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding-bottom: 20px !important;
        margin-bottom: 20px !important;
        border: none !important;
        position: relative !important;
    }
    
    .picker__month,
    .picker__year {
        font-size: 20px !important;
        font-weight: 600 !important;
        color: #000 !important;
        text-align: center !important;
    }
    
    .picker__month {
        margin-right: 6px !important;
    }
    
    .picker__nav--disabled {
        opacity: 0.2 !important;
        pointer-events: none !important;
    }
    
/* Tabella */
.picker__table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 8px !important;
}

.picker__table td,
.picker__table th {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}
    
/* Giorni settimana - Versione più evidente */
.picker__weekday {
    padding: 20px 8px 16px 8px !important;   
    font-size: 16px !important;
    font-weight: 700 !important;            
    color: #000 !important;
    text-align: center !important;
    text-transform: lowercase !important;   
}
    
    /* Celle giorni - PERFETTAMENTE CIRCOLARI */
    .picker__day {
        width: 48px !important;
        height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        font-size: 16px !important;
        font-weight: 400 !important;
        color: #000 !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        margin: 0 auto !important;
        background: white !important;
    }
    
    /* NASCONDI le celle vuote (senza numero) */
    td[role="presentation"]:empty,
    .picker__day:empty {
        visibility: hidden !important;
    }
    
    /* Giorni disponibili - Ombra soft */
    .picker__day--infocus:not(.picker__day--disabled):not(.picker__day--today):not(.picker__day--selected) {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Hover discreto */
    .picker__day--infocus:not(.picker__day--disabled):hover {
        transform: scale(1.05) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }
    
    /* Oggi */
    .picker__day--today {
        font-weight: 600 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Selezionato */
    .picker__day--selected,
    .picker__day--highlighted {
        background: #000 !important;
        color: white !important;
        font-weight: 500 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    }
    
    /* Disabilitati - Quasi invisibili */
    .picker__day--disabled {
        color: #e8e8e8 !important;
        cursor: not-allowed !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    
    .picker__day--disabled:hover {
        transform: none !important;
    }
    
    /* Fuori mese - Ancora più chiari */
    .picker__day--outfocus {
        color: #f5f5f5 !important;
    }
    
    .picker__day--outfocus.picker__day--disabled {
        color: #fafafa !important;
    }
    
    /* Footer - Nascosto per look più pulito */
    .picker__footer {
        display: none !important;
    }
    
    /* Input */
    #rtb-date {
        padding: 12px 16px !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 8px !important;
        font-size: 15px !important;
        color: #000 !important;
        transition: border-color 0.2s ease !important;
        cursor: pointer !important;
        font-weight: 500 !important;
    }
    
    #rtb-date:focus,
    #rtb-date:hover {
        border-color: #000 !important;
        outline: none !important;
    }
    
    /* Responsive */
    @media (max-width: 480px) {
        .picker__wrap {
            padding: 20px !important;
        }
        
        .picker__day {
            width: 42px !important;
            height: 42px !important;
            font-size: 15px !important;
        }
        
        .picker__table {
            border-spacing: 6px !important;
        }
        
        .picker__weekday {
            font-size: 13px !important;
        }
    }







/* =============================================================
   SEZIONE 1: SELETTORE COPERTI (PARTY SIZE)
   ============================================================= */

.party-size-control {
    position: relative;
    transition: all 0.3s ease;
}

/* Messaggio di errore validazione */
.party-validation-error {
    position: absolute;
    top: -35px;
    left: 0;
    background: #f44336;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
    z-index: 1000;
}

.party-validation-error::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #f44336;
}

/* Errore visibile */
.party-error-visible {
    opacity: 1;
    transform: translateY(0);
    animation: errorShake 0.5s ease;
}

@keyframes errorShake {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-3px); }
    75% { transform: translateY(3px); }
}

/* Stato errore sul controllo */
.party-error-state {
    animation: pulseError 0.5s ease;
}

.party-error-state .party-size-btn,
.party-error-state .party-size-value {
    border-color: #f44336 !important;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1) !important;
}

@keyframes pulseError {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.party-size-value {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

/* Stato vuoto */
.party-size-value.party-size-empty {
    color: #bdbdbd;
    font-size: 20px;
}

/* Animazione reset */
.party-reset-animation {
    animation: resetPulse 1s ease-in-out;
}

.party-reset-animation .party-size-value {
    animation: resetFlash 1s ease-in-out;
}

@keyframes resetPulse {
    0%, 100% { transform: scale(1); }
    15%, 45% { transform: scale(1.08); }
    30%, 60% { transform: scale(1.05); }
}

@keyframes resetFlash {
    0% { 
        background: transparent;
        color: inherit;
        transform: scale(1);
    }
    20% { 
        background: #ff9800;
        color: white;
        transform: scale(1.15);
        box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2);
    }
    50% { 
        background: #ff9800;
        color: white;
        transform: scale(1.1);
        box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.15);
    }
    100% { 
        background: transparent;
        color: inherit;
        transform: scale(1);
        box-shadow: none;
    }
}


/* =============================================================
   SEZIONE 2: SUGGERIMENTI EMAIL (MAILCHECK)
   ============================================================= */

.email-suggestion-box {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 8px 12px;
    margin-top: 5px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    display: block;
    width: 100%;
    box-sizing: border-box;
    animation: fadeInEmail 0.3s;
}

.email-suggestion-box span {
    font-weight: bold;
    text-decoration: underline;
}

.email-suggestion-box:hover {
    background-color: #f1b0b7;
}

@keyframes fadeInEmail {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}


/* =============================================================
   SEZIONE 3: VALIDAZIONE TELEFONO (INTL-TEL-INPUT)
   ============================================================= */

.iti { 
    width: 100% !important; 
    display: block !important; 
    margin-bottom: 5px !important; 
}

.phone-error-msg {
    color: #d63638 !important; 
    font-weight: bold !important; 
    font-size: 13px !important; 
    margin-top: 5px !important;
    display: none; 
    padding: 8px !important; 
    border: 1px solid #d63638 !important;
    background: #ffebeb !important; 
    border-radius: 4px !important;
}

input.phone-error-border { 
    border: 1px solid #d63638 !important; 
    background-color: #fff8f8 !important; 
}


/* =============================================================
   SEZIONE 4: MODALE RIEPILOGO PRENOTAZIONE
   ============================================================= */

#rtb-confirm-modal {
    display: none; /* NON usare !important per permettere a jQuery di modificarlo */
    position: fixed !important; 
    z-index: 999999 !important; 
    left: 0 !important; 
    top: 0 !important;
    width: 100% !important; 
    height: 100% !important; 
    overflow: auto !important;
    background-color: rgba(0,0,0,0.6) !important; 
    backdrop-filter: blur(3px) !important;
}

.rtb-modal-content {
    background-color: #fff !important; 
    margin: 5% auto !important; 
    padding: 0 !important; 
    border-radius: 8px !important;
    width: 90% !important; 
    max-width: 500px !important; 
    box-shadow: 0 15px 30px rgba(0,0,0,0.3) !important;
    animation: modalFadeIn 0.3s !important; 
    font-family: inherit !important;
}

.rtb-modal-header {
    padding: 15px 20px !important; 
    background: #f8f9fa !important; 
    border-bottom: 1px solid #eee !important;
    border-radius: 8px 8px 0 0 !important; 
    display: flex !important; 
    justify-content: space-between !important; 
    align-items: center !important;
}

.rtb-modal-header h3 { 
    margin: 0 !important; 
    color: #333 !important; 
    font-size: 18px !important; 
    font-weight: 700 !important; 
}

#closeModalX {
    color: #666 !important;
    font-size: 28px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

#closeModalX:hover {
    color: #333 !important;
    transform: rotate(90deg) !important;
}

/* Corpo Modale */
.rtb-modal-body { 
    padding: 20px 30px !important; 
    color: #444 !important; 
    font-size: 15px !important; 
    line-height: 1.6 !important; 
}

/* Testo descrittivo */
.rtb-modal-body p {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 20px !important;
    margin-top: 0 !important;
    display: block !important;
}

/* Lista Dati */
.rtb-modal-body ul { 
    list-style: none !important; 
    padding: 0 !important; 
    margin: 0 !important; 
    background: #f9f9f9 !important; 
    border-radius: 6px !important; 
    padding: 15px !important; 
    border: 1px solid #eee !important;
    width: 100% !important; 
    box-sizing: border-box !important;
}

.rtb-modal-body li { 
    margin-bottom: 8px !important; 
    border-bottom: 1px solid #e5e5e5 !important; 
    padding-bottom: 8px !important; 
    display: flex !important; 
    justify-content: space-between !important; 
    align-items: center !important;
}

.rtb-modal-body li:last-child { 
    border-bottom: none !important; 
    margin-bottom: 0 !important; 
    padding-bottom: 0 !important; 
}

.rtb-modal-body li strong { 
    color: #111 !important; 
    font-weight: 600 !important; 
}

/* Footer Modale */
.rtb-modal-footer {
    padding: 15px 20px !important; 
    border-top: 1px solid #eee !important; 
    text-align: right !important;
    background: #fff !important; 
    border-radius: 0 0 8px 8px !important; 
    display: flex !important; 
    justify-content: flex-end !important; 
    gap: 10px !important;
}

.btn-modal-cancel { 
    background: #e2e6ea !important; 
    color: #333 !important; 
    border: none !important; 
    padding: 12px 20px !important; 
    border-radius: 4px !important; 
    cursor: pointer !important; 
    font-weight: 600 !important;
    transition: all 0.3s !important;
}

.btn-modal-cancel:hover {
    background: #d0d4d8 !important;
}

.btn-modal-confirm { 
    background: #2271b1 !important; 
    color: #fff !important; 
    border: none !important; 
    padding: 12px 20px !important; 
    border-radius: 4px !important; 
    cursor: pointer !important; 
    font-weight: 600 !important;
    transition: all 0.3s !important;
}

.btn-modal-confirm:hover { 
    background: #135e96 !important; 
}

.btn-modal-confirm:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

@keyframes modalFadeIn { 
    from {
        opacity: 0 !important; 
        transform: translateY(-20px) !important;
    } 
    to {
        opacity: 1 !important; 
        transform: translateY(0) !important;
    } 
}


/* =============================================================
   SEZIONE 5: RESPONSIVE
   ============================================================= */

@media (max-width: 768px) {
  
     .rtb-booking-form-form {
        padding: 30px 20px;
    }

    .rtb-booking-form fieldset.reservation .rtb-text.date,
    .rtb-booking-form fieldset.reservation .rtb-text.time {
        width: 100% !important;
        flex: 0 0 100% !important;
    }

    .rtb-booking-form-form legend {
        font-size: 16px;
    }
  
  
    .rtb-modal-content {
        width: 95% !important;
        margin: 10% auto !important;
    }
    
    .rtb-modal-body {
        padding: 15px 20px !important;
    }
    
    .rtb-modal-footer {
        flex-direction: column !important;
    }
    
    .btn-modal-cancel,
    .btn-modal-confirm {
        width: 100% !important;
    }
  
         .time-section-grid {
            grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
            gap: 8px;
        }
        
        .pill-slot-btn {
            padding: 10px 14px;
            font-size: 14px;
        }
  
}

@media (max-width: 480px) {
  
   .rtb-booking-form-form {
        padding: 20px 15px;
    }

    .rtb-booking-form-form legend {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .party-validation-error {
        font-size: 12px !important;
        padding: 6px 10px !important;
    }
  
  .time-section-grid {
            grid-template-columns: repeat(3, 1fr);
        }
  
    
    .rtb-booking-form-form button[type="submit"],
    #stripe-submit {
        font-size: 14px;
        padding: 12px;
    }
        
        .pill-slot-btn {
            font-size: 13px;
            padding: 10px 12px;
        }
    
    #closeModalX {
        font-size: 24px !important;
    }
}