/**
 * Stile pubblico per LinkedBrains Smoobu Integration
 */

.lb-smoobu-booking-widget-container {
    margin: 30px 0;
    max-width: 100%;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
    background-color: #fff;
}

/* Stili del caricamento */
.lb-smoobu-loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #888;
    background: rgba(255, 255, 255, 0.8);
}

/* Stili dei messaggi di errore */
.lb-smoobu-error-message {
    background-color: #fff4f4;
    color: #d92c2c;
    border: 1px solid #f5c6cb;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Stili dei passaggi */
.lb-smoobu-step {
    margin-bottom: 25px;
}

.lb-smoobu-step h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Stili del selettore date */
.lb-smoobu-date-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.lb-smoobu-form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 15px;
}

.lb-smoobu-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.lb-smoobu-date-picker input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    cursor: pointer;
}

/* Stili del selettore ospiti */
.lb-smoobu-guest-selector {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.lb-smoobu-guest-control {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.lb-smoobu-guest-minus,
.lb-smoobu-guest-plus {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lb-smoobu-guest-minus:hover,
.lb-smoobu-guest-plus:hover {
    background-color: #eee;
}

.lb-smoobu-guest-count {
    margin: 0 10px;
    font-size: 18px;
    font-weight: 500;
}

.lb-smoobu-guest-info {
    font-size: 14px;
    color: #666;
}

/* Stili delle opzioni extra */
.lb-smoobu-extras {
    margin-bottom: 20px;
}

.lb-smoobu-extra-item {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.lb-smoobu-extra-checkbox {
    margin-right: 10px;
}

.lb-smoobu-extra-price {
    margin-left: 5px;
    color: #666;
    font-size: 0.9em;
}

/* Stili del form di prenotazione */
.lb-smoobu-booking-form input,
.lb-smoobu-booking-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
}

.lb-smoobu-booking-form textarea {
    min-height: 100px;
    resize: vertical;
}

/* Stili della sezione pagamento */
.lb-smoobu-payment-section {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.lb-smoobu-price {
    font-size: 18px;
    margin-bottom: 20px;
}

.lb-smoobu-price-amount {
    font-weight: bold;
    color: #2196F3;
}

/* Stili dei pulsanti */
.lb-smoobu-step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.lb-smoobu-prev-step,
.lb-smoobu-next-step,
.lb-smoobu-submit-booking {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lb-smoobu-prev-step {
    background-color: #f5f5f5;
    color: #333;
}

.lb-smoobu-prev-step:hover {
    background-color: #eee;
}

.lb-smoobu-next-step,
.lb-smoobu-submit-booking {
    background-color: #2196F3;
    color: white;
}

.lb-smoobu-next-step:hover,
.lb-smoobu-submit-booking:hover {
    background-color: #1e87db;
}

.lb-smoobu-submit-container {
    margin-top: 25px;
    text-align: center;
}

.lb-smoobu-submit-booking {
    padding: 12px 30px;
    font-size: 16px;
}

/* Stili dei messaggi di disponibilità */
.lb-smoobu-availability-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.lb-smoobu-available {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.lb-smoobu-not-available {
    background-color: #fff4f4;
    color: #d32f2f;
}

/* Theme: Light */
.lb-smoobu-theme-light {
    background-color: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.lb-smoobu-theme-light .lb-smoobu-next-step,
.lb-smoobu-theme-light .lb-smoobu-submit-booking {
    background-color: #4caf50;
}

.lb-smoobu-theme-light .lb-smoobu-price-amount {
    color: #4caf50;
}

/* Theme: Dark */
.lb-smoobu-theme-dark {
    background-color: #303030;
    color: #e0e0e0;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.lb-smoobu-theme-dark h3 {
    color: #fff;
    border-bottom-color: #444;
}

.lb-smoobu-theme-dark input,
.lb-smoobu-theme-dark textarea {
    background-color: #424242;
    border-color: #555;
    color: #e0e0e0;
}

.lb-smoobu-theme-dark .lb-smoobu-next-step,
.lb-smoobu-theme-dark .lb-smoobu-submit-booking {
    background-color: #4fc3f7;
}

.lb-smoobu-theme-dark .lb-smoobu-prev-step {
    background-color: #424242;
    color: #e0e0e0;
}

.lb-smoobu-theme-dark .lb-smoobu-price-amount {
    color: #4fc3f7;
}

.lb-smoobu-theme-dark .lb-smoobu-payment-section {
    border-top-color: #444;
}

/* Pagina di ringraziamento */
.lb-smoobu-thank-you {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 30px 0;
}

.lb-smoobu-thank-you h2 {
    color: #2196F3;
    margin-bottom: 20px;
}

.lb-smoobu-thank-you p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.lb-smoobu-thank-you .lb-smoobu-booking-details {
    margin: 25px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.lb-smoobu-thank-you .lb-smoobu-booking-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.lb-smoobu-thank-you .lb-smoobu-booking-detail-item:last-child {
    border-bottom: none;
}

.lb-smoobu-thank-you .lb-smoobu-home-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background-color: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.lb-smoobu-thank-you .lb-smoobu-home-button:hover {
    background-color: #1e87db;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .lb-smoobu-booking-widget-container {
        padding: 15px;
    }
    
    .lb-smoobu-date-picker {
        flex-direction: column;
    }
    
    .lb-smoobu-form-group {
        min-width: 100%;
    }
    
    .lb-smoobu-guest-selector {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lb-smoobu-guest-control {
        margin-bottom: 10px;
    }
}
