:root {
    --bg-time-slot-libero: #d0ffb7;
    --bg-time-slot-selezionato: lightgreen;
    --bg-time-slot-disabilitato: lightgray;
    --bg-time-slot-occupato: #ff686b;
    --bg-time-slot-libero-hover: #bbfc99;

    --txt-time-slot-libero: black;
    --txt-time-slot-selezionato: black;
    --txt-time-slot-disabilitato: white;
    --txt-time-slot-occupato: black;
    --txt-time-slot-libero-hover: black;

    --medico-days-color: black;
}


/* Box medico */
#medico-days {
    padding-bottom: 50px;
    color: var(--medico-days-color);
}

/* Form utente*/
#user-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 50px;
    padding: 30px;
    box-sizing: border-box;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
}

/* Stile per i singoli campi del modulo */
#user-container div {
    display: flex;
    flex-direction: column;
}

/* Stile per le etichette */
#user-container label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

/* Stile per gli input di testo e il select */
#user-container input[type="text"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    width: 95%;
    line-height: 2;
}

#user-container input[type="date"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    width: 95%;
    line-height: 2;
}

#user-container input[type="time"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    width: 95%;
    line-height: 2;
}

#user-container select {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    width: 99%;
    line-height: 2;
    appearance: none;
    background-color: white;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
    padding-right: 30px;
}

/* Stile per i campi obbligatori */
#user-container span {
    color: red;
    font-weight: bold;
}


/* Container principale */
#calendar-slot-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
}


/* Box calendario */
#calendar-box {
    width: 50%;
    margin-right: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
}

/* Box orari */
#slot-box {
    width: 50%;
    border: 1px solid #eee;
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
}

/* Barra mese*/
#current-month {
    width: 100%;
    text-align: center;
    font-size: 18pt;
    padding-bottom: 10px;
}

#calendar-controls a {
    color: black;
    cursor: pointer;
    width: 30px;
}

#calendar-controls a:hover {
    color: grey;
}


/* Stile per il controllo del calendario */
#calendar-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

#calendar-controls button {
    background-color: grey;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
}

#calendar-controls span {
    margin: 0 10px;
    font-weight: bold;
    color: black;
}

/* Stile per i giorni della settimana e i giorni del calendario */
#calendar-weekdays,
#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 1px;
    height: 100% !important;
}

#calendar-weekdays div,
#calendar div {
    text-align: center;
    height: 40px;
    font-weight: bold;
    margin: 10px;
}

#calendar .available {
    background-color: white;
    color: black;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #eee;
    line-height: 40px;
    border-radius: 10px;
}

#calendar .available:hover {
    background-color: #d0ffb7;
}

#calendar .selected {
    background-color: lightgreen;
    color: black;
    font-weight: bold;
    cursor: not-allowed;
    border: 1px solid #eee;
    line-height: 40px;
    border-radius: 10px;
}

#calendar .disabled {
    color: #ccc;
    background-color: white;
    border: 1px solid #eee;
    line-height: 40px;
    border-radius: 10px;
}


/* Stile per i giorni della settimana e i giorni del calendario_be */
#calendar_be-weekdays,
#calendar_be {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 1px;
}

#calendar_be-weekdays div,
#calendar_be div {
    text-align: center;
    height: 30px;
    font-weight: bold;
    margin: 10px;
}

#calendar_be .available {
    background-color: white;
    color: black;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #eee;
    line-height: 30px;
    border-radius: 10px;
}

#calendar_be .selected {
    background-color: lightgreen;
    color: black;
    font-weight: bold;
    border: 1px solid #eee;
    line-height: 30px;
    border-radius: 10px;
}

.button-submit_be {
    padding: 8px 60px;
    background-color: cornflowerblue;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
    color: white;
    border: 1px solid cornflowerblue;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.1s ease;
    text-decoration: none;
    text-align: center;
}

.button-submit_be:hover {
    background-color: white;
    text-decoration: none;
    border: 1px solid grey;
    color: grey;
    font-weight: bold;
}

/* Stile per il box orari */
#time-slots {
    margin-top: 1px;
    padding: 10px;
}

/* Stile per la lista di slot orari */
#time-slot-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

