/* Stili per il plugin Prenotazioni Escursioni */

.prenotazioni-escursioni-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.evento-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.evento-info h2 {
    color: #333;
    margin-bottom: 10px;
}

.evento-data {
    font-weight: bold;
    color: #666;
    margin-bottom: 15px;
}

.evento-immagine {
    margin: 15px 0;
}

.evento-immagine img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.evento-descrizione {
    margin-top: 15px;
    line-height: 1.6;
}

.prenotazione-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.prenotazione-form h3 {
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.form-section h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.form-section small {
    color: #666;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007cba;
}

.escursioni-container {
    margin-top: 20px;
}

.escursioni-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.escursioni-table th {
    background: #007cba !important;
    color: white !important;
    padding: 15px 10px;
    text-align: center;
    font-weight: bold;
    border: none;
    text-shadow: none;
}

.escursioni-table thead th {
    background: #007cba !important;
    color: white !important;
}

.escursioni-table th:hover {
    background: #005a87 !important;
    color: white !important;
}

.escursioni-table td {
    padding: 15px 10px;
    text-align: center;
    border: 1px solid #e9ecef;
    vertical-align: middle;
}

.escursioni-table tr:nth-child(even) {
    background: #f8f9fa;
}

.escursioni-table tr:hover {
    background: #e3f2fd;
}

.escursioni-table tr.selected {
    background: #bbdefb;
    border: 2px solid #007cba;
}

.escursione-name {
    text-align: left !important;
    font-weight: bold;
    color: #333;
}

.escursione-name small {
    color: #666;
    font-weight: normal;
    display: block;
    margin-top: 5px;
}

.slot-cell {
    position: relative;
    cursor: pointer;
}

.slot-cell input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.slot-cell label {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.slot-cell input[type="checkbox"]:checked + label {
    background: #007cba;
    border-color: #007cba;
}

.slot-cell input[type="checkbox"]:checked + label::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.slot-cell:hover label {
    border-color: #007cba;
    transform: scale(1.1);
}

.slot-cell.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slot-cell.disabled label {
    background: #f5f5f5;
    border-color: #ccc;
    cursor: not-allowed;
}

.slot-cell.disabled:hover label {
    transform: none;
    border-color: #ccc;
}

.slot-cell.disabled input[type="checkbox"] {
    cursor: not-allowed;
}

/* Stili per celle senza posti disponibili */
.slot-cell.no-posti {
    background: #f8d7da !important;
    opacity: 0.6;
    cursor: not-allowed;
}

.slot-cell.no-posti label {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    cursor: not-allowed;
}

.slot-cell.no-posti:hover label {
    transform: none;
    border-color: #dc3545 !important;
}

.slot-cell.no-posti input[type="checkbox"] {
    cursor: not-allowed;
}

/* Stili per il contatore posti */
.posti-count {
    font-size: 10px;
    font-weight: bold;
    color: #333;
    margin-top: 2px;
}

.slot-cell.no-posti .posti-count {
    color: white;
}

.no-posti-disponibili {
    color: #dc3545;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
}

/* Stili per il riepilogo selezioni */
.selezioni-riepilogo {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.selezioni-riepilogo h5 {
    margin: 0 0 10px 0;
    color: #1976d2;
    font-size: 14px;
}

.selezioni-riepilogo ul {
    margin: 0;
    padding-left: 20px;
}

.selezioni-riepilogo li {
    margin-bottom: 5px;
    color: #333;
}

.selezioni-riepilogo li em {
    color: #666;
    font-size: 13px;
    font-style: italic;
}

.form-description {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
    font-size: 14px;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.btn-prenota {
    background: #007cba;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-prenota:hover {
    background: #005a87;
}

.message {
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    font-weight: bold;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Stili per campi con errori */
.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-group input.valid,
.form-group textarea.valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .escursioni-table {
        font-size: 12px;
    }
    
    .escursioni-table th,
    .escursioni-table td {
        padding: 8px 5px;
    }
    
    .escursione-name {
        font-size: 14px;
    }
    
    .escursione-name small {
        font-size: 11px;
    }
}
