/* Booking Form Style - Come nella foto */

.booking-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: #e8dcc0;
    border-radius: 0;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field:nth-child(3) {
    grid-column: 1;
}

.form-field:nth-child(4) {
    grid-column: 2;
}

.field-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #8b6f47;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-container {
    position: relative;
}

.dropdown-selected {
    background: white;
    border: 1px solid #d4c4a0;
    padding: 0.75rem 1rem;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c2c2c;
    min-height: 48px;
}

.dropdown-selected:hover {
    border-color: #8b6f47;
}

.dropdown-text {
    flex: 1;
}

.dropdown-arrow {
    font-size: 0.8rem;
    color: #8b6f47;
    transition: transform 0.2s ease;
}

.dropdown-container.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d4c4a0;
    border-top: none;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    color: #2c2c2c;
}

.dropdown-option:hover {
    background: #f8f6f0;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.dropdown-option.loading {
    text-align: center;
    font-style: italic;
    color: #666;
}

.dropdown-option.error {
    color: #d32f2f;
    text-align: center;
}

.dropdown-option.error button {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 4px;
}

.time-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.time-info .time {
    font-weight: 600;
    color: #2c2c2c;
}

.time-info .availability {
    font-size: 0.8rem;
    color: #666;
}

/* Dropdown option hover per time slots */
.dropdown-option:not(.disabled):not(.loading):not(.error):hover {
    background: #8b6f47 !important;
    color: white;
}

.dropdown-option:not(.disabled):not(.loading):not(.error):hover .time-info .time,
.dropdown-option:not(.disabled):not(.loading):not(.error):hover .time-info .availability {
    color: white;
}

/* Guests Panel Specific Styling */
.guests-panel {
    padding: 1rem;
}

.guest-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guest-label {
    font-size: 0.9rem;
    color: #2c2c2c;
    flex: 1;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #d4c4a0;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: #8b6f47;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: #8b6f47;
    color: white;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-count {
    font-size: 1rem;
    font-weight: 600;
    color: #2c2c2c;
    min-width: 24px;
    text-align: center;
}

/* Book Now Button */
.booking-action {
    grid-column: 1 / -1;
    margin-top: 1rem;
}

.btn-book-now {
    width: 100%;
    background: #8b6f47;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-book-now:hover:not(:disabled) {
    background: #6d5435;
    transform: translateY(-1px);
}

.btn-book-now:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Date picker hidden but functional */
#date-picker {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .booking-form-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 1.5rem;
        margin: 0.5rem;
        max-width: none;
        width: calc(100% - 1rem);
    }
    
    .form-field:nth-child(3),
    .form-field:nth-child(4) {
        grid-column: 1;
    }
    
    .dropdown-selected {
        padding: 1rem 1.2rem;
        font-size: 1rem;
        min-height: 52px;
    }
    
    .field-label {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    .btn-book-now {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }
}

/* Mobile molto piccolo */
@media (max-width: 480px) {
    .booking-form-grid {
        margin: 0.25rem;
        padding: 1.2rem;
        width: calc(100% - 0.5rem);
    }
    
    .dropdown-selected {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    .field-label {
        font-size: 0.85rem;
    }
}