/* Stile per il pulsante dell'ora selezionata */
.time-slot.selected {
    background-color: var(--bg-time-slot-selezionato);
    color: var(--txt-time-slot-selezionato);
    cursor: pointer;
    font-weight: bold;
}

.time-slot.busy {
    background-color: var(--bg-time-slot-occupato);
    color: var(--txt-time-slot-occupato);
    cursor: not-allowed;
}

.time-slot.disabled {
    background-color: var(--bg-time-slot-disabilitato);
    color: var(--txt-time-slot-disabilitato);
    cursor: not-allowed;
}

.time-slot {
    background-color: var(--bg-time-slot-libero);
    color: var(--txt-time-slot-libero);
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid #ddd;
    padding: 3px;
}

.time-slot:hover {
    background-color: var(--bg-time-slot-libero-hover);
    color: var(--txt-time-slot-libero-hover);
}

/* Stile per il testo della prenotazione */
#prenotazione {
    color: gray;
    font-weight: bold;
    margin-left: 20px;
    margin-top: 20px;
    margin-bottom: 50px;
}

#calendar-submit {
    text-align: center;
    width: 100%;
    padding: 20px;
    font-size: 18px;
    cursor: pointer;
}

/* submit button */
.button-submit {
    background-color: #adf7b6;
    color: black;
    border: 0px solid #ddd;
    border-radius: 10px;
    padding: 20px 80px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
}

.button-submit-disabled {
    background-color: rgba(173, 247, 182, 0.5);
    color: rgba(0, 0, 0, 0.5);
    border: 0px solid #ddd;
    border-radius: 10px;
    padding: 20px 80px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: not-allowed;
}

.button-submit:hover {
    background-color: lightgreen;
}

.card-container {
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    color: #fbfbfb;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
    display: flow-root;
    padding-top: 20px;
    position: relative;
    text-align: center;
    transition: box-shadow .1s ease-in-out;
    width: 60%;
    margin: 0 auto;
}

/* BACKEND */

.form-login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
}

.form-login h2 {
    margin-bottom: 20px;
    color: #333;
}

