/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* ===== Five Star Reservation Form - Restaurant Reservations Plugin ===== */

/* Container principale del form */
.rtb-booking-form {
    max-width: 700px;
    margin: 50px auto;
    padding: 0;
}

/* Formulario */
.rtb-booking-form-form {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInForm 0.6s ease-out;
}

@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;
}

.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%;
}

/* Div contenitori campi */
.rtb-booking-form-form .rtb-text,
.rtb-booking-form-form .rtb-select,
.rtb-booking-form-form .rtb-textarea {
    margin-bottom: 20px;
}

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

/* Input, Select, Textarea */
.rtb-booking-form-form input[type="text"],
.rtb-booking-form-form input[type="email"],
.rtb-booking-form-form input[type="tel"],
.rtb-booking-form-form select,
.rtb-booking-form-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    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;
}

/* Layout a due colonne per data/ora e nome/email */
.reservation .rtb-text.date,
.reservation .rtb-text.time,
.rtb-contact .rtb-text.name,
.rtb-contact .rtb-text.email {
    display: inline-block;
    width: calc(50% - 10px);
    margin-right: 20px;
    margin-bottom: 20px;
    vertical-align: top;
}

.reservation .rtb-text.time,
.rtb-contact .rtb-text.email {
    margin-right: 0;
}

/* Select numero persone - larghezza piena */
.rtb-booking-form-form .party {
    margin-bottom: 20px;
}

/* 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;
}

/* reCAPTCHA */
#rtb_recaptcha {
    margin-bottom: 20px;
}

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

/* Bottone submit */
.rtb-booking-form-form button[type="submit"] {
    width: 100%;
    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);
}

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

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

/* ===== PICKADATE CUSTOM STYLING ===== */

/* Picker generale */
.picker {
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3) !important;
}

.picker__frame {
    border-radius: 15px;
}

/* Header del picker */
.picker__header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #d4af37;
    border-radius: 15px 15px 0 0;
}

.picker__month,
.picker__year {
    color: #d4af37;
    font-weight: 600;
}

/* Giorni disponibili */
.picker__day:not(.picker__day--disabled) {
    color: #1a1a2e;
    background: #f0f0f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.picker__day:not(.picker__day--disabled):hover {
    background: #d4af37;
    color: #1a1a2e;
    transform: scale(1.05);
}

/* Giorno selezionato */
.picker__day--highlighted {
    background: #d4af37 !important;
    color: #1a1a2e !important;
    font-weight: 700;
}

/* Bottoni picker */
.picker__button--today,
.picker__button--clear,
.picker__button--close {
    background: #d4af37 !important;
    color: #1a1a2e !important;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.picker__button--today:hover:not(:disabled),
.picker__button--clear:hover:not(:disabled),
.picker__button--close:hover:not(:disabled) {
    background: #b8941f !important;
    transform: translateY(-2px);
}

/* Time picker */
.picker--time .picker__list-item:not(.picker__list-item--disabled) {
    color: #1a1a2e;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.picker--time .picker__list-item:not(.picker__list-item--disabled):hover {
    background: #d4af37;
    color: #1a1a2e;
}

.picker--time .picker__list-item--highlighted {
    background: #d4af37;
    color: #1a1a2e;
    font-weight: 700;
}

/* ===== RESPONSIVE ===== */

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

    .reservation .rtb-text.date,
    .reservation .rtb-text.time,
    .rtb-contact .rtb-text.name,
    .rtb-contact .rtb-text.email {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .rtb-booking-form-form legend {
        font-size: 16px;
    }
}

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

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

    .rtb-booking-form-form button[type="submit"] {
        font-size: 14px;
        padding: 12px;
    }
}