/* Modal di prenotazione */
.prenotazione-modal {
    display: none !important;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

/* Classe per mostrare il modal */
.prenotazione-modal.show {
    display: block !important;
}

.prenotazione-content {
    background: #000000;
    margin: 2% auto;
    padding: 50px 40px;
    border: 1px solid #ffffff;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    z-index: 1001;
    padding: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #cccccc;
}

.prenotazione-title {
    color: #ffffff;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    font-family: 'Gill Sans Light', 'Gill Sans Nova', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.prenotazione-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 300;
    font-family: 'Gill Sans Light', 'Gill Sans Nova', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #ffffff;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: 'Gill Sans Light', 'Gill Sans Nova', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-bottom-color: #cccccc;
    background: rgba(255, 255, 255, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Stili per le opzioni del dropdown */
.form-group select option {
    background: #000000;
    color: #ffffff;
    padding: 10px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    background: #ffffff;
    color: #000000;
    padding: 12px 30px;
    border: 1px solid #ffffff;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 400;
    font-family: 'Gill Sans Light', 'Gill Sans Nova', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-btn:hover {
    background: #cccccc;
    border-color: #cccccc;
}

.submit-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .prenotazione-content {
        margin: 5% auto;
        padding: 30px 20px;
        width: 95%;
    }
    
    .prenotazione-title {
        font-size: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .prenotazione-content {
        margin: 15% auto;
        padding: 25px 15px;
    }
    
    .prenotazione-title {
        font-size: 1.3rem;
    }
}

/* Stili per i messaggi di successo/errore */
.message-overlay {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-modal {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: messageSlideIn 0.3s ease-out;
}

.message-modal.success {
    border-left: 5px solid #28a745;
}

.message-modal.error {
    border-left: 5px solid #dc3545;
}

.message-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.message-modal h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 20px;
}

.message-modal p {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.5;
}

.message-btn {
    background: #333;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.message-btn:hover {
    background: #555;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stili specifici per eventi club - sovrascrivono i colori oro con viola nel modal */
.club-event .prenotazione-content {
    border-color: #8A2BE2;
}

.club-event .close-modal {
    color: #8A2BE2;
}

.club-event .prenotazione-title {
    color: #8A2BE2;
}

.club-event .form-group label {
    color: #8A2BE2;
}

.club-event .form-group input,
.club-event .form-group textarea,
.club-event .form-group select {
    border-color: rgba(138, 43, 226, 0.3);
}

.club-event .form-group input:focus,
.club-event .form-group textarea:focus,
.club-event .form-group select:focus {
    border-color: #8A2BE2;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

.club-event .submit-btn {
    background: linear-gradient(45deg, #8A2BE2, #7B68EE);
    color: #ffffff;
}

.club-event .submit-btn:hover {
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.3);
    background: linear-gradient(45deg, #7B68EE, #8A2BE2);
} 