.form-login form {
    display: flex;
    flex-direction: column;
    width: 300px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.form-login div {
    margin-bottom: 15px;
}

.form-login label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.form-login input[type="email"],
.form-login input[type="password"] {
    width: 280px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-login button[type="submit"] {
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.form-login button[type="submit"]:hover {
    background-color: #45a049;
}

.errore-login {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
}

.sedi-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    text-decoration: none;
}

.sede-card {
    background-color: lightgray;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
    color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    padding: 15px;
    width: 300px;
    height: 70px;
    text-align: center;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.sede-card h4 {
    margin: 0;
    /* Rimuove il margine del tag h3 per centrarlo meglio */
    color: #343434;
    /* Usa il colore del parent per mantenere la coerenza */
}

.sede-card:hover {
    background-color: white;
    color: grey;
    text-decoration: none;
}

.rb-h3 {
    font-size: 24px !important;
    line-height: 1.4;
    font-weight: 700 !important;
    color: #343434 !important;
}



.table {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    vertical-align: top;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #333;
}

.table th,
.table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.table td {
    color: gray;
}

.table th {
    background-color: grey;
    color: white;
    font-weight: bold;
}

.table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table tr:hover {
    background-color: #f1f1f1;
    color: black;
}

.table a {
    color: gray;
    margin: 0px;
    padding: 0px;
}


.table svg {
    width: 24px;
    height: 24px;
}

.table svg:hover {
    color: black;
}

.svg {
    color: gray;
    margin: 0px;
    padding: 0px;
    width: 24px;
    height: 24px;
}

.container-table {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    padding: 20px;
    margin-left: 10px;
    margin-right: 10px;
    padding-top: 50px;
    padding-left: 50px;
    padding-right: 50px;
}

.content {
    width: 100%;
}

.content-border {
    width: 95%;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    padding: 20px;
    margin-left: 20px;
    margin-right: 20px;
}

.content-border-search {
    width: 95%;
    border-radius: 10px;
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
    overflow-x: auto;
}

.paginazione {
    text-align: center;
    margin-top: 20px;
}

.paginazione a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: background-color 0.3s ease;
}

.paginazione a:hover {
    background-color: #ddd;
}

.paginazione a.active {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #4CAF50;
}


.form-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
}

.form-page h2 {
    margin-bottom: 20px;
    color: #333;
}

.form-page form {
    display: flex;
    flex-direction: column;
    width: 300px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.form-page div {
    margin-bottom: 15px;
}

.form-page label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.form-page input[type="email"],
.form-page input[type="password"],
.form-page input[type="date"],
.form-page input[type="time"],
.form-page input[type="text"],
.form-page select {
    width: 280px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-page textarea {
    width: 90%;
    height: 90%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-page button[type="submit"] {
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.form-page button[type="submit"]:hover {
    background-color: #45a049;
}

.form-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.form-page-grid_be {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.form-ricerca input[type="text"],
.form-ricerca input[type="number"],
.form-ricerca input[type="date"],
.form-ricerca input[type="time"],
.form-ricerca select {
    width: 150px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.button-container {
    margin-top: 10px;
    align-items: right;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.action-button {
    padding: 8px 20px;
    background-color: cornflowerblue;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
    color: white;
    border: 1px solid cornflowerblue;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.1s ease;
    text-decoration: none;
    margin: 10px;
    width: 100px;
    text-align: center;
}

.action-button:hover {
    background-color: white;
    text-decoration: none;
    border: 1px solid grey;
    color: grey;
    font-weight: bold;
    padding: 8px 20px;
}

.action-button-label {
    background-color: white;
    text-decoration: none;
    border: 1px solid grey;
    color: grey;
    font-weight: bold;
    padding: 8px 20px;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.1s ease;
    margin: 10px;
    width: 100px;
    text-align: center;
}

.badge {
    padding: 2px;
    width: 80px;
    text-align: center;
    display: block;
}

.badge-success {
    color: #0693e3;
    background-color: lightblue;
}

.badge-denied {
    color: white;
    background-color: lightcoral;
}

.badge-sold {
    color: green;
    background-color: lightgreen;
}

.badge-tipo-visita {
    color: green;
    background-color: #adf7b6;
    text-align: center;
    font-weight: bold;
    font-size: 25px;
    text-transform: uppercase;
    border-radius: 10px;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 2px;
    padding-bottom: 0px;
}

.badge-payment {
    color: #f25757;
    background-color: #ffd670;
}


#box_confirm {
    border: 1px solid #eee;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
    padding: 20px;
}

#clearSignature {
    background-color: #adf7b6;
    color: black;
    border: 0px solid #ddd;
    border-radius: 5px;
    padding: 2px 20px;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
}

#clearSignature:hover {
    background-color: lightgreen;
}


.rb-divider-vertical {
    width: max-content;
    height: 80%;
    margin-left: auto;
    margin-right: auto;
    border-left: 1px solid #ddd;
    margin-top: 20px;
}

.rb-divider-orizontal {
    width: 100%;
    border-top: 1px solid #ddd;
    margin-top: 20px;
    margin-bottom: 20px;
}

.rd-card-container {
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1);
}


/*menu dropdown */

.rb-dropdown {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    color: #212529;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    white-space: nowrap;
}

/* Contenitore dropdown */
.rb-dropdown-container {
    position: relative;
    display: inline-block;
}

/* Bottone del dropdown */
.rb-dropdown-button {
    background: #f8f8f8;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.rb-dropdown-button:hover {
    background: #e6e6e6;
    border-color: #ccc;
}

/* Freccia del dropdown */
.rb-dropdown-arrow {
    font-size: 1em;
    margin-left: 5px;
}

/* Menu del dropdown */
.rb-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1000;
    width: auto;
    min-width: 150px;
    padding: 5px 0;
    display: none;
}

/* Lista del dropdown */
.rb-dropdown-nav {
    list-style: none;
    margin: 0;
    padding: 5px 0;
    text-align: left;
}

.rb-dropdown-nav li {
    padding: 0;
}

.rb-dropdown-nav li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    text-align: left;
}

.rb-dropdown-nav li a:hover {
    background: #f0f0f0;
    color: #000;
}

/* Divider */
.rb-divider {
    border-top: 1px solid #ddd;
    margin: 5px 0;
}

/* Mostra il dropdown quando il bottone è cliccato */
.rb-dropdown-container:hover .rb-dropdown {
    display: block;
}

.rb-capitalize {
    text-transform: capitalize;
}

.rb-nowrap {
    white-space: nowrap;
}

/* pagina conferma prenotazione */
.rb-box-column-container {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: center;
    align-items: stretch;
}

.rb-box-conferma {
    position: relative;
    border-radius: 10px;
    box-sizing: border-box;
    border: 1px solid #f1f1f1;
    width: 360px;
    margin: 15px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rb-box-conferma2 {
    position: relative;
    border-radius: 10px;
    box-sizing: border-box;
    border: 1px solid #f1f1f1;
    width: 750px;
    margin: 15px;
    display: flex;
    flex-wrap: wrap;
}

.rb-box-conferma-container {
    width: 45%;
}

.box-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 100;
    cursor: not-allowed;
}

.rb-box-conferma.active-box,
.rb-box-conferma2.active-box {
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1);
    border: 0px solid #f9f9f9;
}



.active-box {
    z-index: 1;
}

.error-box {
    border: 1px solid #ff0000 !important;
}

.rb-box-conferma-title {
    margin-top: 20px;
    margin-left: 25px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: left;
    color: var(--medico-days-color);
}

.rb-box-conferma-input {
    margin-top: 20px;
    margin-left: 25px;
    text-align: left;
    margin-bottom: 20px;
}

.rb-box-conferma-desc {
    margin-top: 10px;
    margin-left: 25px;
    font-size: 12px;
    text-align: left;
    flex-grow: 1;
    color: var(--medico-days-color);
}

.rb-box-conferma-max {
    margin-top: 10px;
    margin-left: 25px;
    font-size: 12px;
    text-align: left;
    font-weight: bold;
}

.rb-input-file {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.rb-input-file input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.rb-input-file input[type="text"] {
    height: 150px;
    width: 310px;
    border-radius: 10px;
    border: 1px solid #d8d8d8;
    background-color: #f7f7f7;
    font-size: 16px;
    color: #959595;
    text-align: center;
    box-sizing: border-box;
    cursor: pointer;
    padding-left: 20px;
}

.rb-input-file svg {
    position: absolute;
    left: 21%;
    top: 50%;
    transform: translate(0%, -50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
    z-index: 1;
}

.rb-input-file:hover input[type="text"] {
    background-color: #efefef;
}

.rb-input-file-canvas {
    height: 150px;
    width: 310px;
    border-radius: 10px;
    border: 1px solid #d8d8d8;
    background-color: #f7f7f7;
    font-size: 16px;
    color: #959595;
    text-align: center;
    box-sizing: border-box;
    padding-top: 30px;
}

.rb-input-file-canvas canvas {
    border-radius: 10px;
    border: 1px solid #d8d8d8;
    background-color: #f7f7f7;
}


.rb-input-file2 {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.rb-input-file2 input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.rb-input-file2 input[type="text"] {
    height: 150px;
    width: 135px;
    border-radius: 10px;
    border: 1px solid #d8d8d8;
    background-color: #f7f7f7;
    font-size: 16px;
    color: #959595;
    text-align: center;
    box-sizing: border-box;
    cursor: pointer;
    padding-left: 20px;
}

.rb-input-file2 svg {
    position: absolute;
    left: 21%;
    top: 50%;
    transform: translate(0%, -50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
    z-index: 1;
}


.rb-button-avanti {
    background-color: #adf7b6;
    color: black;
    border: 0px solid #ddd;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 15px;
    text-transform: uppercase;
    cursor: pointer;
}

.rb-button-avanti:hover {
    background-color: lightgreen;
}


.rb-button-cancella-firma:hover {
    background-color: lightgreen;
}

.rb-riepilogo-intestazione {
    text-align: center !important;
    font-size: 40px;
    line-height: 40px;
    font-family: Heebo;
    font-weight: 900;
    color: #121b35;
    text-transform: none;
    margin-bottom: 20px;
    margin-top: 20px;
}

.rb-riepilogo-container {
    border-radius: 10px;
    box-sizing: border-box;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1);
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    padding-left: 20px;
    color: black;
}

.rb-riepilogo-container-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rb-riepilogo-container-card {
    border-radius: 10px;
    padding: 20px;
    vertical-align: middle;
    background-color: #f8f8f8;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-right: 20px;
    margin-left: 200px;
    color: black;
}


.rb-riepilogo-container-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}


/* MODAL*/

.rb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rb-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.rb-modal {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1);
    text-align: center;
    font-family: Arial, sans-serif;
}

.rb-modal-body {
    font-size: 20px;
    font-weight: bold;
}

.rb-orari-title {
    margin-bottom: 0px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: .875rem;
    line-height: 1.4;
}

.rb-risposta-success {
    color: #32d296;
    font-weight: 700;
    font-size: 1.7rem;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.rb-risposta-danger {
    color: #ff0000;
    font-weight: 700;
    font-size: 1.7rem;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.rb-risposta-testo {
    color: #999;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.4;
    margin: 0 0 20px 0;
}

.rb-radiocheck[type="radio"] {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    vertical-align: top;
    cursor: pointer;
    margin-left: 0px !important;
}

.rb-radiocheck[type="radio"]:checked {
    border-color: #adf7b6;
}

.rb-radiocheck[type="radio"]:checked::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #adf7b6;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.rb-radiocheck[type="radio"]:hover {
    border-color: #adf7b6;
}

.rb-radiocheck-input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    width: 95%;
    line-height: 2;
    margin-bottom: 20px;
}


/* solo desktop e mobile */
.rb-solo-desktop,
.rb-solo-mobile {
    display: none;
}

/* Media query per schermi piccoli (smartphone) */
@media (max-width: 600px) {

    #calendar-slot-container {
        flex-wrap: wrap;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-right: 20px;
    }

    #calendar-box,
    #slot-box {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0px;
    }

    /* Riduzione della dimensione degli slot orari */
    .time-slot {
        padding: 5px;
        font-size: 12px;
    }

    /* Riduce il numero di colonne degli slot orari */
    #time-slot-list {
        grid-template-columns: repeat(2, 1fr);
    }

    #slot-box {
        margin-top: 20px;
        border: 1px solid #eee;
        border-radius: 10px;
        padding-left: 10px;
        padding-right: 10px;
        box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
    }

    .button-submit {
        background-color: #adf7b6;
        color: black;
        border: 0px solid #ddd;
        border-radius: 10px;
        padding: 20px 50px;
        font-size: 18px;
        font-weight: bold;
        /*text-transform: uppercase;*/
        cursor: pointer;
        box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
    }

    #calendar-submit {
        text-align: center;
        width: 100%;
        font-size: 18px;
        cursor: pointer;
        margin: 0px;
    }

    #user-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        border-radius: 10px;
        margin-bottom: 50px;
    }

    .form-page-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .rb-box-column-container {
        margin-top: 40px !important;
        margin: 0;
        padding: 0;
        list-style: none;
        justify-content: center;
        align-items: center;
    }

    .rb-box-conferma {
        width: 100%;
        margin: 15px;
    }

    .rb-riepilogo-container {
        border-radius: 10px;
        box-sizing: border-box;
        box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1);
    }

    .rb-riepilogo-container-card {
        border-radius: 10px;
        padding: 20px;
        vertical-align: middle;
        background-color: #f8f8f8;
        margin-top: 20px;
        margin-bottom: 20px;
        margin-right: 20px;
        margin-left: 0px;
        width: 100%;
    }

    .rb-box-conferma2 {
        position: relative;
        border-radius: 10px;
        box-sizing: border-box;
        border: 1px solid #f1f1f1;
        margin: 15px;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .rb-box-conferma-container {
        width: 100%;
    }

    .rb-button-avanti {
        background-color: #adf7b6;
        color: black;
        border: 0px solid #ddd;
        border-radius: 10px;
        padding: 10px 20px;
        font-size: 15px;
        text-transform: uppercase;
        cursor: pointer;
        margin-right: 20px;
    }

    #calendar-weekdays div,
    #calendar div {
        text-align: center;
        height: 40px;
        font-weight: bold;
        margin: 5px;
    }

    .rb-solo-mobile {
        display: block;
        padding-top: 20px;
    }
}


/* Mostra solo su desktop */
@media screen and (min-width: 601px) {
    .rb-solo-desktop {
        display: block;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#modalContent {
    margin-top: 20px;
}