/* =========================================================================
   JUX TAP — pagine con modulo (lista, tavoli, prenota) sul tema Domex.
   Il markup è quello del template (page_title_section, booking_form_field):
   qui ci sono solo le cose che il template non ha — il banner con la foto
   del locale, l'avviso, le notifiche e il biglietto col QR.
   ========================================================================= */

/* --- BANNER DI PAGINA ------------------------------------------------ */
.page_title_section.jux-banner {
    background-image: url(images/hero/hero-2.jpg);
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
}

.jux-banner .page_header h1 {
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* --- SEZIONE DEL MODULO ---------------------------------------------- */
.booking_table_wrapper.jux-form {
    background-image: url(images/hero/sfondo-tavoli.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-bottom: 120px;
    position: relative;
}

.booking_table_wrapper.jux-form:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 10, 10, .88);
}

.booking_table_wrapper.jux-form .container {
    position: relative;
    z-index: 2;
}

/* il menu a tendina delle serate: il template non stila i select */
.booking_table_wrapper select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    color: #d8d8d8;
    cursor: pointer;
    padding-right: 30px;
}

.booking_table_wrapper select.form-control option {
    background-color: #1a1a1a;
    color: #d8d8d8;
}

/* --- AVVISO ---------------------------------------------------------- */
.jux-avviso {
    background-color: rgba(239, 94, 94, .08);
    border-left: 3px solid #ef5e5e;
    padding: 16px 20px;
    margin-bottom: 40px;
}

.jux-avviso p {
    margin: 0;
    color: #b9b9b9;
    font-size: 14px;
    line-height: 24px;
}

.jux-avviso i {
    color: #ef5e5e;
    margin-right: 8px;
}

.jux-avviso strong {
    color: #fff;
}

/* --- CONSENSO PRIVACY ------------------------------------------------- */
.jux-privacy {
    margin: 10px 8px 0;
    color: #a9a9a9;
    font-size: 14px;
    line-height: 24px;
}

.jux-privacy label {
    font-weight: 400;
    cursor: pointer;
}

.jux-privacy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ef5e5e;
    margin-right: 10px;
    vertical-align: -3px;
    cursor: pointer;
}

.jux-privacy a {
    color: #ef5e5e;
    text-decoration: underline;
}

/* --- BOTTONE BLOCCATO -------------------------------------------------- */
.tb_es_btn_wrapper button:disabled,
.tb_es_btn_wrapper button[disabled] {
    background: #3a3a3a;
    border-color: #3a3a3a;
    color: #8c8c8c;
    cursor: not-allowed;
    width: auto;
    padding: 0 28px;
}

.tb_es_btn_wrapper button {
    width: auto;
    min-width: 190px;
    padding: 0 34px;
    white-space: nowrap;   /* il JS cambia il testo: "Seleziona evento prima" */
}

/* --- NOTIFICHE (le crea il JS della pagina) --------------------------- */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    max-width: 420px;
    padding: 16px 22px;
    border-radius: 2px;
    font-size: 15px;
    line-height: 22px;
    z-index: 10000;
    cursor: pointer;
    animation: slideInRight .35s ease forwards;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .6);
}

.notification.success {
    background-color: #1c2a1c;
    color: #b8e6b8;
    border: 1px solid #3f6b3f;
}

.notification.error {
    background-color: #2a1616;
    color: #ffb3b3;
    border: 1px solid #ef5e5e;
}

.notification.info {
    background-color: #1a1a1a;
    color: #d8d8d8;
    border: 1px solid #3d3d3d;
}

@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(120%); opacity: 0; }
}

/* usate dal riquadro del biglietto QR, che il JS crea con stili in linea */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes popIn {
    from { transform: scale(.9); opacity: 0; }
    to   { transform: scale(1);  opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin-right: 8px;
    vertical-align: -3px;
}

/* il biglietto QR è su fondo bianco: le variabili servono ancora */
:root {
    --primary-white: #ffffff;
    --primary-black: #111111;
    --gray-500: #8c8c8c;
    --gray-600: #a9a9a9;
}

/* --- RIQUADRI DI STATO (posti rimasti, lista chiusa...) --------------- */
.status-box {
    background-color: #1a1a1a;
    border: 1px solid #2b2b2b;
    padding: 20px;
    margin-bottom: 30px;
}

.status-title {
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}

.status-count {
    color: #ef5e5e;
    font-weight: 700;
}

/* Il riquadro del form nel template è position:absolute (nell'originale
   sborda di proposito sulla mappa sotto). Senza mappa finisce addosso al
   footer: lo rimetto nel flusso. */
.booking_form_field {
    position: relative !important;
}

.booking_table_wrapper {
    padding-bottom: 100px !important;
}

/* --- link utili nel footer delle pagine interne ---------------------- */
.jux-link-utili li {
    margin-bottom: 10px;
}

.jux-link-utili a {
    color: #8c8c8c;
}

.jux-link-utili a:hover {
    color: #ef5e5e;
}

/* --- riquadro informativo che il JS dei tavoli crea al volo ----------- */
.info-box,
.tavolo-info-dynamic {
    background-color: rgba(255, 255, 255, .03);
    border: 1px solid #ef5e5e !important;   /* il JS lo mette bianco in linea */
    padding: 22px 26px;
    margin-bottom: 30px;
}

.info-box h4 {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 16px;
    margin-bottom: 14px;
}

.info-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.info-box ul li {
    color: #a9a9a9;
    font-size: 14px;
    line-height: 28px;
    padding-left: 18px;
    position: relative;
}

.info-box ul li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background-color: #ef5e5e;
    border-radius: 50%;
}

@keyframes fadeInUp {
    from { transform: translateY(14px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* --- esito della prenotazione (book.html) ---------------------------- */
.jux-esito {
    text-align: center;
    background-color: #1a1a1a;
    border: 1px solid #2b2b2b;
    padding: 60px 30px;
}

.jux-esito .success-icon i {
    font-size: 54px;
    color: #ef5e5e;
}

.jux-esito .success-title {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 20px 0 10px;
}

.jux-esito .success-text {
    color: #a9a9a9;
}

.jux-esito .success-details {
    color: #d8d8d8;
    margin: 24px 0;
}
