/**
 * Experience Booking Enhanced Styles
 * Stili per i nuovi step di prenotazione con lingua e dettaglio ospiti
 */

/* Language Selector */
.language-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.language-option {
    padding: 1.5rem;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: white;
}

.language-option:hover {
    border-color: var(--luxury-gold);
    background: #fefdf8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.15);
}

.language-option.selected {
    border-color: var(--luxury-gold);
    background: var(--luxury-gold);
    color: white;
}

.language-flag-name {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Participants Breakdown */
.participants-breakdown {
    margin: 2rem 0;
}

.participant-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
}

.participant-category:hover {
    border-color: var(--luxury-gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.category-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    cursor: pointer;
}

.category-icon {
    font-size: 1.5rem;
}

.category-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.category-info strong {
    font-size: 1.1rem;
    color: var(--luxury-text);
}

.category-info small {
    color: #666;
    font-size: 0.9rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--luxury-gold);
    border-radius: 50%;
    background: white;
    color: var(--luxury-gold);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--luxury-gold);
    color: white;
}

.qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.qty-display {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--luxury-text);
    min-width: 30px;
    text-align: center;
}

/* Participants Summary */
.participants-summary {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.total-participants {
    margin-bottom: 1rem;
}

.participants-range {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.total-price {
    color: var(--luxury-gold);
}

.total-price strong {
    font-size: 1.2rem;
}

/* Enhanced Summary in Step 5 */
.enhanced-summary {
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.summary-section {
    margin-bottom: 1.5rem;
}

.summary-section:last-child {
    margin-bottom: 0;
}

.summary-section h4 {
    color: var(--luxury-text);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .label {
    color: #666;
}

.summary-item .value {
    font-weight: 600;
    color: var(--luxury-text);
}

.price-breakdown {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.price-total {
    border-top: 2px solid var(--luxury-gold);
    padding-top: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--luxury-gold);
}

/* Responsive Design */
@media (max-width: 768px) {
    .language-selector {
        grid-template-columns: 1fr;
    }
    
    .participant-category {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .qty-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Animation per transizione step */
.step-panel {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
}

.step-panel.active {
    opacity: 1;
    transform: translateX(0);
}

/* Stati di validazione */
.language-option.error,
.participant-category.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.participants-summary.error {
    border: 2px solid #ef4444;
    background: #fef2f2;
}

.error-message {
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message::before {
    content: "⚠️";
}